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

Function maybeexpression

src/cm/javascript.js:273–276  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

271 return cont();
272 }
273 function maybeexpression(type) {
274 if (type.match(/[;\}\)\],]/)) return pass();
275 return pass(expression);
276 }
277
278 function maybeoperator(type, value) {
279 if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);

Callers

nothing calls this directly

Calls 1

passFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…