MCPcopy Index your code
hub / github.com/csev/py4e / posLess

Function posLess

tools/pythonauto/static/codemirror/codemirror.js:2539–2539  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2537
2538 function posEq(a, b) {return a.line == b.line && a.ch == b.ch;}
2539 function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);}
2540 function cmp(a, b) {return a.line - b.line || a.ch - b.ch;}
2541 function copyPos(x) {return Pos(x.line, x.ch);}
2542

Callers 12

onMouseDownFunction · 0.70
doSelectFunction · 0.70
onDropFunction · 0.70
onContextMenuFunction · 0.70
clipPostChangeFunction · 0.70
adjustPosFunction · 0.70
replaceRangeFunction · 0.70
extendSelectionFunction · 0.70
setSelectionFunction · 0.70
markTextFunction · 0.70
removeReadOnlyRangesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected