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

Function replaceRange

GUI/codemirror/lib/codemirror.js:3502–3507  ·  view source on GitHub ↗
(doc, code, from, to, origin)

Source from the content-addressed store, hash-verified

3500 }
3501
3502 function replaceRange(doc, code, from, to, origin) {
3503 if (!to) to = from;
3504 if (cmp(to, from) < 0) { var tmp = to; to = from; from = tmp; }
3505 if (typeof code == "string") code = splitLines(code);
3506 makeChange(doc, {from: from, to: to, text: code, origin: origin});
3507 }
3508
3509 // SCROLLING THINGS INTO VIEW
3510

Callers 4

onDropFunction · 0.85
indentLineFunction · 0.85
deleteNearSelectionFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

makeChangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…