From 5ff13b444d9c65fc19671e949e7d4cdaf30241fc Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 3 Feb 2011 15:28:28 +0100 Subject: [PATCH] making variable a stub element type was unnecessary --- .../lang/parser/GroovyElementTypes.java | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/parser/GroovyElementTypes.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/parser/GroovyElementTypes.java index f520efaac419..3d6b5fae30e2 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/parser/GroovyElementTypes.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/parser/GroovyElementTypes.java @@ -28,7 +28,6 @@ import org.jetbrains.plugins.groovy.lang.lexer.GroovyTokenTypes; import org.jetbrains.plugins.groovy.lang.psi.api.auxiliary.modifiers.GrModifierList; import org.jetbrains.plugins.groovy.lang.psi.api.auxiliary.modifiers.annotation.GrAnnotation; import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrField; -import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrVariable; import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrVariableDeclaration; import org.jetbrains.plugins.groovy.lang.psi.api.statements.params.GrParameter; import org.jetbrains.plugins.groovy.lang.psi.api.statements.params.GrParameterList; @@ -383,34 +382,7 @@ public interface GroovyElementTypes extends GroovyTokenTypes, GroovyDocElementTy GroovyElementType TUPLE_ERROR = new GroovyElementType("tuple with error"); - GrStubElementType VARIABLE = new GrStubElementType("assigned variable") { - - @Override - public boolean shouldCreateStub(ASTNode node) { - return false; - } - - @Override - public GrVariable createPsi(StubElement stub) { - throw new UnsupportedOperationException("Not implemented"); - } - - @Override - public StubElement createStub(GrVariable psi, StubElement parentStub) { - throw new UnsupportedOperationException("Not implemented"); - } - - @Override - public void serialize(StubElement stub, StubOutputStream dataStream) throws IOException { - throw new UnsupportedOperationException("Not implemented"); - } - - @Override - public StubElement deserialize(StubInputStream dataStream, StubElement parentStub) throws IOException { - throw new UnsupportedOperationException("Not implemented"); - } - }; - + GroovyElementType VARIABLE = new GroovyElementType("assigned variable"); //modifiers GrStubElementType MODIFIERS = new GrModifierListElementType("modifier list");