MCPcopy
hub / github.com/witheve/Eve / compareRanges

Function compareRanges

src/util.ts:151–155  ·  view source on GitHub ↗
(a:Range, b:Range)

Source from the content-addressed store, hash-verified

149}
150
151export 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
157export function samePosition(a:Position, b:Position) {
158 return comparePositions(a, b) === 0;

Callers

nothing calls this directly

Calls 1

comparePositionsFunction · 0.85

Tested by

no test coverage detected