NgModule handler resolves `imports` individually
refactor(compiler-cli): NgModule handler resolves `imports` individually (#45701)
NgModule handler resolves `imports` individuallyrefactorngmodule handler resolves imports individually compiler
Committed by alxhub
commit message
refactor(compiler-cli): NgModule handler resolves `imports` individually (#45701)
Previously, the NgModule handler would resolve the `imports` field as one
unit, producing an array of `Reference`s. With this refactoring, if
`imports` is a literal array, each individual element will be resolved
independently. This will allow filtering in the future at the element level,
since there will be a separate `ts.Expression` for each individual element.
PR Close #45701Editor assessment
An exemplary refactor message. The subject states the change — the NgModule handler resolves `imports` elements individually — under an accurate `refactor(compiler-cli)` pairing. The body teaches the before and after precisely: previously the field was resolved as one unit yielding an array of `Reference`s; now each element of a literal array resolves independently, producing a separate `ts.Expression` per element, which will enable element-level filtering later. Mechanism, data-shape consequence, and forward purpose are all present. The `PR Close #45701` footer is well formed. Style is clean — imperative subject, no trailing period, no junk. A reader finishes genuinely informed.