angular-cn/packages/core/schematics/migrations/static-queries
Paul Gschwendtner 360730ce59 refactor(core): static-query migration does not detect external call expressions. (#29133)
Currently the static-query migration does not properly handle functions which
are declared externally. This is because we don't resolve the symbol of the
call-expression through its type. Currently we just determine the symbol of the
call-expression through the given call expression node, which doesn't necessarily
refer to the *value declaration* of the call expression. e.g. the symbol refers to the
import declaration which imports the external function. This means that we currently
can't check the external function as we couldn't find the actual value declaration.
We can fix this by resolving the type of the call expression and using the type in order
to retrieve the symbol containing the *value declaration*

PR Close #29133
2019-03-12 12:28:14 -07:00
..
angular refactor(core): static-query migration does not detect external call expressions. (#29133) 2019-03-12 12:28:14 -07:00
typescript refactor(core): static query schematic should handle asynchronous query usages properly (#29133) 2019-03-12 12:28:14 -07:00
BUILD.bazel feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
index.ts feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
migration.ts refactor(core): static-query schematic incorrectly handles multiple tsconfigs (#29133) 2019-03-12 12:28:14 -07:00