MCPcopy Index your code
hub / github.com/angular/angular / getInjectFn

Function getInjectFn

packages/compiler/src/render3/r3_factory.ts:333–344  ·  view source on GitHub ↗
(target: FactoryTarget)

Source from the content-addressed store, hash-verified

331}
332
333function getInjectFn(target: FactoryTarget): o.ExternalReference {
334 switch (target) {
335 case FactoryTarget.Component:
336 case FactoryTarget.Directive:
337 case FactoryTarget.Pipe:
338 return R3.directiveInject;
339 case FactoryTarget.NgModule:
340 case FactoryTarget.Injectable:
341 default:
342 return R3.inject;
343 }
344}

Callers 1

compileInjectDependencyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…