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

Function update

GUI/codemirror/lib/codemirror.js:5929–5932  ·  view source on GitHub ↗
(line, text, spans)

Source from the content-addressed store, hash-verified

5927 function updateDoc(doc, change, markedSpans, estimateHeight) {
5928 function spansFor(n) {return markedSpans ? markedSpans[n] : null;}
5929 function update(line, text, spans) {
5930 updateLine(line, text, spans, estimateHeight);
5931 signalLater(line, "change", line, change);
5932 }
5933
5934 var from = change.from, to = change.to, text = change.text;
5935 var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line);

Callers 1

updateDocFunction · 0.85

Calls 2

updateLineFunction · 0.85
signalLaterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…