fix(core): missing-injectable migration should handle forwardRef (#33286)

Currently the migration is unable to migrate instances where
the provider definition uses `forwardRef`. Since this is a
common pattern, we should support that from within the migration.

The solution to the problem is adding a foreign function resolver
to the `PartialEvaluator`. This basically matches the usage of
the static evaluation that is used by the ngtsc annotations.

PR Close #33286
This commit is contained in:
Paul Gschwendtner
2019-10-21 15:45:33 +02:00
committed by Andrew Kushnir
parent 4b81bb5c97
commit eeecbf28e4
3 changed files with 35 additions and 3 deletions

View File

@ -11,6 +11,7 @@ ts_library(
"//packages/core/schematics/test:__pkg__",
],
deps = [
"//packages/compiler-cli/src/ngtsc/annotations",
"//packages/compiler-cli/src/ngtsc/imports",
"//packages/compiler-cli/src/ngtsc/partial_evaluator",
"//packages/compiler-cli/src/ngtsc/reflection",