making variable a stub element type was unnecessary

This commit is contained in:
peter
2011-02-03 15:29:11 +01:00
parent 0a61a805e9
commit 5ff13b444d
@@ -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<StubElement, GrVariable> VARIABLE = new GrStubElementType<StubElement, GrVariable>("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<GrModifierListStub, GrModifierList> MODIFIERS = new GrModifierListElementType("modifier list");