Refactoring: Rename JetClsMethod -> JetPsiMethodWrapper

Source element in Kotlin mustn't be wrapped into read-only class-elements
This commit is contained in:
Nikolay Krasko
2013-11-05 18:59:44 +04:00
parent 14c5ae57cf
commit 6aeaceae8d
10 changed files with 38 additions and 35 deletions
@@ -39,7 +39,7 @@ import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.lang.psi.*;
import org.jetbrains.jet.lang.resolve.java.JvmAbi;
import org.jetbrains.jet.lang.resolve.java.PackageClassUtils;
import org.jetbrains.jet.lang.resolve.java.jetAsJava.JetClsMethod;
import org.jetbrains.jet.lang.resolve.java.jetAsJava.KotlinLightMethod;
import org.jetbrains.jet.lang.resolve.name.FqName;
import org.jetbrains.jet.lang.types.lang.KotlinBuiltIns;
import org.jetbrains.jet.utils.ExceptionUtils;
@@ -177,7 +177,7 @@ public class LightClassUtil {
List<PsiMethod> methods = new SmartList<PsiMethod>();
for (PsiMethod method : psiClass.getMethods()) {
try {
if (method instanceof JetClsMethod && ((JetClsMethod) method).getOrigin() == declaration) {
if (method instanceof KotlinLightMethod && ((KotlinLightMethod) method).getOrigin() == declaration) {
methods.add(method);
if (!collectAll) {
return methods;