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