(r1: Range, r2: Range)
| 1 | import { Position, Range } from "../interfaces"; |
| 2 | |
| 3 | export function rangesEqual(r1: Range, r2: Range): boolean { |
| 4 | return positionsEqual(r1.start, r2.start) && positionsEqual(r1.end, r2.end); |
| 5 | } |
| 6 | |
| 7 | export function positionsEqual(p1: Position, p2: Position): boolean { |
| 8 | return p1.line === p2.line && p1.character === p2.character; |
no test coverage detected