Faster completion of non-imported extensions
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.jetbrains.jet.lang.psi;
|
||||
|
||||
import com.intellij.lang.ASTNode;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.stubs.IStubElementType;
|
||||
import com.intellij.psi.stubs.StubElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -38,4 +39,13 @@ abstract class JetDeclarationStub<T extends StubElement> extends JetModifierList
|
||||
public KDoc getDocComment() {
|
||||
return FindDocCommentPackage.findDocComment(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiElement getParent() {
|
||||
T stub = getStub();
|
||||
if (stub != null) {
|
||||
return stub.getParentStub().getPsi();
|
||||
}
|
||||
return super.getParent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user