()
| 668 | } |
| 669 | |
| 670 | private _readChar(): string { |
| 671 | // Don't rely upon reading directly from `_input` as the actual char value |
| 672 | // may have been generated from an escape sequence. |
| 673 | const char = String.fromCodePoint(this._cursor.peek()); |
| 674 | this._cursor.advance(); |
| 675 | return char; |
| 676 | } |
| 677 | |
| 678 | private _peekStr(chars: string): boolean { |
| 679 | const len = chars.length; |
no test coverage detected