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

Method error

packages/compiler/src/expression_parser/parser.ts:1817–1822  ·  view source on GitHub ↗

* Records an error and skips over the token stream until reaching a recoverable point. See * `this.skip` for more details on token skipping.

(message: string, index = this.index)

Source from the content-addressed store, hash-verified

1815 * `this.skip` for more details on token skipping.
1816 */
1817 private error(message: string, index = this.index) {
1818 this.errors.push(
1819 getParseError(message, this.input, this.getErrorLocationText(index), this.parseSourceSpan),
1820 );
1821 this.skip();
1822 }
1823
1824 private getErrorLocationText(index: number) {
1825 return index < this.tokens.length

Callers 15

expectCharacterMethod · 0.95
expectOperatorMethod · 0.95
parseChainMethod · 0.95
parsePipeMethod · 0.95
parseConditionalMethod · 0.95
parseExponentiationMethod · 0.95
parsePrimaryMethod · 0.95
parseAccessMemberMethod · 0.95
parseSpreadElementMethod · 0.95
parseKeyedReadOrWriteMethod · 0.95

Calls 4

getErrorLocationTextMethod · 0.95
skipMethod · 0.95
getParseErrorFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected