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

Function computeProvidedIn

packages/compiler/src/jit_compiler_facade.ts:839–848  ·  view source on GitHub ↗
(
  providedIn: Function | string | null | undefined,
)

Source from the content-addressed store, hash-verified

837}
838
839function computeProvidedIn(
840 providedIn: Function | string | null | undefined,
841): MaybeForwardRefExpression {
842 const expression =
843 typeof providedIn === 'function'
844 ? new WrappedNodeExpr(providedIn)
845 : new LiteralExpr(providedIn ?? null);
846 // See `convertToProviderExpression()` for why this uses `ForwardRefHandling.None`.
847 return createMayBeForwardRefExpression(expression, ForwardRefHandling.None);
848}
849
850function convertR3DependencyMetadataArray(
851 facades: R3DependencyMetadataFacade[] | null | undefined,

Callers 2

compileInjectableMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…