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

Function maxPosition

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

Source from the content-addressed store, hash-verified

83}
84
85export function maxPosition(a: Position, b: Position): Position {
86 if (a.line > b.line) {
87 return a;
88 } else if (a.line < b.line) {
89 return b;
90 } else {
91 return a.character > b.character ? a : b;
92 }
93}
94
95export function minPosition(a: Position, b: Position): Position {
96 if (a.line < b.line) {

Callers 1

ranges.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected