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

Method error

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

Source from the content-addressed store, hash-verified

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