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

Function updateLine

tools/pythonauto/static/codemirrorepl/codemirror.js:5505–5514  ·  view source on GitHub ↗
(line, text, markedSpans, estimateHeight)

Source from the content-addressed store, hash-verified

5503 // invalidates cached information and tries to re-estimate the
5504 // line's height.
5505 function updateLine(line, text, markedSpans, estimateHeight) {
5506 line.text = text;
5507 if (line.stateAfter) line.stateAfter = null;
5508 if (line.styles) line.styles = null;
5509 if (line.order != null) line.order = null;
5510 detachMarkedSpans(line);
5511 attachMarkedSpans(line, markedSpans);
5512 var estHeight = estimateHeight ? estimateHeight(line) : 1;
5513 if (estHeight != line.height) updateLineHeight(line, estHeight);
5514 }
5515
5516 // Detach a line from the document tree and its markers.
5517 function cleanUpLine(line) {

Callers 1

updateFunction · 0.70

Calls 4

detachMarkedSpansFunction · 0.70
attachMarkedSpansFunction · 0.70
estimateHeightFunction · 0.70
updateLineHeightFunction · 0.70

Tested by

no test coverage detected