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

Function ExpressionStatement

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

Source from the content-addressed store, hash-verified

270 }
271 },
272 ExpressionStatement(node, _c) {
273 if (aggressive && !hasSideEffects(node)) {
274 emptyOut(node);
275 removed++;
276 }
277 },
278 FunctionDeclaration(node, _c) {
279 if (names.has(node.id.name)) {
280 removed++;

Callers

nothing calls this directly

Calls 2

hasSideEffectsFunction · 0.85
emptyOutFunction · 0.85

Tested by

no test coverage detected