Fixed method getParent() for JetExpressionImplStub
This commit is contained in:
@@ -53,4 +53,14 @@ public abstract class JetExpressionImplStub<T extends StubElement<?>> extends Je
|
|||||||
private PsiElement rawReplace(@NotNull PsiElement newElement) {
|
private PsiElement rawReplace(@NotNull PsiElement newElement) {
|
||||||
return super.replace(newElement);
|
return super.replace(newElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PsiElement getParent() {
|
||||||
|
T stub = getStub();
|
||||||
|
if (stub != null) {
|
||||||
|
//noinspection unchecked
|
||||||
|
return stub.getParentStub().getPsi();
|
||||||
|
}
|
||||||
|
return super.getParent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user