(type: any, scope: NgModuleScopeInfoFromDecorator)
| 53 | * @codeGenApi |
| 54 | */ |
| 55 | export function ɵɵsetNgModuleScope(type: any, scope: NgModuleScopeInfoFromDecorator): unknown { |
| 56 | return noSideEffects(() => { |
| 57 | const ngModuleDef = getNgModuleDefOrThrow(type); |
| 58 | ngModuleDef.declarations = convertToTypeArray(scope.declarations || EMPTY_ARRAY); |
| 59 | ngModuleDef.imports = convertToTypeArray(scope.imports || EMPTY_ARRAY); |
| 60 | ngModuleDef.exports = convertToTypeArray(scope.exports || EMPTY_ARRAY); |
| 61 | |
| 62 | if (scope.bootstrap) { |
| 63 | // This only happens in local compilation mode. |
| 64 | ngModuleDef.bootstrap = convertToTypeArray(scope.bootstrap); |
| 65 | } |
| 66 | |
| 67 | depsTracker.registerNgModule(type, scope); |
| 68 | }); |
| 69 | } |
| 70 | |
| 71 | function convertToTypeArray( |
| 72 | values: Type<any>[] | (() => Type<any>[]) | RawScopeInfoFromDecorator[], |
no test coverage detected
searching dependent graphs…