JetObjectDeclaration#getModifierList() by stub
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user