angular-cn/packages/compiler-cli/src/ngcc/test
Alex Rickabaugh f4a9f5dae8 refactor(ivy): prep ngtsc and ngcc for upcoming import resolution work (#27743)
Upcoming work to implement import resolution will change the dependencies
of some higher-level classes in ngtsc & ngcc. This necessitates changes in
how these classes are created and the lifecycle of the ts.Program in ngtsc
& ngcc.

To avoid complicating the implementation work with refactoring as a result
of the new dependencies, the refactoring is performed in this commit as a
separate prepatory step.

In ngtsc, the testing harness is modified to allow easier access to some
aspects of the ts.Program.

In ngcc, the main change is that the DecorationAnalyzer is created with the
ts.Program as a constructor parameter. This is not a lifecycle change, as
it was previously created with the ts.TypeChecker which is derived from the
ts.Program anyways. This change requires some reorganization in ngcc to
accommodate, especially in testing harnesses where DecorationAnalyzer is
created manually in a number of specs.

PR Close #27743
2019-01-08 16:36:18 -08:00
..
analysis refactor(ivy): prep ngtsc and ngcc for upcoming import resolution work (#27743) 2019-01-08 16:36:18 -08:00
helpers refactor(ivy): prep ngtsc and ngcc for upcoming import resolution work (#27743) 2019-01-08 16:36:18 -08:00
host refactor(ivy): split apart the 'metadata' package in the ngtsc compiler (#27743) 2019-01-08 16:36:18 -08:00
packages style(ivy): ngcc - fix misspelled method (#26906) 2018-11-30 14:02:03 -08:00
rendering refactor(ivy): prep ngtsc and ngcc for upcoming import resolution work (#27743) 2019-01-08 16:36:18 -08:00
BUILD.bazel refactor(ivy): split apart the 'metadata' package in the ngtsc compiler (#27743) 2019-01-08 16:36:18 -08:00