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:
Alexey Sedunov
2016-04-06 14:08:33 +03:00
parent a553f67744
commit 119cf0f0cd
68 changed files with 615 additions and 58 deletions
@@ -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);
}
}