MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / maybeexpression

Function maybeexpression

lib/web/CodeMirror/mode/javascript/javascript.js:447–450  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

445 return cont();
446 }
447 function maybeexpression(type) {
448 if (type.match(/[;\}\)\],]/)) return pass();
449 return pass(expression);
450 }
451
452 function maybeoperatorComma(type, value) {
453 if (type == ",") return cont(maybeexpression);

Callers

nothing calls this directly

Calls 2

passFunction · 0.70
matchMethod · 0.45

Tested by

no test coverage detected