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

Method error

packages/compiler/src/expression_parser/lexer.ts:600–607  ·  view source on GitHub ↗
(message: string, offset: number)

Source from the content-addressed store, hash-verified

598 }
599
600 private error(message: string, offset: number): Token & {type: TokenType.Error} {
601 const position: number = this.index + offset;
602 return newErrorToken(
603 position,
604 this.index,
605 `Lexer Error: ${message} at column ${position} in expression [${this.input}]`,
606 ) as Token & {type: TokenType.Error};
607 }
608
609 private scanStringBackslash(
610 buffer: string,

Callers 7

scanTokenMethod · 0.95
scanPrivateIdentifierMethod · 0.95
scanNumberMethod · 0.95
scanStringMethod · 0.95
scanStringBackslashMethod · 0.95
scanRegexMethod · 0.95

Calls 1

newErrorTokenFunction · 0.85

Tested by

no test coverage detected