updates the position and marks the location
(count = 1)
| 333 | |
| 334 | /** updates the position and marks the location */ |
| 335 | private newLine(count = 1) { |
| 336 | this.text = this.#text.substr(this.#offset, count); |
| 337 | this.advance(count); |
| 338 | |
| 339 | this.#line++; |
| 340 | this.#column = 0; |
| 341 | this.markPosition(); // make sure the map has the new location |
| 342 | |
| 343 | return this.kind = Kind.NewLine; |
| 344 | } |
| 345 | |
| 346 | start() { |
| 347 | if (this.offset === undefined) { |
no test coverage detected