JetTypeParameterListOwnerStub#getTypeParameterList by stub

This commit is contained in:
Pavel V. Talanov
2014-03-20 13:36:42 +04:00
parent b19288cd47
commit 2ab81d3b79
@@ -22,6 +22,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.JetNodeTypes;
import org.jetbrains.jet.lang.psi.stubs.PsiJetStubWithFqName;
import org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes;
import java.util.Collections;
import java.util.List;
@@ -37,7 +38,7 @@ abstract class JetTypeParameterListOwnerStub<T extends PsiJetStubWithFqName> ext
@Nullable
public JetTypeParameterList getTypeParameterList() {
return (JetTypeParameterList) findChildByType(JetNodeTypes.TYPE_PARAMETER_LIST);
return getStubOrPsiChild(JetStubElementTypes.TYPE_PARAMETER_LIST);
}
@Nullable