This commit splits apart selector_scope.ts in ngtsc and extracts the logic into two separate classes, the LocalModuleScopeRegistry and the DtsModuleScopeResolver. The logic is cleaned up significantly and new tests are added to verify behavior. LocalModuleScopeRegistry implements the NgModule semantics for compilation scopes, and handles NgModules declared in the current compilation unit. DtsModuleScopeResolver implements simpler logic for export scopes and handles NgModules declared in .d.ts files. This is done in preparation for the addition of re-export logic to solve StrictDeps issues. PR Close #28852
19 lines
706 B
TypeScript
19 lines
706 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
/// <reference types="node" />
|
|
|
|
export {ResourceLoader} from './src/api';
|
|
export {BaseDefDecoratorHandler} from './src/base_def';
|
|
export {ComponentDecoratorHandler} from './src/component';
|
|
export {DirectiveDecoratorHandler} from './src/directive';
|
|
export {InjectableDecoratorHandler} from './src/injectable';
|
|
export {NgModuleDecoratorHandler} from './src/ng_module';
|
|
export {PipeDecoratorHandler} from './src/pipe';
|
|
export {NoopReferencesRegistry, ReferencesRegistry} from './src/references_registry';
|