mirror of
https://github.com/angular/angular.git
synced 2026-11-28 17:37:50 -05: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
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT