()
| 16 | constructor(readonly text: string) {} |
| 17 | |
| 18 | debugPositionString(): string { |
| 19 | return `line ${this.currentLine + 1}, column: ${this.position - this.currentLineGlobalPosition + 1}`; |
| 20 | } |
| 21 | |
| 22 | private onError(message: string): never { |
| 23 | throw new Error(`At ${this.debugPositionString()}: ${message}`); |