Mercurial > projects > ddmd
view dmd/InlineDoState.d @ 79:43073c7c7769
updated to 2.035
also implemented a few missing functions
still crashes in Import.importAll though
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 03:57:51 +0200 |
parents | 10317f0c89a5 |
children | be2ab491772e |
line wrap: on
line source
module dmd.InlineDoState; import dmd.Array; import dmd.Dsymbol; import dmd.VarDeclaration; import dmd.Expression; import dmd.ArrayTypes; class InlineDoState { VarDeclaration vthis; Array from; // old Dsymbols Array to; // parallel array of new Dsymbols Dsymbol parent; // new parent this() { from = new Array(); to = new Array(); } } /****************************** * Perform doInline() on an array of Expressions. */ Expressions arrayExpressiondoInline(Expressions a, InlineDoState ids) { Expressions newa = null; if (a) { newa = new Expressions(); newa.setDim(a.dim); for (int i = 0; i < a.dim; i++) { Expression e = cast(Expression)a.data[i]; if (e) { e = e.doInline(ids); newa.data[i] = cast(void*)e; } } } return newa; }