MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / functiondef

Function functiondef

lib/web/CodeMirror/mode/javascript/javascript.js:716–721  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

714 return pass(expression, forspec2)
715 }
716 function functiondef(type, value) {
717 if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
718 if (type == "variable") {register(value); return cont(functiondef);}
719 if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
720 if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
721 }
722 function functiondecl(type, value) {
723 if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
724 if (type == "variable") {register(value); return cont(functiondecl);}

Callers

nothing calls this directly

Calls 4

contFunction · 0.70
registerFunction · 0.70
pushlexFunction · 0.70
commasepFunction · 0.70

Tested by

no test coverage detected