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

Function functiondef

public/codemirror/javascript/javascript.js:619–623  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

617 if (type != ")") cont(expression);
618 }
619 function functiondef(type, value) {
620 if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
621 if (type == "variable") {register(value); return cont(functiondef);}
622 if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, maybetype, statement, popcontext);
623 }
624 function funarg(type) {
625 if (type == "spread") return cont(funarg);
626 return pass(pattern, maybetype, maybeAssign);

Callers

nothing calls this directly

Calls 4

contFunction · 0.85
registerFunction · 0.85
pushlexFunction · 0.85
commasepFunction · 0.85

Tested by

no test coverage detected