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

Function maybeoperator

src/cm/javascript.js:278–285  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

276 }
277
278 function maybeoperator(type, value) {
279 if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);
280 if (type == "operator" && value == "?") return cont(expression, expect(":"), expression);
281 if (type == ";") return;
282 if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
283 if (type == ".") return cont(property, maybeoperator);
284 if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
285 }
286 function maybelabel(type) {
287 if (type == ":") return cont(poplex, statement);
288 return pass(maybeoperator, expect(";"), poplex);

Callers

nothing calls this directly

Calls 4

contFunction · 0.85
expectFunction · 0.85
pushlexFunction · 0.85
commasepFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…