aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-08bruhHEADmasterDeftu
2024-06-08Bump versionDeftu
2024-06-07Clean up Kotlin-specific files & support K2Deftu
2024-06-07Update Kotlin & cleanup build fileDeftu
2024-05-16Bump versionDeftu
2024-05-16Merge pull request #1 from Polyfrost/masterDeftu
Update from upstream
2024-05-16Merge branch 'ReplayMod-master'ev chang
2024-05-16Merge branch 'master' of https://github.com/ReplayMod/remap into ↵ev chang
ReplayMod-master
2024-05-16Revert "Add Kotlin 1.9.0 support"ev chang
This reverts commit fcd760df97454eeed436334808da51ea9ba20540.
2024-05-06Override `createInnerClassMapping` for `LegacyMappingSetModelFactory` (#22)Sychic
Co-authored-by: DJtheRedstoner <52044242+DJtheRedstoner@users.noreply.github.com>
2024-04-25Fix remapMixinTarget not supporting NEW (#19)Josiah Glosson
Fixes #18
2024-04-25Add support for Kotlin 1.9.0 (#21)DJtheRedstoner
The KotlinSourceRoot constructor was updated to include an additional argument related to Kotlin Multiplatform. We always pass null for this argument. Co-authored-by: Wyvest <wyvestbusiness@gmail.com>
2023-10-07Bump versionDeftu
2023-10-07Change Maven repo URL to maven.deftu.devDeftu
2023-10-07Change group name to dev.deftuDeftu
2023-08-27Bump version to 0.1.1Deftu
2023-08-27Bump Lorenz from 0.5.0 to 0.5.8Deftu
2023-08-27Add `.idea` to `.gitignore`Deftu
2023-08-25Add repository and bump versionDeftu
2023-08-25Add Kotlin 1.9.0 supportDeftu
2023-05-26Allow JDK_HOME to be set explicitly, required for Kotlin 1.8+Jonas Herzig
2023-05-26Add support for `call`-style `@Invoker`s (#15)Sychic
Fixes #13
2022-05-27Fix pattern applying non-field to left side of assignmentJonas Herzig
2022-05-27Fix nested pattern matchingJonas Herzig
2022-05-27Add support for adding missing and removing unused importsJonas Herzig
This adds a post-process step which automatically adds unambiguous imports, removes unused imports and sorts the import list (formatting matches standard IntelliJ settings). This will preserve line count across versions at all cost. Java only for now because it's a lot more tricky with Kotlin and we don't yet use Kotlin ourselves (and won't be preprocessing it in the future either).
2022-05-27Support matching lambda expressions with @PatternJonas Herzig
2022-05-27Support matching binary expressions with @PatternJonas Herzig
2022-05-27Support varargs as parameters to @PatternJonas Herzig
2022-05-27Properly support new expression matching in @PatternJonas Herzig
Used to only compare the arguments, nether the class nor the qualifier (the outer class instance for inner classes constructor calls).
2022-05-24Support matching literal with @PatternJonas Herzig
2022-05-10Update Gradle to 7.4.2Jonas Herzig
2022-05-10Add support for kotlin-compiler-embeddable 1.6.20Jonas Herzig
While, unlike last time, maintaining backwards compatibility with 1.5.21 (and anything in between).
2022-05-03Don't hardcode injector annotations in `PsiMapper`.LlamaLad7
Any annotation in a mixin class that has a `method` will do. This will mean it doesn't need updating for future stock injectors, and doesn't break with custom injectors.
2021-11-13Fix remapping of `@Invoker`s with unusual method namesJonas Herzig
2021-11-13Support multi-target mixin injectorsJonas Herzig
2021-11-13Implement synthetic property to/from setter conversionJonas Herzig
2021-11-13Move mixin-related tests into their own packageJonas Herzig
2021-11-13Consider location of expression when determining field accessibilityJonas Herzig
A protected field is not accessible unless we are referencing it from within a class which extends its owner. Therefore, we may use a synthetic property with the same name as long as we do not have access to the field.
2021-11-13Fix mapping of synthetic properties when overridden in Kotlin classJonas Herzig
In these cases, the getMethod of the property will not have a Psi element and we need to traverse up the overrides until we find one that does.
2021-11-12Separate B from A test filesJonas Herzig
So we are closer to a realistic setup and can tell when we accidentally look up a class in the wrong project. Also allows us to have changes in a class but not to the class or its package (i.e. same file).
2021-11-12Fix synthetic property becoming shadowed by field of same nameJonas Herzig
2021-11-12Add `findPsiClass` method to PsiMapperJonas Herzig
2021-11-12Remove obsolete commentJonas Herzig
2021-11-12Add tests for Kotlin synthetic propertiesJonas Herzig
2021-11-12Fix inject method in constant being duplicated if remapped twiceJonas Herzig
2021-11-12Fix @At target in constant being duplicated if remapped twiceJonas Herzig
2021-11-12Fix loss of changes when multiple target the same start pointJonas Herzig
While one might at first think that multiple changes should conflict if they target that same start point, that is not necessarily true as long as no more than one of them includes deletions: There may be an arbitrary number of insertions at the same position (regular remapping never just inserts but patterns can).
2021-11-12Fix methods in mixin being remapped when they should not beJonas Herzig
2021-11-11Fix `valid(PsiElement)` methodJonas Herzig
We seem to no longer be relying on it too much. There are still a few issues which have gone unnoticed due to this bug but those will be fixed in the following commits.
2021-11-11Fix remapping of qualified inner class reference in Kotlin codeJonas Herzig
When we used to remap `a.pkg.A.Inner` we would apply both mappings (the one for the inner class and the one for the outer class) at the same time, resulting in `b.pkg.B.Inner.Inner`. The direct cause being that we only checked conflicts for the range of the respective expression (which is just `A` and `Inner` for Kotlin, and therefore not conflicting) instead of the parent as we should have. With that fixed, it now also becomes apparent that we need to apply mappings for dot qualified expressions back to front (otherwise the outer class takes priority), so that is the second thing this commit change.