(chars: string)
| 618 | } |
| 619 | |
| 620 | private _requireStr(chars: string) { |
| 621 | const location = this._cursor.clone(); |
| 622 | if (!this._attemptStr(chars)) { |
| 623 | throw this._createError( |
| 624 | _unexpectedCharacterErrorMsg(this._cursor.peek()), |
| 625 | this._cursor.getSpan(location), |
| 626 | ); |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | private _attemptCharCodeUntilFn(predicate: (code: number) => boolean) { |
| 631 | while (!predicate(this._cursor.peek())) { |
no test coverage detected