view dmd/CompoundDeclarationStatement.d @ 114:e28b18c23469

added a module dmd.common for commonly used stuff it currently holds code for consistency checking of predefined versions also added a VisualD project file
author Trass3r
date Wed, 01 Sep 2010 18:21:58 +0200
parents 2e2a5c3f943a
children c77e9f4f1793
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 = cast(Statement)statements.data[i];
			if (s)
				s = s.syntaxCopy();
			a.data[i] = cast(void*)s;
		}
		CompoundDeclarationStatement cs = new CompoundDeclarationStatement(loc, a);
		return cs;
	}
	
    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		assert(false);
	}
}