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

Method sourceSpan

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

Source from the content-addressed store, hash-verified

669 }
670
671 private sourceSpan(start: number, artificialEndIndex?: number): AbsoluteSourceSpan {
672 const serial = `${start}@${this.inputIndex}:${artificialEndIndex}`;
673 if (!this.sourceSpanCache.has(serial)) {
674 this.sourceSpanCache.set(
675 serial,
676 this.span(start, artificialEndIndex).toAbsolute(this.absoluteOffset),
677 );
678 }
679 return this.sourceSpanCache.get(serial)!;
680 }
681
682 private advance() {
683 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