MCPcopy Create free account
hub / github.com/continuedev/continue / minPosition

Function minPosition

core/util/ranges.ts:95–103  ·  view source on GitHub ↗
(a: Position, b: Position)

Source from the content-addressed store, hash-verified

93}
94
95export function minPosition(a: Position, b: Position): Position {
96 if (a.line < b.line) {
97 return a;
98 } else if (a.line > b.line) {
99 return b;
100 } else {
101 return a.character < b.character ? a : b;
102 }
103}

Callers 1

ranges.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected