astbuilder: inject non-nullable token for AIfExpr creation
authorJean Privat <jean@pryen.org>
Tue, 5 May 2015 01:03:24 +0000 (21:03 -0400)
committerJean 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

index 99c8763..7dafd2f 100644 (file)
@@ -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