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

Function getNextMinifiedName

tools/acorn-optimizer.mjs:1436–1445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1434 let nextMinifiedName = 0;
1435
1436 function getNextMinifiedName() {
1437 while (true) {
1438 ensureMinifiedNames(nextMinifiedName);
1439 const minified = minifiedNames[nextMinifiedName++];
1440 // TODO: we can probably remove !isLocalName here
1441 if (!usedNames.has(minified) && !isLocalName(minified)) {
1442 return minified;
1443 }
1444 }
1445 }
1446
1447 // Traverse and minify all names. First the function parameters.
1448 for (const param of fun.params) {

Callers 2

minifyLocalsFunction · 0.85
IdentifierFunction · 0.85

Calls 3

ensureMinifiedNamesFunction · 0.85
isLocalNameFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected