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

Function ExportDefaultDeclaration

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

Source from the content-addressed store, hash-verified

361 ensureData(scopes[scopes.length - 1], name).use = 1;
362 },
363 ExportDefaultDeclaration(node, c) {
364 const name = node.declaration.id.name;
365 ensureData(scopes[scopes.length - 1], name).use = 1;
366 c(node.declaration);
367 },
368 ExportNamedDeclaration(node, c) {
369 if (node.declaration) {
370 if (node.declaration.type == 'FunctionDeclaration') {

Callers

nothing calls this directly

Calls 2

ensureDataFunction · 0.85
cFunction · 0.50

Tested by

no test coverage detected