angular-cn/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin 93a23b9ae0 fix(ngcc): override `getInternalNameOfClass()` and `getAdjacentNameOfClass()` for ES5 (#33533)
In ES5 the class consists of an outer variable declaration that is
initialised by an IIFE. Inside the IIFE the class is implemented by
an inner function declaration that is returned from the IIFE.
This inner declaration may have a different name to the outer
declaration.

This commit overrides `getInternalNameOfClass()` and
`getAdjacentNameOfClass()` in `Esm5ReflectionHost` with methods that
can find the correct inner declaration name identifier.

PR Close #33533
2019-11-05 17:25:01 +00:00
..
commonjs_host_import_helper_spec.ts refactor(ivy): mark synthetic decorators explicitly (#33362) 2019-10-25 09:16:49 -07:00
commonjs_host_spec.ts fix(ngcc): override `getInternalNameOfClass()` and `getAdjacentNameOfClass()` for ES5 (#33533) 2019-11-05 17:25:01 +00:00
esm5_host_import_helper_spec.ts refactor(ivy): mark synthetic decorators explicitly (#33362) 2019-10-25 09:16:49 -07:00
esm5_host_spec.ts fix(ngcc): override `getInternalNameOfClass()` and `getAdjacentNameOfClass()` for ES5 (#33533) 2019-11-05 17:25:01 +00:00
esm2015_host_import_helper_spec.ts refactor(ivy): mark synthetic decorators explicitly (#33362) 2019-10-25 09:16:49 -07:00
esm2015_host_spec.ts fix(ngcc): override `getInternalNameOfClass()` and `getAdjacentNameOfClass()` for ES5 (#33533) 2019-11-05 17:25:01 +00:00
umd_host_import_helper_spec.ts refactor(ivy): mark synthetic decorators explicitly (#33362) 2019-10-25 09:16:49 -07:00
umd_host_spec.ts fix(ngcc): override `getInternalNameOfClass()` and `getAdjacentNameOfClass()` for ES5 (#33533) 2019-11-05 17:25:01 +00:00
util.ts refactor(ivy): implement a virtual file-system layer in ngtsc + ngcc (#30921) 2019-06-25 16:25:24 -07:00