angular-cn/packages/compiler-cli
JoostK 98f8b0f328 fix(ivy): ngcc - properly handle aliases class expressions (#29119)
In ES2015, classes could have been emitted as a variable declaration
initialized with a class expression. In certain situations, an intermediary
variable suffixed with `_1` is present such that the variable
declaration's initializer becomes a binary expression with its rhs being
the class expression, and its lhs being the identifier of the intermediate
variable. This structure was not recognized, resulting in such classes not
being considered as a class in `Esm2015ReflectionHost`.

As a consequence, the analysis of functions/methods that return a
`ModuleWithProviders` object did not take the methods of such classes into
account.

Another edge-case with such intermediate variable was that static
properties would not be considered as class members. A testcase was added
to prevent regressions.

Fixes #29078

PR Close #29119
2019-04-02 10:50:46 -07:00
..
integrationtest fix(bazel): add missing binary path for api-extractor (#29202) 2019-03-12 10:49:49 -07:00
ngcc fix(ivy): ngcc - properly handle aliases class expressions (#29119) 2019-04-02 10:50:46 -07:00
src fix(ivy): ngcc - properly handle aliases class expressions (#29119) 2019-04-02 10:50:46 -07:00
test fix(ivy): support finding the import of namespace-imported identifiers (#27675) 2019-04-01 16:06:14 -07:00
BUILD.bazel perf(ivy): basic incremental compilation for ngtsc (#29380) 2019-04-01 15:13:56 -07:00
index.ts feat(compiler-cli): expose ngtsc as a TscPlugin (#28435) 2019-01-29 16:41:59 -08:00
ngtools2.ts refactor(compiler-cli): expose ngtools api separately (#18978) 2017-08-31 14:37:13 -07:00
package.json refactor(ivy): move ngcc into a higher level folder (#29092) 2019-03-20 14:45:54 -04:00
tsconfig-build.json build(compiler-cli): enable full TypeScript strictness (#29436) 2019-03-21 12:14:39 -04:00
tsconfig.json build(compiler-cli): enable full TypeScript strictness (#29436) 2019-03-21 12:14:39 -04:00