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

Function getHydrateSpan

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

Source from the content-addressed store, hash-verified

174}
175
176function getHydrateSpan(expression: string, sourceSpan: ParseSourceSpan) {
177 if (!expression.startsWith('hydrate')) {
178 return null;
179 }
180 return new ParseSourceSpan(sourceSpan.start, sourceSpan.start.moveBy('hydrate'.length));
181}
182
183class OnTriggerParser {
184 private index = 0;

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…