* Move to the start of the current line (column 0). * This is the raw version used internally by startOfLine.
()
| 387 | * This is the raw version used internally by startOfLine. |
| 388 | */ |
| 389 | private startOfCurrentLine(): Cursor { |
| 390 | const { line } = this.getPosition() |
| 391 | return new Cursor( |
| 392 | this.measuredText, |
| 393 | this.getOffset({ |
| 394 | line, |
| 395 | column: 0, |
| 396 | }), |
| 397 | 0, |
| 398 | ) |
| 399 | } |
| 400 | |
| 401 | startOfLine(): Cursor { |
| 402 | const { line, column } = this.getPosition() |
no test coverage detected