Spring Support: Support Find Usages/Rename (on both declarations and
references) of Kotlin declarations referenced in the XML config #KT-11719 Fixed #KT-11652 Fixed
This commit is contained in:
@@ -170,4 +170,14 @@ public class KtLightParameter extends LightParameter implements KtLightDeclarati
|
||||
public PsiElement getParent() {
|
||||
return getMethod().getParameterList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEquivalentTo(PsiElement another) {
|
||||
KtParameter kotlinOrigin = getKotlinOrigin();
|
||||
if (another instanceof KtLightParameter && kotlinOrigin != null) {
|
||||
KtLightParameter anotherParam = (KtLightParameter) another;
|
||||
return kotlinOrigin.equals(anotherParam.getKotlinOrigin()) && getClsDelegate().equals(anotherParam.getClsDelegate());
|
||||
}
|
||||
return super.isEquivalentTo(another);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user