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

Method embeddedTView

packages/core/src/render3/queries/query.ts:128–146  ·  view source on GitHub ↗
(tNode: TNode)

Source from the content-addressed store, hash-verified

126 }
127 }
128 embeddedTView(tNode: TNode): TQueries | null {
129 let queriesForTemplateRef: TQuery[] | null = null;
130
131 for (let i = 0; i < this.length; i++) {
132 const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;
133 const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);
134
135 if (tqueryClone) {
136 tqueryClone.indexInDeclarationView = i;
137 if (queriesForTemplateRef !== null) {
138 queriesForTemplateRef.push(tqueryClone);
139 } else {
140 queriesForTemplateRef = [tqueryClone];
141 }
142 }
143 }
144
145 return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;
146 }
147
148 template(tView: TView, tNode: TNode): void {
149 ngDevMode &&

Callers

nothing calls this directly

Calls 3

getByIndexMethod · 0.95
embeddedTViewMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected