(chars: string)
| 597 | } |
| 598 | |
| 599 | private _requireStr(chars: string) { |
| 600 | const location = this._cursor.clone(); |
| 601 | if (!this._attemptStr(chars)) { |
| 602 | throw this._createError( |
| 603 | _unexpectedCharacterErrorMsg(this._cursor.peek()), |
| 604 | this._cursor.getSpan(location), |
| 605 | ); |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | private _attemptCharCodeUntilFn(predicate: (code: number) => boolean) { |
| 610 | while (!predicate(this._cursor.peek())) { |
no test coverage detected