JetFunctionType#getReturnTypeRef() by stub

This commit is contained in:
Pavel V. Talanov
2014-03-31 14:09:17 +04:00
parent 08335938aa
commit cf5b35fbe6
@@ -20,7 +20,6 @@ import com.google.common.collect.Lists;
import com.intellij.lang.ASTNode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.JetNodeTypes;
import org.jetbrains.jet.lang.psi.stubs.PsiJetPlaceHolderStub;
import org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes;
import org.jetbrains.jet.lexer.JetToken;
@@ -87,6 +86,6 @@ public class JetFunctionType extends JetElementImplStub<PsiJetPlaceHolderStub<Je
@Nullable
public JetTypeReference getReturnTypeRef() {
return (JetTypeReference) findChildByType(JetNodeTypes.TYPE_REFERENCE);
return getStubOrPsiChild(JetStubElementTypes.TYPE_REFERENCE);
}
}