JetObjectDeclaration#getClassObject() by stub
This commit is contained in:
@@ -92,6 +92,10 @@ public class JetObjectDeclaration extends JetNamedDeclarationStub<PsiJetObjectSt
|
||||
}
|
||||
|
||||
public boolean isClassObject() {
|
||||
PsiJetObjectStub stub = getStub();
|
||||
if (stub != null) {
|
||||
return stub.isClassObject();
|
||||
}
|
||||
PsiElement parent = getParent();
|
||||
return parent != null && parent.getNode().getElementType().equals(JetNodeTypes.CLASS_OBJECT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user