comparison dmd/AggregateDeclaration.d @ 187:b0d41ff5e0df

Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author Abscissa
date Tue, 07 Jun 2011 23:37:34 -0400
parents e3afd1303184
children
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
49 import dmd.backend.SC; 49 import dmd.backend.SC;
50 import dmd.backend.FL; 50 import dmd.backend.FL;
51 import dmd.backend.SFL; 51 import dmd.backend.SFL;
52 import dmd.codegen.Util; 52 import dmd.codegen.Util;
53 53
54 import dmd.DDMDExtensions;
55
54 /**************************************** 56 /****************************************
55 * Determine if scope sc has package level access to s. 57 * Determine if scope sc has package level access to s.
56 */ 58 */
57 59
58 bool hasPackageAccess(Scope sc, Dsymbol s) 60 bool hasPackageAccess(Scope sc, Dsymbol s)
139 return false; 141 return false;
140 } 142 }
141 143
142 class AggregateDeclaration : ScopeDsymbol 144 class AggregateDeclaration : ScopeDsymbol
143 { 145 {
146 mixin insertMemberExtension!(typeof(this));
147
144 Type type; 148 Type type;
145 StorageClass storage_class; 149 StorageClass storage_class;
146 PROT protection = PROT.PROTpublic; 150 PROT protection = PROT.PROTpublic;
147 Type handle; // 'this' type 151 Type handle; // 'this' type
148 uint structsize; // size of struct 152 uint structsize; // size of struct