JetObjectDeclaration#getModifierList() by stub

This commit is contained in:
Pavel V. Talanov
2014-03-31 15:10:57 +04:00
parent cf5b35fbe6
commit 0bc176892f
@@ -84,11 +84,11 @@ public class JetObjectDeclaration extends JetNamedDeclarationStub<PsiJetObjectSt
@Nullable @Nullable
public JetModifierList getModifierList() { public JetModifierList getModifierList() {
if (isClassObject()) { if (isClassObject()) {
PsiElement parent = getParent(); PsiElement parent = getParentByStub();
assert parent instanceof JetDeclaration; assert parent instanceof JetDeclaration;
return ((JetDeclaration)parent).getModifierList(); return ((JetDeclaration)parent).getModifierList();
} }
return (JetModifierList) findChildByType(JetNodeTypes.MODIFIER_LIST); return super.getModifierList();
} }
public boolean isClassObject() { public boolean isClassObject() {