From 1d112c33586fd1755e4ab132e137f941c6af1e71 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Mon, 31 Mar 2014 14:09:17 +0400 Subject: [PATCH] Add hasTypeParameterListBeforeFunctionName() to PsiJetFunctionStub --- .../jet/lang/psi/stubs/PsiJetFunctionStub.java | 2 ++ .../psi/stubs/elements/JetFunctionElementType.java | 7 +++++-- .../lang/psi/stubs/impl/PsiJetFunctionStubImpl.java | 10 +++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/stubs/PsiJetFunctionStub.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/stubs/PsiJetFunctionStub.java index 448888cbe57..eab6ffbd588 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/stubs/PsiJetFunctionStub.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/stubs/PsiJetFunctionStub.java @@ -28,6 +28,8 @@ public interface PsiJetFunctionStub extends PsiJetStubWithFqName implement private final FqName fqName; private final boolean hasBlockBody; private final boolean hasBody; + private final boolean hasTypeParameterListBeforeFunctionName; public PsiJetFunctionStubImpl( @NotNull StubElement parent, @@ -43,7 +44,8 @@ public class PsiJetFunctionStubImpl extends StubBase implement @Nullable FqName fqName, boolean isExtension, boolean hasBlockBody, - boolean hasBody + boolean hasBody, + boolean hasTypeParameterListBeforeFunctionName ) { super(parent, JetStubElementTypes.FUNCTION); @@ -57,6 +59,7 @@ public class PsiJetFunctionStubImpl extends StubBase implement this.isExtension = isExtension; this.hasBlockBody = hasBlockBody; this.hasBody = hasBody; + this.hasTypeParameterListBeforeFunctionName = hasTypeParameterListBeforeFunctionName; } @Override @@ -84,6 +87,11 @@ public class PsiJetFunctionStubImpl extends StubBase implement return hasBody; } + @Override + public boolean hasTypeParameterListBeforeFunctionName() { + return hasTypeParameterListBeforeFunctionName; + } + @NotNull @Override public String[] getAnnotations() {