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

Function setValue

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:541–546  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

539 }
540
541 function setValue(code) {
542 var top = {line: 0, ch: 0};
543 updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},
544 splitLines(code), top, top);
545 updateInput = true;
546 }
547 function getValue() {
548 var text = [];
549 doc.iter(0, doc.size, function(line) { text.push(line.text); });

Callers 1

CodeMirrorFunction · 0.85

Calls 2

updateLinesFunction · 0.85
getLineFunction · 0.70

Tested by

no test coverage detected