angular-cn/packages/compiler-cli/src/ngcc/test/analysis
Alex Rickabaugh 0b9094ec63 feat(ivy): produce diagnostics for missing exports, incorrect entrypoint (#27743)
This commit adds tracking of modules, directives, and pipes which are made
visible to consumers through NgModules exported from the package entrypoint.
ngtsc will now produce a diagnostic if such classes are not themselves
exported via the entrypoint (as this is a requirement for downstream
consumers to use them with Ivy).

To accomplish this, a graph of references is created and populated via the
ReferencesRegistry. Symbols exported via the package entrypoint are compared
against the graph to determine if any publicly visible symbols are not
properly exported. Diagnostics are produced for each one which also show the
path by which they become visible.

This commit also introduces a diagnostic (instead of a hard compiler crash)
if an entrypoint file cannot be correctly determined.

PR Close #27743
2019-01-08 16:36:18 -08:00
..
decoration_analyzer_spec.ts refactor(ivy): prep ngtsc and ngcc for upcoming import resolution work (#27743) 2019-01-08 16:36:18 -08:00
module_with_providers_analyzer_spec.ts feat(ivy): ngcc - add typings to `ModuleWithProviders` functions (#27326) 2018-12-20 11:58:49 -05:00
private_declarations_analyzer_spec.ts feat(ivy): produce diagnostics for missing exports, incorrect entrypoint (#27743) 2019-01-08 16:36:18 -08:00
references_registry_spec.ts feat(ivy): produce diagnostics for missing exports, incorrect entrypoint (#27743) 2019-01-08 16:36:18 -08:00
switch_marker_analyzer_spec.ts refactor(ivy): ngcc - encapsulate variables into "bundles" (#26906) 2018-11-30 14:02:03 -08:00