(character: string)
| 306 | } |
| 307 | |
| 308 | private expect(character: string): void { |
| 309 | if (this.peek() !== character) this.fail(`Expected '${character}'`) |
| 310 | this.index++ |
| 311 | } |
| 312 | |
| 313 | private peek(): string { |
| 314 | return this.input[this.index] ?? "" |
no test coverage detected