aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt')
-rw-r--r--src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt b/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt
index 95d6156..9a067da 100644
--- a/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt
+++ b/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt
@@ -85,6 +85,8 @@ internal class PsiPattern(
&& match(pattern.expression, expr.expression)
is PsiNewExpression -> expr is PsiNewExpression
&& match(pattern.argumentList, expr.argumentList)
+ is PsiLiteralExpression -> expr is PsiLiteralExpression
+ && pattern.text == expr.text
else -> false
}