angular-cn/packages/core/schematics/migrations/static-queries/angular
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
..
analyze_query_usage.ts refactor(core): static query schematic should handle asynchronous query usages properly (#29133) 2019-03-12 12:28:14 -07:00
declaration_usage_visitor.ts refactor(core): static-query migration does not detect external call expressions. (#29133) 2019-03-12 12:28:14 -07:00
decorators.ts feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
directive_inputs.ts feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
ng_query_visitor.ts feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00
query-definition.ts feat(core): update schematic to migrate to explicit query timing (#28983) 2019-03-05 14:21:40 -08:00