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

Function expression

static/editor.md/lib/codemirror/mode/haxe/haxe.js:281–290  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

279 return pass(pushlex("stat"), expression, expect(";"), poplex);
280 }
281 function expression(type) {
282 if (atomicTypes.hasOwnProperty(type)) return cont(maybeoperator);
283 if (type == "function") return cont(functiondef);
284 if (type == "keyword c") return cont(maybeexpression);
285 if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeoperator);
286 if (type == "operator") return cont(expression);
287 if (type == "[") return cont(pushlex("]"), commasep(expression, "]"), poplex, maybeoperator);
288 if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
289 return cont();
290 }
291 function maybeexpression(type) {
292 if (type.match(/[;\}\)\],]/)) return pass();
293 return pass(expression);

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected