MCPcopy Create free account
hub / github.com/sql-js/sql.js / getLineContent

Function getLineContent

GUI/codemirror/lib/codemirror.js:808–816  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

806 // Wrapper around buildLineContent which will reuse the structure
807 // in display.externalMeasured when possible.
808 function getLineContent(cm, lineView) {
809 var ext = cm.display.externalMeasured;
810 if (ext && ext.line == lineView.line) {
811 cm.display.externalMeasured = null;
812 lineView.measure = ext.measure;
813 return ext.built;
814 }
815 return buildLineContent(cm, lineView);
816 }
817
818 // Redraw the line's text. Interacts with the background and text
819 // 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…