(selection: InputSelection)
| 454 | } |
| 455 | |
| 456 | function normalizeSelectionRange(selection: InputSelection): readonly [number, number] { |
| 457 | return selection.start <= selection.end |
| 458 | ? [selection.start, selection.end] |
| 459 | : [selection.end, selection.start]; |
| 460 | } |
| 461 | |
| 462 | function resolveSelectionAnchor(selection: InputSelection, cursor: number): number { |
| 463 | if (cursor === selection.start) return selection.end; |
no outgoing calls
no test coverage detected