MCPcopy
hub / github.com/DHTMLX/gantt / functiondef

Function functiondef

samples/common/codehighlight/javascript.js:721–726  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected