Mercurial > projects > ddmd
comparison dmd/VarDeclaration.d @ 113:3482c73a991b
More cleanup for arrays
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 31 Aug 2010 23:57:32 +0100 |
parents | 12c0c84d13fd |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
112:3f02152c5e68 | 113:3482c73a991b |
---|---|
274 string name = buf.extractString(); | 274 string name = buf.extractString(); |
275 Identifier id = new Identifier(name, TOK.TOKidentifier); | 275 Identifier id = new Identifier(name, TOK.TOKidentifier); |
276 | 276 |
277 Expression einit = ie; | 277 Expression einit = ie; |
278 if (ie && ie.op == TOK.TOKtuple) | 278 if (ie && ie.op == TOK.TOKtuple) |
279 { einit = cast(Expression)(cast(TupleExp)ie).exps.data[i]; | 279 { einit = (cast(TupleExp)ie).exps[i]; |
280 } | 280 } |
281 Initializer ti = init; | 281 Initializer ti = init; |
282 if (einit) | 282 if (einit) |
283 { ti = new ExpInitializer(einit.loc, einit); | 283 { ti = new ExpInitializer(einit.loc, einit); |
284 } | 284 } |