diff ast/Stmt.d @ 46:90fb4fdfefdd new_gen

While is back
author Anders Halager <halager@gmail.com>
date Wed, 23 Apr 2008 17:01:24 +0200
parents 9bc660cbdbec
children 4ae365eff712
line wrap: on
line diff
--- a/ast/Stmt.d	Wed Apr 23 16:43:42 2008 +0200
+++ b/ast/Stmt.d	Wed Apr 23 17:01:24 2008 +0200
@@ -92,15 +92,15 @@
 
 class WhileStmt : Stmt
 {
-    this(Exp cond, Stmt[] stmts)
+    this(Exp cond, Stmt stmts)
     {
         super(StmtType.While);
         this.cond = cond;
-        this.stmts = stmts;
+        this.whileBody = stmts;
     }
 
     Exp cond;
-    Stmt[] stmts;
+    Stmt whileBody;
 }
 
 class SwitchStmt : Stmt