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

Method handleError

packages/compiler/src/ml_parser/lexer.ts:557–566  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

555 }
556
557 private handleError(e: any) {
558 if (e instanceof CursorError) {
559 e = this._createError(e.msg, this._cursor.getSpan(e.cursor));
560 }
561 if (e instanceof ParseError) {
562 this.errors.push(e);
563 } else {
564 throw e;
565 }
566 }
567
568 private _attemptCharCode(charCode: number): boolean {
569 if (this._cursor.peek() === charCode) {

Callers 2

constructorMethod · 0.95
tokenizeMethod · 0.95

Calls 3

_createErrorMethod · 0.95
getSpanMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected