* Move to the start of the current line (column 0). * This is the raw version used internally by startOfLine.
()
| 412 | * This is the raw version used internally by startOfLine. |
| 413 | */ |
| 414 | private startOfCurrentLine(): Cursor { |
| 415 | const { line } = this.getPosition() |
| 416 | return new Cursor( |
| 417 | this.measuredText, |
| 418 | this.getOffset({ |
| 419 | line, |
| 420 | column: 0, |
| 421 | }), |
| 422 | 0, |
| 423 | ) |
| 424 | } |
| 425 | |
| 426 | startOfLine(): Cursor { |
| 427 | const { line, column } = this.getPosition() |
no test coverage detected