MCPcopy Index your code
hub / github.com/witheve/Eve / getLineContent

Function getLineContent

src/codemirror.js:934–942  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

932 // Wrapper around buildLineContent which will reuse the structure
933 // in display.externalMeasured when possible.
934 function getLineContent(cm, lineView) {
935 var ext = cm.display.externalMeasured;
936 if (ext && ext.line == lineView.line) {
937 cm.display.externalMeasured = null;
938 lineView.measure = ext.measure;
939 return ext.built;
940 }
941 return buildLineContent(cm, lineView);
942 }
943
944 // Redraw the line's text. Interacts with the background and text
945 // classes because the mode may output tokens that influence these

Callers 2

updateLineTextFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

buildLineContentFunction · 0.85

Tested by

no test coverage detected