(decl: R3DeclareFactoryFacade)
| 109 | * @codeGenApi |
| 110 | */ |
| 111 | export 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 | |
| 124 | function getFactoryKind(target: FactoryTarget) { |
| 125 | switch (target) { |
no test coverage detected