private Statement createVariableDeclarationStatement(VariableExpression var) {
    DeclarationExpression throwableDecl =
        new DeclarationExpression(
            var,
            Token.newSymbol(Types.ASSIGN, -1, -1),
            EmptyExpression.INSTANCE);

    return new ExpressionStatement(throwableDecl);
  }
A Spec visitor responsible for most of the rewriting of a Spec's AST.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/compiler/SpecRewriter.java