Refactoring: Unify getClassOrObject() and getContainingClassOrObject() functions in constructor PSI

This commit is contained in:
Alexey Sedunov
2015-06-09 16:39:39 +03:00
parent 1ab90c7814
commit bbc644f4c8
11 changed files with 14 additions and 16 deletions
@@ -248,7 +248,7 @@ public class LightClassUtil {
}
if (declaration instanceof JetConstructor) {
return getPsiClass(((JetConstructor) declaration).getClassOrObject());
return getPsiClass(((JetConstructor) declaration).getContainingClassOrObject());
}
//noinspection unchecked