Mercurial > projects > ddmd
comparison dmd/StructInitializer.d @ 84:be2ab491772e
Expressions -> Vector!Expression
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:12:19 +0100 |
parents | 43073c7c7769 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
83:ee670dd808a8 | 84:be2ab491772e |
---|---|
200 if (!iz) | 200 if (!iz) |
201 goto Lno; | 201 goto Lno; |
202 Expression ex = iz.toExpression(); | 202 Expression ex = iz.toExpression(); |
203 if (!ex) | 203 if (!ex) |
204 goto Lno; | 204 goto Lno; |
205 elements.push(cast(void*)ex); | 205 elements.push(ex); |
206 } | 206 } |
207 e = new StructLiteralExp(loc, sd, elements); | 207 e = new StructLiteralExp(loc, sd, elements); |
208 e.type = sd.type; | 208 e.type = sd.type; |
209 return e; | 209 return e; |
210 | 210 |