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

Function getLineContent

lib/web/CodeMirror/src/display/update_line.js:49–57  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

47// Wrapper around buildLineContent which will reuse the structure
48// in display.externalMeasured when possible.
49function getLineContent(cm, lineView) {
50 let ext = cm.display.externalMeasured
51 if (ext && ext.line == lineView.line) {
52 cm.display.externalMeasured = null
53 lineView.measure = ext.measure
54 return ext.built
55 }
56 return buildLineContent(cm, lineView)
57}
58
59// Redraw the line's text. Interacts with the background and text
60// classes because the mode may output tokens that influence these

Callers 2

updateLineTextFunction · 0.70
buildLineElementFunction · 0.70

Calls 1

buildLineContentFunction · 0.90

Tested by

no test coverage detected