MCPcopy Create free account
hub / github.com/observablehq/framework / positionCompare

Function positionCompare

src/sourcemap.ts:114–116  ·  view source on GitHub ↗
(a: Position, b: Position)

Source from the content-addressed store, hash-verified

112}
113
114function positionCompare(a: Position, b: Position): number {
115 return a.line - b.line || a.column - b.column;
116}
117
118function positionLength(input: string, start = 0, end = input.length): Position {
119 let match: RegExpExecArray;

Callers 1

translateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected