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

Function getPrefetchSpan

packages/compiler/src/render3/r3_deferred_triggers.ts:169–174  ·  view source on GitHub ↗
(expression: string, sourceSpan: ParseSourceSpan)

Source from the content-addressed store, hash-verified

167}
168
169function getPrefetchSpan(expression: string, sourceSpan: ParseSourceSpan) {
170 if (!expression.startsWith('prefetch')) {
171 return null;
172 }
173 return new ParseSourceSpan(sourceSpan.start, sourceSpan.start.moveBy('prefetch'.length));
174}
175
176function getHydrateSpan(expression: string, sourceSpan: ParseSourceSpan) {
177 if (!expression.startsWith('hydrate')) {

Callers 3

parseNeverTriggerFunction · 0.85
parseWhenTriggerFunction · 0.85
parseOnTriggerFunction · 0.85

Calls 1

moveByMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…