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

Function processLine

GUI/codemirror/lib/codemirror.js:5682–5691  ·  view source on GitHub ↗
(cm, text, state, startAt)

Source from the content-addressed store, hash-verified

5680 // update state, but don't save a style array. Used for lines that
5681 // aren't currently visible.
5682 function processLine(cm, text, state, startAt) {
5683 var mode = cm.doc.mode;
5684 var stream = new StringStream(text, cm.options.tabSize);
5685 stream.start = stream.pos = startAt || 0;
5686 if (text == "") callBlankLine(mode, state);
5687 while (!stream.eol() && stream.pos <= cm.options.maxHighlightLength) {
5688 readToken(mode, stream, state);
5689 stream.start = stream.pos;
5690 }
5691 }
5692
5693 // Convert a style as returned by a mode (either null, or a string
5694 // containing one or more styles) to a CSS style. This is cached,

Callers 3

highlightWorkerFunction · 0.85
getStateBeforeFunction · 0.85
runModeFunction · 0.85

Calls 2

callBlankLineFunction · 0.85
readTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…