MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / functiondef

Function functiondef

src/cm/javascript.js:349–352  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

347 if (type != ")") cont(expression);
348 }
349 function functiondef(type, value) {
350 if (type == "variable") {register(value); return cont(functiondef);}
351 if (type == "(") return cont(pushlex(")"), pushcontext, commasep(funarg, ")"), poplex, statement, popcontext);
352 }
353 function funarg(type, value) {
354 if (type == "variable") {register(value); return isTS ? cont(maybetype) : cont();}
355 }

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…