Fix search of package-level function/property usages in Java code

This commit is contained in:
Alexey Sedunov
2013-10-14 20:59:15 +04:00
parent 60c9aa559b
commit bdc908d45f
22 changed files with 246 additions and 7 deletions
@@ -53,4 +53,10 @@ public class JetClsMethodImpl extends ClsMethodImpl implements JetClsMethod {
public void delete() throws IncorrectOperationException {
origin.delete();
}
@Override
public boolean isEquivalentTo(PsiElement another) {
if (another instanceof JetClsMethod && getOrigin().equals(((JetClsMethod) another).getOrigin())) return true;
return super.isEquivalentTo(another);
}
}