Mercurial > projects > ddmd
comparison dmd/ConditionalDeclaration.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 |
---|---|
8 import dmd.Scope; | 8 import dmd.Scope; |
9 import dmd.ScopeDsymbol; | 9 import dmd.ScopeDsymbol; |
10 import dmd.OutBuffer; | 10 import dmd.OutBuffer; |
11 import dmd.HdrGenState; | 11 import dmd.HdrGenState; |
12 | 12 |
13 import dmd.DDMDExtensions; | |
14 | |
13 class ConditionalDeclaration : AttribDeclaration | 15 class ConditionalDeclaration : AttribDeclaration |
14 { | 16 { |
17 mixin insertMemberExtension!(typeof(this)); | |
18 | |
15 Condition condition; | 19 Condition condition; |
16 Dsymbols elsedecl; // array of Dsymbol's for else block | 20 Dsymbols elsedecl; // array of Dsymbol's for else block |
17 | 21 |
18 this(Condition condition, Dsymbols decl, Dsymbols elsedecl) | 22 this(Condition condition, Dsymbols decl, Dsymbols elsedecl) |
19 { | 23 { |