mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Remove redundant isReferenceTo when retargeting Java usages
GitOrigin-RevId: 62de58d0e7410ac5afbab8817164d49bbc6d989b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c3178e9cd1
commit
2df3d8e9d0
-1
@@ -56,7 +56,6 @@ sealed class K2MoveRenameUsageInfo(
|
||||
if (to !is KtNamedDeclaration) error("Usage must reference a Kotlin element")
|
||||
val element = element ?: return element
|
||||
val newLightElement = to.toLightElements()[lightElementIndex]
|
||||
if (element.reference?.isReferenceTo(newLightElement) == true) return element
|
||||
if (element is PsiReferenceExpression
|
||||
&& wasMember
|
||||
&& newLightElement is PsiMember
|
||||
|
||||
Reference in New Issue
Block a user