MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / getLineStyles

Function getLineStyles

static/js/codemirror/codemirror.js:3919–3923  ·  view source on GitHub ↗
(cm, line)

Source from the content-addressed store, hash-verified

3917 }
3918
3919 function getLineStyles(cm, line) {
3920 if (!line.styles || line.styles[0] != cm.state.modeGen)
3921 line.styles = highlightLine(cm, line, line.stateAfter = getStateBefore(cm, lineNo(line)));
3922 return line.styles;
3923 }
3924
3925 // Lightweight form of highlight -- proceed over this line and
3926 // update state, but don't save a style array.

Callers 1

lineContentFunction · 0.85

Calls 3

highlightLineFunction · 0.85
getStateBeforeFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected