MCPcopy
hub / github.com/witheve/Eve / update

Function update

src/codemirror.js:7190–7193  ·  view source on GitHub ↗
(line, text, spans)

Source from the content-addressed store, hash-verified

7188 function updateDoc(doc, change, markedSpans, estimateHeight) {
7189 function spansFor(n) {return markedSpans ? markedSpans[n] : null;}
7190 function update(line, text, spans) {
7191 updateLine(line, text, spans, estimateHeight);
7192 signalLater(line, "change", line, change);
7193 }
7194 function linesFor(start, end) {
7195 for (var i = start, result = []; i < end; ++i)
7196 result.push(new Line(text[i], spansFor(i), estimateHeight));

Callers 1

updateDocFunction · 0.85

Calls 2

updateLineFunction · 0.85
signalLaterFunction · 0.85

Tested by

no test coverage detected