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

Method onInvoke

packages/zone.js/lib/zone-spec/wtf.ts:75–95  ·  view source on GitHub ↗
(
      parentZoneDelegate: ZoneDelegate,
      currentZone: Zone,
      targetZone: Zone,
      delegate: Function,
      applyThis: any,
      applyArgs?: any[],
      source?: string,
    )

Source from the content-addressed store, hash-verified

73 }
74
75 onInvoke(
76 parentZoneDelegate: ZoneDelegate,
77 currentZone: Zone,
78 targetZone: Zone,
79 delegate: Function,
80 applyThis: any,
81 applyArgs?: any[],
82 source?: string,
83 ): any {
84 const src = source || 'unknown';
85 let scope = WtfZoneSpec.invokeScope[src];
86 if (!scope) {
87 scope = WtfZoneSpec.invokeScope[src] = wtfEvents!.createScope(
88 `Zone:invoke:${source}(ascii zone)`,
89 );
90 }
91 return wtfTrace!.leaveScope(
92 scope(zonePathName(targetZone)),
93 parentZoneDelegate.invoke(targetZone, delegate, applyThis, applyArgs, source),
94 );
95 }
96
97 onHandleError(
98 parentZoneDelegate: ZoneDelegate,

Callers

nothing calls this directly

Calls 4

zonePathNameFunction · 0.85
createScopeMethod · 0.80
leaveScopeMethod · 0.80
invokeMethod · 0.65

Tested by

no test coverage detected