Deterministic qualified name mangling & source-coordinate closure naming #4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
LuaTranslator.uniqueNamesequentially numbers colliding symbols (foo,foo1,foo2). Because package-level functions are emitted as bare names (e.g.update), whichever package compiles first claims the bare name, while the other getsupdate1. Any change in discovery order ripples through every subsequent symbol.ClosureTranslatornames all closuresPackage_closure, relying onuniqueNamecounters. Adding a closure at the top of a file renumbers every closure below it.StackTraceInjector2and debug comments inject absolute filesystem paths (e.g./home/user/...), causing build outputs to vary across developer machines.Implementation Tasks
<PackageName>__<FunctionName>(and signature hash for overloads).<PackageName>__closure_L<line>_C<col>.workspaceRoot.