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

Method sourceSpan

packages/compiler/src/expression_parser/parser.ts:675–684  ·  view source on GitHub ↗
(start: number, artificialEndIndex?: number)

Source from the content-addressed store, hash-verified

673 }
674
675 private sourceSpan(start: number, artificialEndIndex?: number): AbsoluteSourceSpan {
676 const serial = `${start}@${this.inputIndex}:${artificialEndIndex}`;
677 if (!this.sourceSpanCache.has(serial)) {
678 this.sourceSpanCache.set(
679 serial,
680 this.span(start, artificialEndIndex).toAbsolute(this.absoluteOffset),
681 );
682 }
683 return this.sourceSpanCache.get(serial)!;
684 }
685
686 private advance() {
687 this.index++;

Callers 15

parseChainMethod · 0.95
parsePipeMethod · 0.95
parseConditionalMethod · 0.95
parseLogicalOrMethod · 0.95
parseLogicalAndMethod · 0.95
parseEqualityMethod · 0.95
parseRelationalMethod · 0.95
parseAdditiveMethod · 0.95
parseMultiplicativeMethod · 0.95
parseExponentiationMethod · 0.95
parsePrefixMethod · 0.95

Calls 5

spanMethod · 0.95
toAbsoluteMethod · 0.80
hasMethod · 0.65
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected