MCPcopy Index your code
hub / github.com/angular/angular / _addToParent

Method _addToParent

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

Source from the content-addressed store, hash-verified

930 }
931
932 private _addToParent(node: html.Node) {
933 const parent = this._getContainer();
934
935 if (parent === null) {
936 this.rootNodes.push(node);
937 } else {
938 parent.children.push(node);
939 }
940 }
941
942 private _getElementFullName(
943 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