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

Function spansFor

lib/web/CodeMirror/src/model/document_data.js:24–24  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

22// Perform a change on the document data structure.
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)

Callers 2

linesForFunction · 0.70
updateDocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected