view dmd/AlignDeclaration.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents 10317f0c89a5
children 7e0d548de9e6
line wrap: on
line source

module dmd.AlignDeclaration;

import dmd.AttribDeclaration;
import dmd.OutBuffer;
import dmd.HdrGenState;
import dmd.Scope;
import dmd.Dsymbol;
import dmd.Array;

class AlignDeclaration : AttribDeclaration
{
    uint salign;

    this(uint sa, Array decl)
	{
		super(decl);
		salign = sa;
	}
	
    override Dsymbol syntaxCopy(Dsymbol s)
	{
		assert(false);
	}
	
    override void setScope(Scope sc)
	{
		//printf("\tAlignDeclaration::setScope '%s'\n",toChars());
		if (decl)
		{
			setScopeNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign);
		}
	}
	
    override void semantic(Scope sc)
	{
		//printf("\tAlignDeclaration::semantic '%s'\n",toChars());
		if (decl)
		{
			semanticNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign);
		}
	}
	
    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		assert(false);
	}
}