MCPcopy Create free account
hub / github.com/sql-js/sql.js / getLineStyles

Function getLineStyles

GUI/codemirror/lib/codemirror.js:5669–5677  ·  view source on GitHub ↗
(cm, line)

Source from the content-addressed store, hash-verified

5667 }
5668
5669 function getLineStyles(cm, line) {
5670 if (!line.styles || line.styles[0] != cm.state.modeGen) {
5671 var result = highlightLine(cm, line, line.stateAfter = getStateBefore(cm, lineNo(line)));
5672 line.styles = result.styles;
5673 if (result.classes) line.styleClasses = result.classes;
5674 else if (line.styleClasses) line.styleClasses = null;
5675 }
5676 return line.styles;
5677 }
5678
5679 // Lightweight form of highlight -- proceed over this line and
5680 // update state, but don't save a style array. Used for lines that

Callers 2

codemirror.jsFile · 0.85
buildLineContentFunction · 0.85

Calls 3

highlightLineFunction · 0.85
getStateBeforeFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…