MCPcopy Create free account
hub / github.com/angular/angular / _addToParent

Method _addToParent

packages/compiler/src/ml_parser/parser.ts:800–808  ·  view source on GitHub ↗
(node: html.Node)

Source from the content-addressed store, hash-verified

798 }
799
800 private _addToParent(node: html.Node) {
801 const parent = this._getContainer();
802
803 if (parent === null) {
804 this.rootNodes.push(node);
805 } else {
806 parent.children.push(node);
807 }
808 }
809
810 private _getElementFullName(
811 token: TagOpenStartToken | IncompleteTagOpenToken | TagCloseToken,

Callers 6

_consumeCommentMethod · 0.95
_consumeExpansionMethod · 0.95
_consumeTextMethod · 0.95
_pushContainerMethod · 0.95
_consumeLetMethod · 0.95
_consumeIncompleteLetMethod · 0.95

Calls 2

_getContainerMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected