(charCode: number)
| 582 | } |
| 583 | |
| 584 | private _requireCharCode(charCode: number) { |
| 585 | const location = this._cursor.clone(); |
| 586 | if (!this._attemptCharCode(charCode)) { |
| 587 | throw this._createError( |
| 588 | _unexpectedCharacterErrorMsg(this._cursor.peek()), |
| 589 | this._cursor.getSpan(location), |
| 590 | ); |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | private _attemptStr(chars: string): boolean { |
| 595 | const len = chars.length; |
no test coverage detected