Mercurial > projects > ddmd
diff dmd/Expression.d @ 84:be2ab491772e
Expressions -> Vector!Expression
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:12:19 +0100 |
parents | ef02e2e203c2 |
children | df6d0f967680 |
line wrap: on
line diff
--- a/dmd/Expression.d Mon Aug 30 18:42:04 2010 +0400 +++ b/dmd/Expression.d Mon Aug 30 16:12:19 2010 +0100 @@ -7,6 +7,7 @@ import dmd.Type; import dmd.WANT; import dmd.Scope; +import dmd.Array; import dmd.ArrayTypes; import dmd.OutBuffer; import dmd.HdrGenState; @@ -310,12 +311,12 @@ { a = new Expressions(); a.setDim(exps.dim); - for (int i = 0; i < a.dim; i++) + for (size_t i = 0; i < a.dim; i++) { - Expression e = cast(Expression)exps.data[i]; + auto e = exps[i]; e = e.syntaxCopy(); - a.data[i] = cast(void*)e; + a[i] = e; } } return a; @@ -944,7 +945,7 @@ void buildArrayIdent(OutBuffer buf, Expressions arguments) { buf.writestring("Exp"); - arguments.shift(cast(void*)this); + arguments.shift(this); } Expression buildArrayLoop(Arguments fparams) @@ -967,3 +968,5 @@ assert(false); } } + +alias Vector!Expression Expressions; \ No newline at end of file