diff dmd/AggregateDeclaration.d @ 84:be2ab491772e

Expressions -> Vector!Expression
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:12:19 +0100
parents 43073c7c7769
children 37b95c347975
line wrap: on
line diff
--- a/dmd/AggregateDeclaration.d	Mon Aug 30 18:42:04 2010 +0400
+++ b/dmd/AggregateDeclaration.d	Mon Aug 30 16:12:19 2010 +0100
@@ -150,7 +150,7 @@
     uint alignsize;		// size of struct for alignment purposes
     uint structalign;	// struct member alignment in effect
     int hasUnions;		// set if aggregate has overlapping fields
-    Dsymbols fields;	// VarDeclaration fields
+    VarDeclarations fields;	// VarDeclaration fields
     uint sizeok;		// set when structsize contains valid data
 				// 0: no size
 				// 1: size is correct
@@ -184,7 +184,7 @@
 		super(id);
 		this.loc = loc;
 		
-		fields = new Dsymbols();	///
+		fields = new VarDeclarations();	///
 		dtors = new FuncDeclarations();
 	}
 
@@ -346,9 +346,8 @@
 
 version (DMDV2)
 {
-		foreach (Dsymbol s; fields)
+		foreach (size_t i, VarDeclaration v; fields)
 		{
-			VarDeclaration v = s.isVarDeclaration();
 			assert(v && v.storage_class & STC.STCfield);
 			if (v.storage_class & STC.STCref)
 				continue;