MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / processLine

Function processLine

static/libs/codemirror.js:1615–1624  ·  view source on GitHub ↗
(cm, text, context, startAt)

Source from the content-addressed store, hash-verified

1613// update state, but don't save a style array. Used for lines that
1614// aren't currently visible.
1615function processLine(cm, text, context, startAt) {
1616 var mode = cm.doc.mode;
1617 var stream = new StringStream(text, cm.options.tabSize, context);
1618 stream.start = stream.pos = startAt || 0;
1619 if (text == "") { callBlankLine(mode, context.state); }
1620 while (!stream.eol()) {
1621 readToken(mode, stream, context.state);
1622 stream.start = stream.pos;
1623 }
1624}
1625
1626function callBlankLine(mode, state) {
1627 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