(a:Range, b:Range)
| 149 | } |
| 150 | |
| 151 | export function compareRanges(a:Range, b:Range) { |
| 152 | let first = comparePositions(a.from, b.from); |
| 153 | if(first !== 0) return first; |
| 154 | else return comparePositions(a.to, b.to); |
| 155 | } |
| 156 | |
| 157 | export function samePosition(a:Position, b:Position) { |
| 158 | return comparePositions(a, b) === 0; |
nothing calls this directly
no test coverage detected