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

Method error

packages/compiler/src/expression_parser/parser.ts:1863–1868  ·  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

1861 * `this.skip` for more details on token skipping.
1862 */
1863 private error(message: string, index = this.index) {
1864 this.errors.push(
1865 getParseError(message, this.input, this.getErrorLocationText(index), this.parseSourceSpan),
1866 );
1867 this.skip();
1868 }
1869
1870 private getErrorLocationText(index: number) {
1871 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

Calls 4

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

Tested by

no test coverage detected