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

Function ObjectExpression

tools/acorn-optimizer.mjs:333–342  ·  view source on GitHub ↗
(node, c)

Source from the content-addressed store, hash-verified

331 if (node.init) c(node.init);
332 },
333 ObjectExpression(node, c) {
334 // ignore the property identifiers
335 node.properties.forEach((node) => {
336 if (node.value) {
337 c(node.value);
338 } else if (node.argument) {
339 c(node.argument);
340 }
341 });
342 },
343 MemberExpression(node, c) {
344 c(node.object);
345 // Ignore a property identifier (a.X), but notice a[X] (computed props).

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
cFunction · 0.50

Tested by

no test coverage detected