Srg2Source
Srg2Source copied to clipboard
Applies source level refactors to java source code.
``` > Task :forge:extractRangeMap # ERROR: net/minecraft/world/ticks/ScheduledTick.java @ 1846: Illegal Argument: Lnet/minecraft/world/ticks/net\minecraft\world\ticks\ScheduledTick~ScheduledTick;.(TT;Lnet/minecraft/core/BlockPos;JLnet/minecraft/world/ticks/TickPriority;J)V#pos#0#1 java.lang.IllegalStateException: ERROR: net/minecraft/world/ticks/ScheduledTick.java @ 1846: Illegal Argument: Lnet/minecraft/world/ticks/net\minecraft\world\ticks\ScheduledTick~ScheduledTick;.(TT;Lnet/minecraft/core/BlockPos;JLnet/minecraft/world/ticks/TickPriority;J)V#pos#0#1 at net.minecraftforge.srg2source.extract.SymbolReferenceWalker.error(SymbolReferenceWalker.java:156) at net.minecraftforge.srg2source.extract.SymbolReferenceWalker.process(SymbolReferenceWalker.java:425) at net.minecraftforge.srg2source.extract.SymbolReferenceWalker$1.visit(SymbolReferenceWalker.java:753) at org.eclipse.jdt.core.dom.SimpleName.accept0(SimpleName.java:198) at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3129)...
This PR changes much of way RangeMap is built and how RangeAplier uses it to process java source file. RangeMap specification stays same. At first, it changes data model of...
before apply: ```java public enum BagEquipPart { BAG_I("魂器位: I"), //` BAG_II("魂器位: II"), // BAG_III("魂器位: III"), // BAG_IV("魂器位: IV"), // BAG_V("魂器位: V"), // BAG_VI("魂器位: VI"), // BAG_VII("魂器位: VII"), // BAG_VIII("魂器位: VIII"),...
I am running a win 10 (1903) and the system lang is german. I tried to update the mapping of a 1.12 project (to 1.13 mappings). But it did not...
When using a partially qualified class Such as: Block.Properties When the original source only has a import for Block. S2S will add a import for Block.Properties directly.
Static imports are not properly remapped. The referenced method/fields in code are remapped, but the import itself isnt.
https://pastebin.com/TCwf14RT Steps to reproduce: clone https://github.com/cabaletta/baritone `./gradlew setupDecompWorkspace` `./gradlew build` The two functions in question are here https://github.com/cabaletta/baritone/blob/master/src/main/java/baritone/cache/WaypointCollection.java#L63 and here https://github.com/cabaletta/baritone/blob/master/src/main/java/baritone/cache/WaypointCollection.java#L93 The exception is created here ` at net.minecraftforge.srg2source.ast.SymbolRangeEmitter.getMethodSignature(SymbolRangeEmitter.java:235)`