()
| 894 | } |
| 895 | |
| 896 | private peek(): string { |
| 897 | // Inside a collection, the end of the line continues on the next line. |
| 898 | if (this.index === this.line.length && this.depth > 0) this.nextChunk("token") |
| 899 | return this.line[this.index] ?? "" |
| 900 | } |
| 901 | |
| 902 | private fail(message: string): never { |
| 903 | throw new SyntaxError(`${message} at flow offset ${this.offset + this.index}`) |
no test coverage detected