()
| 280 | } |
| 281 | |
| 282 | peekLine(): string { |
| 283 | const currentPos = this.pos; |
| 284 | let line = ''; |
| 285 | while (!this.atEnd() && this.peek() !== '\n') { |
| 286 | line += this.consume(); |
| 287 | } |
| 288 | // Reset position |
| 289 | this.pos = currentPos; |
| 290 | return line; |
| 291 | } |
| 292 | |
| 293 | isDigit(char: string): boolean { |
| 294 | return /\d/.test(char); |
no test coverage detected