MCPcopy Index your code
hub / github.com/DHTMLX/gantt / processLine

Function processLine

samples/common/codehighlight/codemirror.js:1147–1156  ·  view source on GitHub ↗
(cm, text, context, startAt)

Source from the content-addressed store, hash-verified

1145 // update state, but don't save a style array. Used for lines that
1146 // aren't currently visible.
1147 function processLine(cm, text, context, startAt) {
1148 var mode = cm.doc.mode;
1149 var stream = new StringStream(text, cm.options.tabSize, context);
1150 stream.start = stream.pos = startAt || 0;
1151 if (text == "") { callBlankLine(mode, context.state); }
1152 while (!stream.eol()) {
1153 readToken(mode, stream, context.state);
1154 stream.start = stream.pos;
1155 }
1156 }
1157
1158 function callBlankLine(mode, state) {
1159 if (mode.blankLine) { return mode.blankLine(state) }

Callers 3

getContextBeforeFunction · 0.85
runModeFunction · 0.85
highlightWorkerFunction · 0.85

Calls 2

callBlankLineFunction · 0.85
readTokenFunction · 0.85

Tested by

no test coverage detected