(expected: string)
| 297 | } |
| 298 | |
| 299 | private expectChar(expected: string): void { |
| 300 | if (this.currentChar() !== expected) { |
| 301 | throw this.error( |
| 302 | `Expected '${expected}' but found '${this.currentChar()}'` |
| 303 | ); |
| 304 | } |
| 305 | this.index++; |
| 306 | } |
| 307 | |
| 308 | currentChar(): string { |
| 309 | return this.text[this.index]; |
no test coverage detected