Mercurial > projects > ddmd
view dmd/AlignDeclaration.d @ 32:81796b717a39
A few bad cast fixed. TODO: either get rid of dyncast(), or derive all objects from intermediate supertype.
author | korDen |
---|---|
date | Tue, 18 May 2010 17:51:46 +0400 |
parents | 10317f0c89a5 |
children | 2e2a5c3f943a |
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; } Dsymbol syntaxCopy(Dsymbol s) { assert(false); } void setScope(Scope sc) { //printf("\tAlignDeclaration::setScope '%s'\n",toChars()); if (decl) { setScopeNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign); } } void semantic(Scope sc) { //printf("\tAlignDeclaration::semantic '%s'\n",toChars()); if (decl) { semanticNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign); } } void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } }