MCPcopy Create free account
hub / github.com/TruthHun/BookStack / commasep

Function commasep

static/editor.md/lib/codemirror/mode/haxe/haxe.js:342–352  ·  view source on GitHub ↗
(what, end)

Source from the content-addressed store, hash-verified

340 if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
341 }
342 function commasep(what, end) {
343 function proceed(type) {
344 if (type == ",") return cont(what, proceed);
345 if (type == end) return cont();
346 return cont(expect(end));
347 }
348 return function(type) {
349 if (type == end) return cont();
350 else return pass(what, proceed);
351 };
352 }
353 function block(type) {
354 if (type == "}") return cont();
355 return pass(statement, block);

Callers 5

expressionFunction · 0.70
maybeoperatorFunction · 0.70
metadefFunction · 0.70
functiondefFunction · 0.70
typestringFunction · 0.70

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected