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

Function readToken

GUI/codemirror/lib/codemirror.js:5586–5591  ·  view source on GitHub ↗
(mode, stream, state)

Source from the content-addressed store, hash-verified

5584 }
5585
5586 function readToken(mode, stream, state) {
5587 var style = mode.token(stream, state);
5588 if (stream.pos <= stream.start)
5589 throw new Error("Mode " + mode.name + " failed to advance stream.");
5590 return style;
5591 }
5592
5593 // Run the given mode's parser over a line, calling f for each token.
5594 function runMode(cm, text, mode, state, f, lineClasses, forceToEnd) {

Callers 3

codemirror.jsFile · 0.85
runModeFunction · 0.85
processLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…