* gets the current line, and advances the position. * @returns the current line
()
| 138 | * @returns the current line |
| 139 | */ |
| 140 | private async line() { |
| 141 | let line = this.lineBuffer.at(this.current); |
| 142 | while (line === undefined) { |
| 143 | await this.lineBuffer.changed; |
| 144 | line = this.lineBuffer.at(this.current); |
| 145 | } |
| 146 | this.advance(); |
| 147 | return line; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Skips a number of lines. |