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

Function changeLine

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1682–1690  ·  view source on GitHub ↗
(handle, op)

Source from the content-addressed store, hash-verified

1680 }
1681
1682 function changeLine(handle, op) {
1683 var no = handle, line = handle;
1684 if (typeof handle == "number") line = getLine(clipLine(handle));
1685 else no = lineNo(handle);
1686 if (no == null) return null;
1687 if (op(line, no)) changes.push({from: no, to: no + 1});
1688 else return null;
1689 return line;
1690 }
1691 function setLineClass(handle, className, bgClassName) {
1692 return changeLine(handle, function(line) {
1693 if (line.className != className || line.bgClassName != bgClassName) {

Callers 2

setLineClassFunction · 0.70
setLineHiddenFunction · 0.70

Calls 3

getLineFunction · 0.70
clipLineFunction · 0.70
lineNoFunction · 0.70

Tested by

no test coverage detected