(e: any)
| 537 | } |
| 538 | |
| 539 | private handleError(e: any) { |
| 540 | if (e instanceof CursorError) { |
| 541 | e = this._createError(e.msg, this._cursor.getSpan(e.cursor)); |
| 542 | } |
| 543 | if (e instanceof ParseError) { |
| 544 | this.errors.push(e); |
| 545 | } else { |
| 546 | throw e; |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | private _attemptCharCode(charCode: number): boolean { |
| 551 | if (this._cursor.peek() === charCode) { |
no test coverage detected