Mercurial > projects > ddmd
comparison dmd/ForeachRangeStatement.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 |
---|---|
31 import dmd.HdrGenState; | 31 import dmd.HdrGenState; |
32 import dmd.InlineScanState; | 32 import dmd.InlineScanState; |
33 import dmd.Loc; | 33 import dmd.Loc; |
34 import dmd.BE; | 34 import dmd.BE; |
35 | 35 |
36 import dmd.DDMDExtensions; | |
37 | |
36 version(DMDV2) | 38 version(DMDV2) |
37 class ForeachRangeStatement : Statement | 39 class ForeachRangeStatement : Statement |
38 { | 40 { |
41 mixin insertMemberExtension!(typeof(this)); | |
42 | |
39 TOK op; // TOK.TOKforeach or TOK.TOKforeach_reverse | 43 TOK op; // TOK.TOKforeach or TOK.TOKforeach_reverse |
40 Parameter arg; // loop index variable | 44 Parameter arg; // loop index variable |
41 Expression lwr; | 45 Expression lwr; |
42 Expression upr; | 46 Expression upr; |
43 Statement body_; | 47 Statement body_; |