@Override
public void visit(ResultVariable expression) {
expression.getSelectExpression().accept(BasicStateObjectBuilder.this);
ResultVariableStateObject stateObject = new ResultVariableStateObject(
parent,
BasicStateObjectBuilder.this.stateObject,
expression.hasAs(),
literal(expression.getResultVariable(), LiteralType.RESULT_VARIABLE)
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}