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

Function emitInjectEvent

packages/core/src/render3/debug/injector_profiler.ts:341–353  ·  view source on GitHub ↗
(
  token: Type<unknown>,
  value: unknown,
  flags: InternalInjectFlags,
)

Source from the content-addressed store, hash-verified

339 * @param flags the flags that the token was injected with
340 */
341export function emitInjectEvent(
342 token: Type<unknown>,
343 value: unknown,
344 flags: InternalInjectFlags,
345): void {
346 !ngDevMode && throwError('Injector profiler should never be called in production mode');
347
348 injectorProfiler({
349 type: InjectorProfilerEventType.Inject,
350 context: getInjectorProfilerContext(),
351 service: {token, value, flags},
352 });
353}
354
355export function emitEffectCreatedEvent(effect: EffectRefImpl): void {
356 !ngDevMode && throwError('Injector profiler should never be called in production mode');

Callers 2

injectInjectorOnlyFunction · 0.90
ɵɵdirectiveInjectFunction · 0.90

Calls 3

throwErrorFunction · 0.90
injectorProfilerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…