(charCode: number)
| 561 | } |
| 562 | |
| 563 | private _requireCharCode(charCode: number) { |
| 564 | const location = this._cursor.clone(); |
| 565 | if (!this._attemptCharCode(charCode)) { |
| 566 | throw this._createError( |
| 567 | _unexpectedCharacterErrorMsg(this._cursor.peek()), |
| 568 | this._cursor.getSpan(location), |
| 569 | ); |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | private _attemptStr(chars: string): boolean { |
| 574 | const len = chars.length; |
no test coverage detected