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

Function functiondecl

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

Source from the content-addressed store, hash-verified

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

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