MCPcopy Create free account
hub / github.com/TruthHun/BookStack / maybeoperator

Function maybeoperator

static/editor.md/lib/codemirror/mode/haxe/haxe.js:296–303  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

294 }
295
296 function maybeoperator(type, value) {
297 if (type == "operator" && /\+\+|--/.test(value)) return cont(maybeoperator);
298 if (type == "operator" || type == ":") return cont(expression);
299 if (type == ";") return;
300 if (type == "(") return cont(pushlex(")"), commasep(expression, ")"), poplex, maybeoperator);
301 if (type == ".") return cont(property, maybeoperator);
302 if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
303 }
304
305 function maybeattribute(type) {
306 if (type == "attribute") return cont(maybeattribute);

Callers

nothing calls this directly

Calls 4

contFunction · 0.70
pushlexFunction · 0.70
commasepFunction · 0.70
expectFunction · 0.70

Tested by

no test coverage detected