(a:Position, b:Position)
| 142 | } |
| 143 | |
| 144 | export function comparePositions(a:Position, b:Position) { |
| 145 | if(a.line === b.line && a.ch === b.ch) return 0; |
| 146 | if(a.line > b.line) return 1; |
| 147 | if(a.line === b.line && a.ch > b.ch) return 1; |
| 148 | return -1; |
| 149 | } |
| 150 | |
| 151 | export function compareRanges(a:Range, b:Range) { |
| 152 | let first = comparePositions(a.from, b.from); |
no outgoing calls
no test coverage detected