MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / commasep

Function commasep

src/cm/javascript.js:297–307  ·  view source on GitHub ↗
(what, end)

Source from the content-addressed store, hash-verified

295 if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
296 }
297 function commasep(what, end) {
298 function proceed(type) {
299 if (type == ",") return cont(what, proceed);
300 if (type == end) return cont();
301 return cont(expect(end));
302 }
303 return function commaSeparated(type) {
304 if (type == end) return cont();
305 else return pass(what, proceed);
306 };
307 }
308 function block(type) {
309 if (type == "}") return cont();
310 return pass(statement, block);

Callers 3

expressionFunction · 0.85
maybeoperatorFunction · 0.85
functiondefFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…