MCPcopy Create free account
hub / github.com/sql-js/sql.js / copyPos

Function copyPos

GUI/codemirror/lib/codemirror.js:949–949  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

947 var cmp = CodeMirror.cmpPos = function(a, b) { return a.line - b.line || a.ch - b.ch; };
948
949 function copyPos(x) {return Pos(x.line, x.ch);}
950 function maxPos(a, b) { return cmp(a, b) < 0 ? b : a; }
951 function minPos(a, b) { return cmp(a, b) < 0 ? a : b; }
952

Callers 2

codemirror.jsFile · 0.85
historyChangeFromChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…