angular-cn/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin b3c3000004 fix(ngcc): ensure that adjacent statements go after helper calls (#33689)
Previously the renderers were fixed so that they inserted extra
"adjacent" statements after the last static property of classes.

In order to help the build-optimizer (in Angular CLI) to be able to
tree-shake classes effectively, these statements should also appear
after any helper calls, such as `__decorate()`.

This commit moves the computation of this positioning into the
`NgccReflectionHost` via the `getEndOfClass()` method, which
returns the last statement that is related to the class.

FW-1668

PR Close #33689
2019-11-11 13:01:15 -08: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 fix(ngcc): ensure that adjacent statements go after helper calls (#33689) 2019-11-11 13:01:15 -08:00
esm5_host_spec.ts fix(ngcc): ensure that adjacent statements go after helper calls (#33689) 2019-11-11 13:01:15 -08:00
esm2015_host_import_helper_spec.ts fix(ngcc): ensure that adjacent statements go after helper calls (#33689) 2019-11-11 13:01:15 -08:00
esm2015_host_spec.ts fix(ngcc): ensure that adjacent statements go after helper calls (#33689) 2019-11-11 13:01:15 -08: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