Mercurial > projects > ddmd
comparison dmd/CaseStatement.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 |
---|---|
25 import dmd.backend.block; | 25 import dmd.backend.block; |
26 import dmd.backend.Blockx; | 26 import dmd.backend.Blockx; |
27 import dmd.backend.Util; | 27 import dmd.backend.Util; |
28 import dmd.backend.BC; | 28 import dmd.backend.BC; |
29 | 29 |
30 import dmd.DDMDExtensions; | |
31 | |
30 class CaseStatement : Statement | 32 class CaseStatement : Statement |
31 { | 33 { |
34 mixin insertMemberExtension!(typeof(this)); | |
35 | |
32 Expression exp; | 36 Expression exp; |
33 Statement statement; | 37 Statement statement; |
34 | 38 |
35 int index = 0; // which case it is (since we sort this) | 39 int index = 0; // which case it is (since we sort this) |
36 block* cblock = null; // back end: label for the block | 40 block* cblock = null; // back end: label for the block |