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

Function endOfMode

documentation/javascript/application.js:383–391  ·  view source on GitHub ↗
(mode_index, lexem)

Source from the content-addressed store, hash-verified

381 }
382
383 function endOfMode(mode_index, lexem) {
384 if (modes[mode_index].end && modes[mode_index].endRe.test(lexem))
385 return 1;
386 if (modes[mode_index].endsWithParent) {
387 var level = endOfMode(mode_index - 1, lexem);
388 return level ? level + 1 : 0;
389 }
390 return 0;
391 }
392
393 function isIllegal(lexem, mode) {
394 return mode.illegal && mode.illegalRe.test(lexem);

Callers 1

processModeInfoFunction · 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…