diff trunk/src/Declarations.d @ 197:ff32eb87300e

- Using parseFunctionBody() for Constructor-,Destructor-,StaticConstructor-,StaticDestructor-,Invariant-,Unittest-,New- and DeleteDeclaration.
author aziz
date Sun, 15 Jul 2007 19:40:04 +0000
parents 37c2ffd649c4
children d64413278bec
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Sun Jul 15 19:19:03 2007 +0000
+++ b/trunk/src/Declarations.d	Sun Jul 15 19:40:04 2007 +0000
@@ -152,42 +152,42 @@
 class ConstructorDeclaration : Declaration
 {
   Parameters parameters;
-  Statements statements;
-  this(Parameters parameters, Statements statements)
+  FunctionBody funcBody;
+  this(Parameters parameters, FunctionBody funcBody)
   {
     super(true);
     this.parameters = parameters;
-    this.statements = statements;
+    this.funcBody = funcBody;
   }
 }
 
 class StaticConstructorDeclaration : Declaration
 {
-  Statements statements;
-  this(Statements statements)
+  FunctionBody funcBody;
+  this(FunctionBody funcBody)
   {
     super(true);
-    this.statements = statements;
+    this.funcBody = funcBody;
   }
 }
 
 class DestructorDeclaration : Declaration
 {
-  Statements statements;
-  this(Statements statements)
+  FunctionBody funcBody;
+  this(FunctionBody funcBody)
   {
     super(true);
-    this.statements = statements;
+    this.funcBody = funcBody;
   }
 }
 
 class StaticDestructorDeclaration : Declaration
 {
-  Statements statements;
-  this(Statements statements)
+  FunctionBody funcBody;
+  this(FunctionBody funcBody)
   {
     super(true);
-    this.statements = statements;
+    this.funcBody = funcBody;
   }
 }
 
@@ -220,21 +220,21 @@
 
 class InvariantDeclaration : Declaration
 {
-  Statements statements;
-  this(Statements statements)
+  FunctionBody funcBody;
+  this(FunctionBody funcBody)
   {
     super(true);
-    this.statements = statements;
+    this.funcBody = funcBody;
   }
 }
 
 class UnittestDeclaration : Declaration
 {
-  Statements statements;
-  this(Statements statements)
+  FunctionBody funcBody;
+  this(FunctionBody funcBody)
   {
     super(true);
-    this.statements = statements;
+    this.funcBody = funcBody;
   }
 }
 
@@ -319,24 +319,24 @@
 class NewDeclaration : Declaration
 {
   Parameters parameters;
-  Declaration[] decls;
-  this(Parameters parameters, Declaration[] decls)
+  FunctionBody funcBody;
+  this(Parameters parameters, FunctionBody funcBody)
   {
     super(true);
     this.parameters = parameters;
-    this.decls = decls;
+    this.funcBody = funcBody;
   }
 }
 
 class DeleteDeclaration : Declaration
 {
   Parameters parameters;
-  Declaration[] decls;
-  this(Parameters parameters, Declaration[] decls)
+  FunctionBody funcBody;
+  this(Parameters parameters, FunctionBody funcBody)
   {
     super(true);
     this.parameters = parameters;
-    this.decls = decls;
+    this.funcBody = funcBody;
   }
 }