nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a953d
)
abstract_compiler: default stmt implmentation do not need to execute variables as...
author
Jean Privat
<jean@pryen.org>
Fri, 17 Oct 2014 02:56:17 +0000
(22:56 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/compiler/abstract_compiler.nit
b/src/compiler/abstract_compiler.nit
index
f111e0d
..
6175356
100644
(file)
--- a/
src/compiler/abstract_compiler.nit
+++ b/
src/compiler/abstract_compiler.nit
@@
-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