angular-cn/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin e010f2ca54 refactor(ngcc): move `getModuleWithProvidersFunctions()` into the analyzer (#36948)
Previously this method was implemented on the `NgccReflectionHost`,
but really it is asking too much of the host, since it actually needs to do
some static evaluation of the code to be able to support a wider range
of function shapes. Also there was only one implementation of the method
in the `Esm2015ReflectionHost` since it has no format specific code in
in.

This commit moves the whole function (and supporting helpers) into the
`ModuleWithProvidersAnalyzer`, which is the only place it was being used.
This class will be able to do further static evaluation of the function bodies
in order to support more function shapes than the host can do on its own.

The commit removes a whole set of reflection host tests but these are
already covered by the tests of the analyzer.

PR Close #36948
2020-05-06 13:35:48 -07:00
..
commonjs_host_import_helper_spec.ts style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -07:00
commonjs_host_spec.ts refactor(ngcc): move `getModuleWithProvidersFunctions()` into the analyzer (#36948) 2020-05-06 13:35:48 -07:00
esm5_host_import_helper_spec.ts style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -07:00
esm5_host_spec.ts refactor(ngcc): move `getModuleWithProvidersFunctions()` into the analyzer (#36948) 2020-05-06 13:35:48 -07:00
esm2015_host_import_helper_spec.ts style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -07:00
esm2015_host_spec.ts refactor(ngcc): move `getModuleWithProvidersFunctions()` into the analyzer (#36948) 2020-05-06 13:35:48 -07:00
umd_host_import_helper_spec.ts style(ngcc): reformat of ngcc after clang update (#36447) 2020-04-06 09:26:57 -07:00
umd_host_spec.ts refactor(ngcc): move `getModuleWithProvidersFunctions()` into the analyzer (#36948) 2020-05-06 13:35:48 -07:00
util.ts fix(compiler): handle type references to namespaced symbols correctly (#36106) 2020-04-09 11:32:21 -07:00