(value: string)
| 201 | return t; |
| 202 | } |
| 203 | private expect(value: string): void { |
| 204 | const t = this.next(); |
| 205 | if (t.kind !== 'punct' || t.value !== value) |
| 206 | throw new Error(`expected '${value}', got '${t.value}'`); |
| 207 | } |
| 208 | |
| 209 | atEnd(): boolean { |
| 210 | return this.i >= this.tokens.length; |
no test coverage detected