JetDeclaration#getModifierList() by stub

JetClass#getPrimaryConstructorModifierList() by stub
This commit is contained in:
Pavel V. Talanov
2014-03-20 14:36:24 +04:00
parent 97d19d4b16
commit 3b5ee6fdf0
2 changed files with 3 additions and 3 deletions
@@ -87,7 +87,7 @@ public class JetClass extends JetTypeParameterListOwnerStub<PsiJetClassStub> imp
@Nullable
public JetModifierList getPrimaryConstructorModifierList() {
return (JetModifierList) findChildByType(JetNodeTypes.PRIMARY_CONSTRUCTOR_MODIFIER_LIST);
return getStubOrPsiChild(JetStubElementTypes.PRIMARY_CONSTRUCTOR_MODIFIER_LIST);
}
@Override
@@ -21,8 +21,8 @@ import com.intellij.psi.stubs.IStubElementType;
import com.intellij.psi.stubs.StubElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.JetNodeTypes;
import org.jetbrains.jet.lexer.JetModifierKeywordToken;
import org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes;
import java.util.Collections;
import java.util.List;
@@ -39,7 +39,7 @@ abstract class JetDeclarationStub<T extends StubElement> extends JetElementImplS
@Override
@Nullable
public JetModifierList getModifierList() {
return (JetModifierList) findChildByType(JetNodeTypes.MODIFIER_LIST);
return getStubOrPsiChild(JetStubElementTypes.MODIFIER_LIST);
}
@Override