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