Mercurial > projects > ddmd
view dmd/CompoundDeclarationStatement.d @ 156:0c8cc2a10f99
+ ArrayInitializer.toAssocArrayLiteral()
+ FuncDeclaration.isUnique()
+ TypeEnum.alignsize()
+ TypeEnum.toChars()
+ TypeEnum.getProperty()
+ VarExp.equals()
+ expression.Util.fpunique()
* fixed missing default in TypeBasic
author | trass3r |
---|---|
date | Wed, 15 Sep 2010 18:24:39 +0200 |
parents | c77e9f4f1793 |
children | af724d3510d7 |
line wrap: on
line source
module dmd.CompoundDeclarationStatement; import dmd.common; import dmd.CompoundStatement; import dmd.Loc; import dmd.ArrayTypes; import dmd.Statement; import dmd.OutBuffer; import dmd.HdrGenState; class CompoundDeclarationStatement : CompoundStatement { this(Loc loc, Statements s) { super(loc, s); ///statements = s; } override Statement syntaxCopy() { Statements a = new Statements(); a.setDim(statements.dim); for (size_t i = 0; i < statements.dim; i++) { Statement s = statements[i]; if (s) s = s.syntaxCopy(); a[i] = s; } CompoundDeclarationStatement cs = new CompoundDeclarationStatement(loc, a); return cs; } override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } }