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

Function maybeexpression

mini-code-edit/cm/mode/javascript/javascript.js:239–242  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

237 return cont();
238 }
239 function maybeexpression(type) {
240 if (type.match(/[;\}\)\],]/)) return pass();
241 return pass(expression);
242 }
243
244 function maybeoperator(type, value) {
245 if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);

Callers

nothing calls this directly

Calls 1

passFunction · 0.70

Tested by

no test coverage detected