Mercurial > projects > ddmd
view dmd/ProtDeclaration.d @ 74:7e0d548de9e6
Switch Arrays of Dsymbols to the new templated Vector type
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 09:43:40 +0100 |
parents | 2e2a5c3f943a |
children | 43073c7c7769 |
line wrap: on
line source
module dmd.ProtDeclaration; import dmd.AttribDeclaration; import dmd.PROT; import dmd.OutBuffer; import dmd.HdrGenState; import dmd.Scope; import dmd.Dsymbol; import dmd.Array; class ProtDeclaration : AttribDeclaration { PROT protection; this(PROT p, Dsymbols decl) { super(decl); protection = p; //printf("decl = %p\n", decl); } override Dsymbol syntaxCopy(Dsymbol s) { ProtDeclaration pd; assert(!s); pd = new ProtDeclaration(protection, Dsymbol.arraySyntaxCopy(decl)); return pd; } override void setScope(Scope sc) { if (decl) { setScopeNewSc(sc, sc.stc, sc.linkage, protection, 1, sc.structalign); } } override void semantic(Scope sc) { if (decl) { semanticNewSc(sc, sc.stc, sc.linkage, protection, 1, sc.structalign); } } override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { assert(false); } static void protectionToCBuffer(OutBuffer buf, PROT protection) { assert(false); } }