MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / functiondef

Function functiondef

mini-code-edit/cm/mode/javascript/javascript.js:304–307  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

302 if (type != ")") cont(expression);
303 }
304 function functiondef(type, value) {
305 if (type == "variable") {register(value); return cont(functiondef);}
306 if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext);
307 }
308 function funarg(type, value) {
309 if (type == "variable") {register(value); return cont();}
310 }

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected