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

Function samePosition

src/util.ts:157–159  ·  view source on GitHub ↗
(a:Position, b:Position)

Source from the content-addressed store, hash-verified

155}
156
157export function samePosition(a:Position, b:Position) {
158 return comparePositions(a, b) === 0;
159}
160
161export function whollyEnclosed(inner:Range, outer:Range) {
162 let left = comparePositions(inner.from, outer.from);

Callers 15

formattingChangeFunction · 0.90
updateDocumentMethod · 0.90
injectSpansMethod · 0.90
formatSpanMethod · 0.90
formatInlineMethod · 0.90
EditorClass · 0.90
formattingChangeFunction · 0.90
applyMethod · 0.90
applyMethod · 0.90
onChangeMethod · 0.90
applyMethod · 0.90
onBeforeChangeMethod · 0.90

Calls 1

comparePositionsFunction · 0.85

Tested by

no test coverage detected