MCPcopy Create free account
hub / github.com/Paxa/postbird / maybeexpression

Function maybeexpression

public/codemirror/javascript/javascript.js:409–412  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

407 return cont();
408 }
409 function maybeexpression(type) {
410 if (type.match(/[;\}\)\],]/)) return pass();
411 return pass(expression);
412 }
413 function maybeexpressionNoComma(type) {
414 if (type.match(/[;\}\)\],]/)) return pass();
415 return pass(expressionNoComma);

Callers

nothing calls this directly

Calls 2

passFunction · 0.85
matchMethod · 0.80

Tested by

no test coverage detected