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

Function ɵɵngDeclareDirective

packages/core/src/render3/jit/partial.ts:32–43  ·  view source on GitHub ↗
(decl: R3DeclareDirectiveFacade)

Source from the content-addressed store, hash-verified

30 * @codeGenApi
31 */
32export function ɵɵngDeclareDirective(decl: R3DeclareDirectiveFacade): unknown {
33 const compiler = getCompilerFacade({
34 usage: JitCompilerUsage.PartialDeclaration,
35 kind: 'directive',
36 type: decl.type,
37 });
38 return compiler.compileDirectiveDeclaration(
39 angularCoreEnv,
40 `ng:///${decl.type.name}/ɵfac.js`,
41 decl,
42 );
43}
44
45/**
46 * Evaluates the class metadata declaration.

Callers 1

Calls 2

getCompilerFacadeFunction · 0.90

Tested by

no test coverage detected