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

Function discoverLocalRefs

packages/core/src/render3/context_discovery.ts:341–354  ·  view source on GitHub ↗
(lView: LView, nodeIndex: number)

Source from the content-addressed store, hash-verified

339 * exist on a given element.
340 */
341export function discoverLocalRefs(lView: LView, nodeIndex: number): {[key: string]: any} | null {
342 const tNode = lView[TVIEW].data[nodeIndex] as TNode;
343 if (tNode && tNode.localNames) {
344 const result: {[key: string]: any} = {};
345 let localIndex = tNode.index + 1;
346 for (let i = 0; i < tNode.localNames.length; i += 2) {
347 result[tNode.localNames[i]] = lView[localIndex];
348 localIndex++;
349 }
350 return result;
351 }
352
353 return null;
354}

Callers 1

getLocalRefsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…