* 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)
| 1798 | * convert them to their IR representation. |
| 1799 | */ |
| 1800 | function 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. |
no test coverage detected
searching dependent graphs…