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

Function ɵɵngDeclareFactory

packages/core/src/render3/jit/partial.ts:111–122  ·  view source on GitHub ↗
(decl: R3DeclareFactoryFacade)

Source from the content-addressed store, hash-verified

109 * @codeGenApi
110 */
111export function ɵɵngDeclareFactory(decl: R3DeclareFactoryFacade): unknown {
112 const compiler = getCompilerFacade({
113 usage: JitCompilerUsage.PartialDeclaration,
114 kind: getFactoryKind(decl.target),
115 type: decl.type,
116 });
117 return compiler.compileFactoryDeclaration(
118 angularCoreEnv,
119 `ng:///${decl.type.name}/ɵfac.js`,
120 decl,
121 );
122}
123
124function getFactoryKind(target: FactoryTarget) {
125 switch (target) {

Callers 4

TestClassClass · 0.90
DependingClassClass · 0.90
ChildClassClass · 0.90
InvalidDepsClassClass · 0.90

Calls 3

getCompilerFacadeFunction · 0.90
getFactoryKindFunction · 0.85

Tested by

no test coverage detected