Don't use StubBasedPsiElementBase#getStubOrPsiParent
#KT-9579 Fixed
This commit is contained in:
@@ -113,7 +113,7 @@ public class JetAnnotationEntry extends JetElementImplStub<KotlinAnnotationEntry
|
|||||||
JetAnnotationUseSiteTarget target = getStubOrPsiChild(JetStubElementTypes.ANNOTATION_TARGET);
|
JetAnnotationUseSiteTarget target = getStubOrPsiChild(JetStubElementTypes.ANNOTATION_TARGET);
|
||||||
|
|
||||||
if (target == null) {
|
if (target == null) {
|
||||||
PsiElement parent = getStubOrPsiParent();
|
PsiElement parent = getParentByStub();
|
||||||
if (parent instanceof JetAnnotation) {
|
if (parent instanceof JetAnnotation) {
|
||||||
return ((JetAnnotation) parent).getUseSiteTarget();
|
return ((JetAnnotation) parent).getUseSiteTarget();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user