diff trunk/src/dil/ast/Statements.d @ 662:73bac90f90b2

Fixed visit() method for Statements in DefaultVisitor.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 16 Jan 2008 00:53:58 +0100
parents 085bac570c7e
children 6b3e397229c5
line wrap: on
line diff
--- a/trunk/src/dil/ast/Statements.d	Wed Jan 16 00:35:55 2008 +0100
+++ b/trunk/src/dil/ast/Statements.d	Wed Jan 16 00:53:58 2008 +0100
@@ -144,13 +144,13 @@
 
 class DoWhileStatement : Statement
 {
+  Statement doBody;
   Expression condition;
-  Statement doBody;
   this(Expression condition, Statement doBody)
   {
     mixin(set_kind);
+    addChild(doBody);
     addChild(condition);
-    addChild(doBody);
 
     this.condition = condition;
     this.doBody = doBody;