nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7024ef0
)
astbuilder: inject non-nullable token for AIfExpr creation
author
Jean Privat
<jean@pryen.org>
Tue, 5 May 2015 01:03:24 +0000
(21:03 -0400)
committer
Jean Privat
<jean@pryen.org>
Fri, 8 May 2015 17:16:20 +0000
(13:16 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/astbuilder.nit
patch
|
blob
|
history
diff --git
a/src/astbuilder.nit
b/src/astbuilder.nit
index
99c8763
..
7dafd2f
100644
(file)
--- a/
src/astbuilder.nit
+++ b/
src/astbuilder.nit
@@
-244,7
+244,9
@@
redef class AIfExpr
_n_kwif = new TKwif
_n_expr = condition
_n_expr.parent = self
+ _n_kwthen = new TKwthen
_n_then = new ABlockExpr.make
+ _n_kwelse = new TKwelse
_n_else = new ABlockExpr.make
self.mtype = mtype
self.is_typed = true