MCPcopy Create free account
hub / github.com/angular/angular / createFactoryFunction

Function createFactoryFunction

packages/compiler/src/injectable_compiler_2.ts:182–185  ·  view source on GitHub ↗
(type: o.Expression)

Source from the content-addressed store, hash-verified

180}
181
182function createFactoryFunction(type: o.Expression): o.ArrowFunctionExpr {
183 const t = new o.FnParam('__ngFactoryType__', o.DYNAMIC_TYPE);
184 return o.arrowFn([t], type.prop('ɵfac').callFn([o.variable(t.name)]));
185}

Callers 1

delegateToFactoryFunction · 0.85

Calls 1

propMethod · 0.45

Tested by

no test coverage detected