MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / functiondef

Function functiondef

static/libs/javascript.js:735–740  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

733 return pass(expression, forspec2)
734 }
735 function functiondef(type, value) {
736 if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
737 if (type == "variable") {register(value); return cont(functiondef);}
738 if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
739 if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
740 }
741 function functiondecl(type, value) {
742 if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
743 if (type == "variable") {register(value); return cont(functiondecl);}

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