aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/replaymod/gradle/remap
diff options
context:
space:
mode:
authorSychic <47618543+Sychic@users.noreply.github.com>2023-05-26 10:17:03 -0400
committerGitHub <noreply@github.com>2023-05-26 16:17:03 +0200
commit6c6edca8f9baba53bb464d9f836a544b2f4a19cb (patch)
tree2cead87bdc88271125aed71e600f8ef54c64afd5 /src/main/kotlin/com/replaymod/gradle/remap
parent97d6082a172ca1c3872f81470bf64c6a42d1a571 (diff)
downloadRemap-6c6edca8f9baba53bb464d9f836a544b2f4a19cb.tar.gz
Remap-6c6edca8f9baba53bb464d9f836a544b2f4a19cb.tar.bz2
Remap-6c6edca8f9baba53bb464d9f836a544b2f4a19cb.zip
Add support for `call`-style `@Invoker`s (#15)
Fixes #13
Diffstat (limited to 'src/main/kotlin/com/replaymod/gradle/remap')
-rw-r--r--src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt b/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
index 1c5ac67..5dba364 100644
--- a/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
+++ b/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
@@ -444,6 +444,7 @@ internal class PsiMapper(
val methodName = method.name
val targetByName = when {
methodName.startsWith("invoke") -> methodName.substring(6)
+ methodName.startsWith("call") -> methodName.substring(4)
methodName.startsWith("is") -> methodName.substring(2)
methodName.startsWith("get") || methodName.startsWith("set") -> methodName.substring(3)
else -> null