MCPcopy Index your code
hub / github.com/node-inspector/node-inspector / maybeArrayComprehension

Function maybeArrayComprehension

front-end/cm/javascript.js:590–594  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

588 return pass(expressionNoComma, maybeArrayComprehension);
589 }
590 function maybeArrayComprehension(type) {
591 if (type == "for") return pass(comprehension, expect("]"));
592 if (type == ",") return cont(commasep(expressionNoComma, "]"));
593 return pass(commasep(expressionNoComma, "]"));
594 }
595 function comprehension(type) {
596 if (type == "for") return cont(forspec, comprehension);
597 if (type == "if") return cont(expression, comprehension);

Callers

nothing calls this directly

Calls 4

contFunction · 0.85
commasepFunction · 0.85
passFunction · 0.70
expectFunction · 0.70

Tested by

no test coverage detected