mirror of
https://github.com/angular/angular.git
synced 2026-11-29 09:57:50 -05:00
For signal inputs we are looking at generating additional code inside type constructors. This code is planned to reference an external type from `@angular/core` to unwrap `InputSignal`'s class fields. The existing `Environment` class contains helpers for emitting such references / and translating them from the output AST. We extract this logic into a superclass for only emitting references. A similar type already existed to avoid circular dependencies- but now we have actual use-cases to populate this as a base class. This allows us to create more-suitable minimal emit environments when we e.g. generate type constructors inline- which are not part of any type check block. The existing `Environment` class is scoped to type check blocks and therefore was not suitable. PR Close #53521