genCode for VarExpression.