MCPcopy Index your code
hub / github.com/csev/py4e / getLineContent

Function getLineContent

tools/pythonauto/static/codemirrorepl/codemirror.js:793–801  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

791 // Wrapper around buildLineContent which will reuse the structure
792 // in display.externalMeasured when possible.
793 function getLineContent(cm, lineView) {
794 var ext = cm.display.externalMeasured;
795 if (ext && ext.line == lineView.line) {
796 cm.display.externalMeasured = null;
797 lineView.measure = ext.measure;
798 return ext.built;
799 }
800 return buildLineContent(cm, lineView);
801 }
802
803 // Redraw the line's text. Interacts with the background and text
804 // classes because the mode may output tokens that influence these

Callers 2

updateLineTextFunction · 0.85
buildLineElementFunction · 0.85

Calls 1

buildLineContentFunction · 0.70

Tested by

no test coverage detected