MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / commasep

Function commasep

mini-code-edit/cm/mode/javascript/javascript.js:263–273  ·  view source on GitHub ↗
(what, end)

Source from the content-addressed store, hash-verified

261 if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
262 }
263 function commasep(what, end) {
264 function proceed(type) {
265 if (type == ",") return cont(what, proceed);
266 if (type == end) return cont();
267 return cont(expect(end));
268 }
269 return function commaSeparated(type) {
270 if (type == end) return cont();
271 else return pass(what, proceed);
272 };
273 }
274 function block(type) {
275 if (type == "}") return cont();
276 return pass(statement, block);

Callers 3

expressionFunction · 0.70
maybeoperatorFunction · 0.70
functiondefFunction · 0.70

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected