Mercurial > projects > ddmd
comparison dmd/TypeClass.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 |
---|---|
162 exps.reserve(sym.fields.dim); | 162 exps.reserve(sym.fields.dim); |
163 for (size_t i = 0; i < sym.fields.dim; i++) | 163 for (size_t i = 0; i < sym.fields.dim; i++) |
164 { | 164 { |
165 VarDeclaration v2 = cast(VarDeclaration)sym.fields[i]; | 165 VarDeclaration v2 = cast(VarDeclaration)sym.fields[i]; |
166 Expression fe = new DotVarExp(e.loc, e, v2); | 166 Expression fe = new DotVarExp(e.loc, e, v2); |
167 exps.push(cast(void*)fe); | 167 exps.push(fe); |
168 } | 168 } |
169 e = new TupleExp(e.loc, exps); | 169 e = new TupleExp(e.loc, exps); |
170 sc = sc.push(); | 170 sc = sc.push(); |
171 sc.noaccesscheck = 1; | 171 sc.noaccesscheck = 1; |
172 e = e.semantic(sc); | 172 e = e.semantic(sc); |