MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / update

Function update

lib/web/CodeMirror/src/model/document_data.js:25–28  ·  view source on GitHub ↗
(line, text, spans)

Source from the content-addressed store, hash-verified

23export function updateDoc(doc, change, markedSpans, estimateHeight) {
24 function spansFor(n) {return markedSpans ? markedSpans[n] : null}
25 function update(line, text, spans) {
26 updateLine(line, text, spans, estimateHeight)
27 signalLater(line, "change", line, change)
28 }
29 function linesFor(start, end) {
30 let result = []
31 for (let i = start; i < end; ++i)

Callers 1

updateDocFunction · 0.70

Calls 2

updateLineFunction · 0.90
signalLaterFunction · 0.90

Tested by

no test coverage detected