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

Function getLineStyles

tools/pythonauto/static/codemirrorepl/codemirror.js:5619–5627  ·  view source on GitHub ↗
(cm, line)

Source from the content-addressed store, hash-verified

5617 }
5618
5619 function getLineStyles(cm, line) {
5620 if (!line.styles || line.styles[0] != cm.state.modeGen) {
5621 var result = highlightLine(cm, line, line.stateAfter = getStateBefore(cm, lineNo(line)));
5622 line.styles = result.styles;
5623 if (result.classes) line.styleClasses = result.classes;
5624 else if (line.styleClasses) line.styleClasses = null;
5625 }
5626 return line.styles;
5627 }
5628
5629 // Lightweight form of highlight -- proceed over this line and
5630 // update state, but don't save a style array. Used for lines that

Callers 2

codemirror.jsFile · 0.70
buildLineContentFunction · 0.70

Calls 3

highlightLineFunction · 0.70
getStateBeforeFunction · 0.70
lineNoFunction · 0.70

Tested by

no test coverage detected