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

Function ingestReferences

packages/compiler/src/template/pipeline/src/ingest.ts:1800–1808  ·  view source on GitHub ↗

* Process all of the local references on an element-like structure in the template AST and * convert them to their IR representation.

(op: ir.ElementOpBase, element: t.Element | t.Template)

Source from the content-addressed store, hash-verified

1798 * convert them to their IR representation.
1799 */
1800function ingestReferences(op: ir.ElementOpBase, element: t.Element | t.Template): void {
1801 assertIsArray<ir.LocalRef>(op.localRefs);
1802 for (const {name, value} of element.references) {
1803 op.localRefs.push({
1804 name,
1805 target: value,
1806 });
1807 }
1808}
1809
1810/**
1811 * Assert that the given value is an array.

Callers 2

ingestElementFunction · 0.85
ingestTemplateFunction · 0.85

Calls 2

assertIsArrayFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…