angular-cn/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin bfd07b3c94 fix(ngcc): Esm5ReflectionHost.getDeclarationOfIdentifier should handle aliased inner declarations (#33252)
In ES5 modules, the class declarations consist of an IIFE with inner
and outer declarations that represent the class. The `EsmReflectionHost`
has logic to ensure that `getDeclarationOfIdentifier()` always returns the
outer declaration.

Before this commit, if an identifier referred to an alias of the inner
declaration, then `getDeclarationOfIdentifier()` was failing to find
the outer declaration - instead returning the inner declaration.

Now the identifier is correctly resolved up to the outer declaration
as expected.

This should fix some of the failing 3rd party packages discussed in
https://github.com/angular/ngcc-validation/issues/57.

PR Close #33252
2019-10-18 14:41:25 -04:00
..
commonjs_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
commonjs_host_spec.ts fix(ngcc): report the correct viaModule when reflecting over commonjs (#33192) 2019-10-17 19:43:39 -04:00
esm5_host_import_helper_spec.ts fix(ngcc): handle presence of both `ctorParameters` and `__decorate` (#32901) 2019-09-30 14:11:45 -07:00
esm5_host_spec.ts fix(ngcc): Esm5ReflectionHost.getDeclarationOfIdentifier should handle aliased inner declarations (#33252) 2019-10-18 14:41:25 -04:00
esm2015_host_import_helper_spec.ts fix(ngcc): handle presence of both `ctorParameters` and `__decorate` (#32901) 2019-09-30 14:11:45 -07:00
esm2015_host_spec.ts fix(ngcc): avoid warning when reflecting on index signature member (#33198) 2019-10-17 16:05:48 -04:00
umd_host_import_helper_spec.ts fix(ivy): ngcc - render decorators in UMD and CommonJS bundles correctly (#31614) 2019-07-29 16:10:58 -07:00
umd_host_spec.ts fix(ngcc): resolve imports in `.d.ts` files for UMD/CommonJS bundles (#32619) 2019-09-12 13:18:20 -07:00
util.ts refactor(ivy): implement a virtual file-system layer in ngtsc + ngcc (#30921) 2019-06-25 16:25:24 -07:00