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