aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/replaymod
AgeCommit message (Collapse)Author
2020-11-22Support remapping of mixin targets declared in static fieldsJonas Herzig
String literals in annotations can be specified in a static final field instead of inline (so you can e.g. use the same literal in multiple places). This commit adds support for remapping those external literals.
2020-11-21Update kotlin-compiler-embeddable to 1.3.72Jonas Herzig
Since 1.3.70, the Kotlin compiler by default uses an internal framework to read binary Java class files instead of relying on IntelliJ's PSI to do it for them. This internal framework was introduced in commit d65af8f to reduce the amount of unnecessary work done by the PSI model. Our entire mapper was written for the PSI model though (and remains to be because it must also support Java), so it would fail to remap any Kotlin files if kotlin-compiler-embeddable was upgraded (for whatever reason) to at least 70 where the new behavior became the default. Luckily there exists a config flag (renamed in the same version) which allows us to go back to the PSI reader, so that's what this commit does.
2020-05-22Properly dispose of root Disposable once doneJonas Herzig
2020-05-22Fix thread-unsafe extension point registeringJonas Herzig
2019-12-08Support remapping other mixin injection annotations (fixes #6, fixes #7)Jonas Herzig
2019-12-08Move remap error handling to the callerJonas Herzig
This e.g. allows the preprocessor to ignore errors in lines which it would have commented out anyway.
2019-12-08Disambiguate Inject/Redirect targets where necessary (fixes #5)Jonas Herzig
This is done on a best-effort basis under the assumption that all relevant methods are part of the mappings (since we don't actually have access to the remapped MC jar at this point, so we can only check for ambiguities with the mappings).
2019-12-07Remap string mixin target in `package.Outer.Inner` form (fixes #3)Jonas Herzig
2019-12-07Remap non-getter to synthetic property where possible (fixes #2)Jonas Herzig
2019-11-02Support remapping of string-typed mixin targetsJonas Herzig
i.e. the class string in @Mixin("package.SomeClass$Inner")
2019-11-02Support remapping in mixins with string-typed targetsJonas Herzig
i.e. Fields and methods in @Mixin("package.SomeClass$Inner") but not the class string itself
2019-11-02Support remapping of simple @Invoker targetsJonas Herzig
2019-11-01Fix remapping when inner classes are in playJonas Herzig
Lorenz requires inner classes to be separated from their parents by a dollar sign (i.e. bytecode format), intellij instead by default gives you source format (i.e. separated by dot, indistinguishable from packages).
2019-11-01Fix crash when synthetic property is re-mapped to non-propertyJonas Herzig
2019-11-01Add methods for parsing legacy mappings from string instead of fileJonas Herzig
2019-09-15Add support for remapping Kotlin filesJonas Herzig
2019-09-08Support remapping @At(NEW) targets (i.e. jvm class name targets)Jonas Herzig
2019-08-31Use -embeddable compiler for compatibility with kotlin gradle pluginJonas Herzig
2019-08-30Convert implementation and build script to KotlinJonas Herzig