comparison dmd/SwitchStatement.d @ 122:c77e9f4f1793

Statements -> Vector
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 02 Sep 2010 23:37:49 +0100
parents e28b18c23469
children af1bebfd96a4
comparison
equal deleted inserted replaced
121:347de076ad34 122:c77e9f4f1793
165 Expression e = new HaltExp(loc); 165 Expression e = new HaltExp(loc);
166 s = new ExpStatement(loc, e); 166 s = new ExpStatement(loc, e);
167 } 167 }
168 168
169 a.reserve(4); 169 a.reserve(4);
170 a.push(cast(void*)body_); 170 a.push(body_);
171 a.push(cast(void*)new BreakStatement(loc, null)); 171 a.push(new BreakStatement(loc, null));
172 sc.sw.sdefault = new DefaultStatement(loc, s); 172 sc.sw.sdefault = new DefaultStatement(loc, s);
173 a.push(cast(void*)sc.sw.sdefault); 173 a.push(sc.sw.sdefault);
174 cs = new CompoundStatement(loc, a); 174 cs = new CompoundStatement(loc, a);
175 body_ = cs; 175 body_ = cs;
176 } 176 }
177 177
178 version (DMDV2) { 178 version (DMDV2) {