view dmd/StaticAssertStatement.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 43073c7c7769
children e3afd1303184
line wrap: on
line source

module dmd.StaticAssertStatement;

import dmd.common;
import dmd.Statement;
import dmd.StaticAssert;
import dmd.OutBuffer;
import dmd.BE;
import dmd.HdrGenState;
import dmd.Scope;
import dmd.Loc;

class StaticAssertStatement : Statement
{
    StaticAssert sa;

    this(StaticAssert sa)
	{
		super(sa.loc);
		this.sa = sa;
	}
	
    override Statement syntaxCopy()
	{
		StaticAssertStatement s = new StaticAssertStatement(cast(StaticAssert)sa.syntaxCopy(null));
		return s;
	}
	
    override Statement semantic(Scope sc)
	{
		sa.semantic2(sc);
		return null;
	}

    override BE blockExit()
    {
    	return BE.BEfallthru;
    }
    
    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		assert(false);
	}
}