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

Function functiondecl

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

Source from the content-addressed store, hash-verified

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);}
730 if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
731 if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
732 }
733 function typename(type, value) {
734 if (type == "keyword" || type == "variable") {
735 cx.marked = "type"

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