* 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)
| 1914 | * convert them to their IR representation. |
| 1915 | */ |
| 1916 | function ingestReferences(op: ir.ElementOpBase, element: t.Element | t.Template): void { |
| 1917 | assertIsArray<ir.LocalRef>(op.localRefs); |
| 1918 | for (const {name, value} of element.references) { |
| 1919 | op.localRefs.push({ |
| 1920 | name, |
| 1921 | target: value, |
| 1922 | }); |
| 1923 | } |
| 1924 | } |
| 1925 | |
| 1926 | /** |
| 1927 | * Assert that the given value is an array. |
no test coverage detected