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

Function deepForEachProvider

packages/core/src/di/provider_collection.ts:388–402  ·  view source on GitHub ↗
(
  providers: Array<Provider | InternalEnvironmentProviders>,
  fn: (provider: SingleProvider) => void,
)

Source from the content-addressed store, hash-verified

386}
387
388function deepForEachProvider(
389 providers: Array<Provider | InternalEnvironmentProviders>,
390 fn: (provider: SingleProvider) => void,
391): void {
392 for (let provider of providers) {
393 if (isEnvironmentProviders(provider)) {
394 provider = provider.ɵproviders;
395 }
396 if (Array.isArray(provider)) {
397 deepForEachProvider(provider, fn);
398 } else {
399 fn(provider);
400 }
401 }
402}
403
404export const USE_VALUE: string = getClosureSafeProperty<ValueProvider>({
405 provide: String,

Callers 2

walkProviderTreeFunction · 0.85

Calls 3

isEnvironmentProvidersFunction · 0.90
isArrayMethod · 0.80
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…