getContainingFile() for light classes
This commit is contained in:
@@ -150,4 +150,9 @@ public class KotlinLightClass extends AbstractLightClass implements JetJavaMirro
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return classFqName.hashCode();
|
return classFqName.hashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PsiFile getContainingFile() {
|
||||||
|
return outermostClassOrObject.getContainingFile();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import com.intellij.navigation.ItemPresentationProviders;
|
|||||||
import com.intellij.openapi.util.Comparing;
|
import com.intellij.openapi.util.Comparing;
|
||||||
import com.intellij.psi.PsiClass;
|
import com.intellij.psi.PsiClass;
|
||||||
import com.intellij.psi.PsiElement;
|
import com.intellij.psi.PsiElement;
|
||||||
|
import com.intellij.psi.PsiFile;
|
||||||
import com.intellij.psi.PsiManager;
|
import com.intellij.psi.PsiManager;
|
||||||
import com.intellij.psi.impl.java.stubs.PsiJavaFileStub;
|
import com.intellij.psi.impl.java.stubs.PsiJavaFileStub;
|
||||||
import com.intellij.psi.util.CachedValue;
|
import com.intellij.psi.util.CachedValue;
|
||||||
@@ -123,6 +124,11 @@ public class KotlinLightClassForPackage extends KotlinLightClassForPackageBase i
|
|||||||
throw new UnsupportedOperationException("This should be done byt JetIconProvider");
|
throw new UnsupportedOperationException("This should be done byt JetIconProvider");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PsiFile getContainingFile() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return hashCode;
|
return hashCode;
|
||||||
|
|||||||
Reference in New Issue
Block a user