diff ast/Decl.d @ 102:cd066f3b539a new_gen

Parsing methods in structs - error on semantics though.
author Anders Johnsen <skabet@gmail.com>
date Thu, 08 May 2008 10:32:41 +0200
parents fea8d61a2451
children 189c049cbfcc
line wrap: on
line diff
--- a/ast/Decl.d	Wed May 07 19:58:13 2008 +0200
+++ b/ast/Decl.d	Thu May 08 10:32:41 2008 +0200
@@ -166,12 +166,11 @@
     {
         super(DeclType.StructDecl);
         this.identifier = identifier;
-        this.vars = vars;
     }
 
-    void addMember(Identifier type, Identifier name, Exp exp)
+    void addMember(Decl decl)
     {
-        vars ~= new VarDecl(type, name, exp);
+        decls ~= decl;
     }
 
     void simplify()
@@ -184,7 +183,7 @@
     }
 
     Identifier identifier;
-    VarDecl[] vars;
+    Decl[] decls;
     private DType myType;
 }