mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit implements the first "phase" of the template pipeline. Phases are individual steps in compilation that perform a transformation of the IR in order to move closer to generating runtime code for the template. This first phase is `phaseGenerateVariables()`. This phase introduces variable definition operations into the IR to define variables in each view. These variables either represent internal operations (saving/restoring the view context for listeners, for example) or variables created from user-defined names such as local references or template context properties. Every view has all possibly-referenced variables generated, regardless of whether they're actually referenced by other operations. A future phase will optimize the variables in each view, inlining those which are only read once and removing those which are not referenced at all. PR Close #48580 |
||
|---|---|---|
| .. | ||
| design | ||
| src | ||
| test | ||
| testing | ||
| BUILD.bazel | ||
| compiler.ts | ||
| index.ts | ||
| package.json | ||
| public_api.ts | ||