MCPcopy Create free account
hub / github.com/angular/angular / ɵɵgetComponentDepsFactory

Function ɵɵgetComponentDepsFactory

packages/core/src/render3/local_compilation.ts:16–31  ·  view source on GitHub ↗
(
  type: ComponentType<any>,
  rawImports?: RawScopeInfoFromDecorator[],
)

Source from the content-addressed store, hash-verified

14} from './interfaces/definition';
15
16export function ɵɵgetComponentDepsFactory(
17 type: ComponentType<any>,
18 rawImports?: RawScopeInfoFromDecorator[],
19): () => DependencyTypeList {
20 return () => {
21 try {
22 return depsTracker.getComponentDependencies(type, rawImports).dependencies;
23 } catch (e) {
24 console.error(
25 `Computing dependencies in local compilation mode for the component "${type.name}" failed with the exception:`,
26 e,
27 );
28 throw e;
29 }
30 };
31}

Callers 1

Calls 2

errorMethod · 0.65

Tested by

no test coverage detected