angular/packages/compiler-cli/ngcc/src/host
Alex Rickabaugh 29b8666b10 fix(ngcc): properly detect origin of constructor param types (#33901)
The ReflectionHost supports enumeration of constructor parameters, and one
piece of information it returns describes the origin of the parameter's
type. Parameter types come in two flavors: local (the type is not imported
from anywhere) or non-local (the type comes via an import).

ngcc incorrectly classified all type parameters as 'local', because in the
source files that ngcc processes the type parameter is a real ts.Identifer.
However, that identifier may still have come from an import and thus might
be non-local.

This commit changes ngcc's ReflectionHost(s) to properly recognize and
report these non-local type references.

Fixes #33677

PR Close #33901
2019-11-19 11:38:33 -08:00
..
commonjs_host.ts refactor(ngcc): remove unused function (#33777) 2019-11-13 11:11:48 -08:00
esm5_host.ts fix(ngcc): support minified ES5 scenarios (#33777) 2019-11-13 11:11:48 -08:00
esm2015_host.ts fix(ngcc): properly detect origin of constructor param types (#33901) 2019-11-19 11:38:33 -08:00
ngcc_host.ts fix(ngcc): ensure that adjacent statements go after helper calls (#33689) 2019-11-11 13:01:15 -08:00
umd_host.ts refactor(ngcc): move stripParentheses to Esm5ReflectionHost for re-use (#33777) 2019-11-13 11:11:48 -08:00