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

Function functiondecl

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

Source from the content-addressed store, hash-verified

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);}
744 if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
745 if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
746 }
747 function typename(type, value) {
748 if (type == "keyword" || type == "variable") {
749 cx.marked = "type"

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