angular-cn/packages/compiler-cli/ngcc/test/host
Pete Bacon Darwin 1d141a8ab1 fix(compiler-cli): attach the correct `viaModule` to namespace imports (#33495)
Previously declarations that were imported via a namespace import
were given the same `bestGuessOwningModule` as the context
where they were imported to. This causes problems with resolving
`ModuleWithProviders` that have a type that has been imported in
this way, causing errors like:

```
ERROR in Symbol UIRouterModule declared in
.../@uirouter/angular/uiRouterNgModule.d.ts
is not exported from
.../@uirouter/angular/uirouter-angular.d.ts
(import into .../src/app/child.module.ts)
```

This commit modifies the `TypescriptReflectionHost.getDirectImportOfIdentifier()`
method so that it also understands how to attach the correct `viaModule` to
the identifier of the namespace import.

Resolves #32166

PR Close #33495
2019-10-31 22:25:48 +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): report the correct viaModule when reflecting over commonjs (#33192) 2019-10-17 19:43:39 -04: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(compiler-cli): attach the correct `viaModule` to namespace imports (#33495) 2019-10-31 22:25:48 +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(compiler-cli): attach the correct `viaModule` to namespace imports (#33495) 2019-10-31 22:25:48 +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): 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