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

Function VariableDeclarator

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

Source from the content-addressed store, hash-verified

325
326 recursiveWalk(ast, {
327 VariableDeclarator(node, c) {
328 walkPattern(node.id, c, (name) => {
329 ensureData(scopes[scopes.length - 1], name).def = 1;
330 });
331 if (node.init) c(node.init);
332 },
333 ObjectExpression(node, c) {
334 // ignore the property identifiers
335 node.properties.forEach((node) => {

Callers

nothing calls this directly

Calls 3

walkPatternFunction · 0.85
ensureDataFunction · 0.85
cFunction · 0.50

Tested by

no test coverage detected