MCPcopy Create free account
hub / github.com/Paxa/postbird / commasep

Function commasep

public/codemirror/javascript/javascript.js:508–525  ·  view source on GitHub ↗
(what, end, sep)

Source from the content-addressed store, hash-verified

506 if (type == "(") return pass(functiondef);
507 }
508 function commasep(what, end, sep) {
509 function proceed(type, value) {
510 if (sep ? sep.indexOf(type) > -1 : type == ",") {
511 var lex = cx.state.lexical;
512 if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
513 return cont(function(type, value) {
514 if (type == end || value == end) return pass()
515 return pass(what)
516 }, proceed);
517 }
518 if (type == end || value == end) return cont();
519 return cont(expect(end));
520 }
521 return function(type, value) {
522 if (type == end || value == end) return cont();
523 return pass(what, proceed);
524 };
525 }
526 function contCommasep(what, end, info) {
527 for (var i = 3; i < arguments.length; i++)
528 cx.cc.push(arguments[i]);

Callers 7

expressionInnerFunction · 0.85
contCommasepFunction · 0.85
typeexprFunction · 0.85
afterTypeFunction · 0.85
functiondefFunction · 0.85
afterExportFunction · 0.85
arrayLiteralFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected