angular-cn/packages/compiler/src/aot
Paul Gschwendtner 355e54a410 fix(compiler): do not throw when using abstract directive from other compilation unit (#33347)
Libraries can expose directive/component base classes that will be
used by consumer applications. Using such a base class from another
compilation unit works fine with "ngtsc", but when using "ngc", the
compiler will thrown an error saying that the base class is not
part of a NgModule. e.g.

```
Cannot determine the module for class X in Y! Add X to the NgModule to fix it.
```

This seems to be because the logic for distinguishing directives from
abstract directives is scoped to the current compilation unit within
ngc. This causes abstract directives from other compilation units to
be considered as actual directives (causing the exception).

PR Close #33347
2019-10-23 11:59:24 -07:00
..
compiler.ts fix(compiler): do not throw when using abstract directive from other compilation unit (#33347) 2019-10-23 11:59:24 -07:00
compiler_factory.ts feat(compiler): add basic support for in ivy/i18n code generation (#22654) 2018-03-22 19:01:51 -04:00
compiler_host.ts refactor(compiler): remove old ngtools api and add listLazyRoutes to new api (#19836) 2017-10-23 18:46:04 -04:00
compiler_options.ts refactor(ivy): remove the tsc passthrough option (#32219) 2019-08-20 16:41:08 -07:00
formatted_error.ts feat: typescript 3.6 support (#32946) 2019-10-18 13:15:16 -04:00
generated_file.ts Revert "Revert "Revert "perf(compiler): skip type check and emit in bazel in some cases. (#19646)""" 2017-10-12 16:09:49 -07:00
lazy_routes.ts refactor(compiler): remove old ngtools api and add listLazyRoutes to new api (#19836) 2017-10-23 18:46:04 -04:00
partial_module.ts feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
static_reflector.ts feat: typescript 3.6 support (#32946) 2019-10-18 13:15:16 -04:00
static_symbol.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
static_symbol_resolver.ts fix(language-service): create StaticReflector once only (#32543) 2019-10-03 15:02:03 -07:00
summary_resolver.ts build(bazel): remove workaround no longer needed for module names for ngfactory & ngsummary files (#25604) 2018-08-22 21:11:18 -04:00
summary_serializer.ts refactor: Consistently use index access on index signature types. (#28937) 2019-02-28 02:49:14 -08:00
util.ts fix(compiler): make tsx file aot compatible 2017-12-15 07:53:46 -08:00