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

Function linesFor

lib/web/CodeMirror/src/model/document_data.js:29–34  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

27 signalLater(line, "change", line, change)
28 }
29 function linesFor(start, end) {
30 let result = []
31 for (let i = start; i < end; ++i)
32 result.push(new Line(text[i], spansFor(i), estimateHeight))
33 return result
34 }
35
36 let from = change.from, to = change.to, text = change.text
37 let firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line)

Callers 1

updateDocFunction · 0.70

Calls 2

spansForFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected