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

Function changeLine

GUI/codemirror/lib/codemirror.js:3699–3706  ·  view source on GitHub ↗
(cm, handle, changeType, op)

Source from the content-addressed store, hash-verified

3697 // returning the number and optionally registering the line as
3698 // changed.
3699 function changeLine(cm, handle, changeType, op) {
3700 var no = handle, line = handle, doc = cm.doc;
3701 if (typeof handle == "number") line = getLine(doc, clipLine(doc, handle));
3702 else no = lineNo(handle);
3703 if (no == null) return null;
3704 if (op(line, no)) regLineChange(cm, no, changeType);
3705 return line;
3706 }
3707
3708 // Helper for deleting text near the selection(s), used to implement
3709 // backspace, delete, and similar functionality.

Callers 2

codemirror.jsFile · 0.85
addLineWidgetFunction · 0.85

Calls 5

getLineFunction · 0.85
clipLineFunction · 0.85
lineNoFunction · 0.85
regLineChangeFunction · 0.85
opFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…