MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / proceed

Function proceed

lib/web/CodeMirror/mode/javascript/javascript.js:559–571  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

557 }
558 function commasep(what, end, sep) {
559 function proceed(type, value) {
560 if (sep ? sep.indexOf(type) > -1 : type == ",") {
561 var lex = cx.state.lexical;
562 if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
563 return cont(function(type, value) {
564 if (type == end || value == end) return pass()
565 return pass(what)
566 }, proceed);
567 }
568 if (type == end || value == end) return cont();
569 if (sep && sep.indexOf(";") > -1) return pass(what)
570 return cont(expect(end));
571 }
572 return function(type, value) {
573 if (type == end || value == end) return cont();
574 return pass(what, proceed);

Callers

nothing calls this directly

Calls 4

indexOfMethod · 0.80
contFunction · 0.70
passFunction · 0.70
expectFunction · 0.70

Tested by

no test coverage detected