MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / FunctionDeclaration

Function FunctionDeclaration

tools/acorn-optimizer.mjs:278–285  ·  view source on GitHub ↗
(node, _c)

Source from the content-addressed store, hash-verified

276 }
277 },
278 FunctionDeclaration(node, _c) {
279 if (names.has(node.id.name)) {
280 removed++;
281 emptyOut(node);
282 return;
283 }
284 // do not recurse into other scopes
285 },
286 // do not recurse into other scopes
287 FunctionExpression() {},
288 ArrowFunctionExpression() {},

Callers

nothing calls this directly

Calls 5

emptyOutFunction · 0.85
handleFunctionFunction · 0.85
hasMethod · 0.80
cFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected