feat: deep symbol-aware comparator in sortEverything and stable TypeId #9
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/deterministic-sort-typeid"
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?
Resolves #3
Summary
ImTranslator):getQualifiedClassName(which returned flatP_for all functions in packageP) withgetSortKeyandgetScopePrefix.attrSource()).TypeId):class_comparatorandclasstype_comparatorto sort by package name, class name, and AST source coordinates (attrSource()), eliminating ties among closures.RemoveGarbage, replacedHashSetandHashMultimapwithLinkedHashSetandLinkedHashMultimapso waiting methods and used symbols iterate in encounter order rather than JVM identity hash code.ImOptimizer, usedLinkedHashSetfor function iteration and field collection.functionAndGlobalSortOrderIsDeterministicandclosureTypeIdOrderIsDeterministictoDeterministicChecks.Testing
tests.wurstscript.tests.DeterministicCheckspassed (including new tests).tests.wurstscript.tests.LuaTranslationTests.luaOutputIsDeterministicForGenericOverrideSlotspassed.