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

Method handleError

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

Source from the content-addressed store, hash-verified

550 }
551
552 private handleError(e: any) {
553 if (e instanceof CursorError) {
554 e = this._createError(e.msg, this._cursor.getSpan(e.cursor));
555 }
556 if (e instanceof ParseError) {
557 this.errors.push(e);
558 } else {
559 throw e;
560 }
561 }
562
563 private _attemptCharCode(charCode: number): boolean {
564 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