Mercurial > projects > ddmd
comparison dmd/DeclarationStatement.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 |
---|---|
11 import dmd.Scope; | 11 import dmd.Scope; |
12 import dmd.DeclarationExp; | 12 import dmd.DeclarationExp; |
13 import dmd.TOK; | 13 import dmd.TOK; |
14 import dmd.VarDeclaration; | 14 import dmd.VarDeclaration; |
15 | 15 |
16 import dmd.DDMDExtensions; | |
17 | |
16 class DeclarationStatement : ExpStatement | 18 class DeclarationStatement : ExpStatement |
17 { | 19 { |
20 mixin insertMemberExtension!(typeof(this)); | |
21 | |
18 // Doing declarations as an expression, rather than a statement, | 22 // Doing declarations as an expression, rather than a statement, |
19 // makes inlining functions much easier. | 23 // makes inlining functions much easier. |
20 | 24 |
21 this(Loc loc, Dsymbol declaration) | 25 this(Loc loc, Dsymbol declaration) |
22 { | 26 { |