(token: string)
| 383 | } |
| 384 | |
| 385 | private expect(token: string): void { |
| 386 | if (!this.consumeIf(token)) { |
| 387 | this.fail(`Expected "${token}"`); |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | private consumeIf(token: string): boolean { |
| 392 | if (this.source.startsWith(token, this.pos)) { |
no test coverage detected