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

Function isModuleUse

tools/acorn-optimizer.mjs:456–463  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

454}
455
456function isModuleUse(node) {
457 return (
458 node.type === 'MemberExpression' && // Module['X']
459 node.object.type === 'Identifier' &&
460 node.object.name === 'Module' &&
461 isLiteralString(node.property)
462 );
463}
464
465// Apply import/export name changes (after minifying them)
466function applyImportAndExportNameChanges(ast) {

Callers 2

emitDCEGraphFunction · 0.85
visitNodeFunction · 0.85

Calls 1

isLiteralStringFunction · 0.85

Tested by

no test coverage detected