abstract_compiler: default stmt implmentation do not need to execute variables as...
authorJean Privat <jean@pryen.org>
Fri, 17 Oct 2014 02:56:17 +0000 (22:56 -0400)
committerJean Privat <jean@pryen.org>
Fri, 17 Oct 2014 02:56:17 +0000 (22:56 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/abstract_compiler.nit

index f111e0d..6175356 100644 (file)
@@ -2397,8 +2397,7 @@ redef class AExpr
        # Do not call this method directly, use `v.stmt` instead
        private fun stmt(v: AbstractCompilerVisitor)
        do
-               var res = expr(v)
-               if res != null then v.add("{res};")
+               expr(v)
        end
 end