MCPcopy
hub / github.com/DHTMLX/gantt / commasep

Function commasep

samples/common/codehighlight/javascript.js:561–579  ·  view source on GitHub ↗
(what, end, sep)

Source from the content-addressed store, hash-verified

559 if (type == "(") return pass(functiondef);
560 }
561 function commasep(what, end, sep) {
562 function proceed(type, value) {
563 if (sep ? sep.indexOf(type) > -1 : type == ",") {
564 var lex = cx.state.lexical;
565 if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
566 return cont(function(type, value) {
567 if (type == end || value == end) return pass()
568 return pass(what)
569 }, proceed);
570 }
571 if (type == end || value == end) return cont();
572 if (sep && sep.indexOf(";") > -1) return pass(what)
573 return cont(expect(end));
574 }
575 return function(type, value) {
576 if (type == end || value == end) return cont();
577 return pass(what, proceed);
578 };
579 }
580 function contCommasep(what, end, info) {
581 for (var i = 3; i < arguments.length; i++)
582 cx.cc.push(arguments[i]);

Callers 13

expressionInnerFunction · 0.85
maybeoperatorNoCommaFunction · 0.85
contCommasepFunction · 0.85
typeexprFunction · 0.85
afterTypeFunction · 0.85
maybeTypeArgsFunction · 0.85
functiondefFunction · 0.85
functiondeclFunction · 0.85
typenameFunction · 0.85
classNameAfterFunction · 0.85
afterExportFunction · 0.85
arrayLiteralFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected