Mercurial > projects > ddmd
view dmd/UnionDeclaration.d @ 184:9f4e5ac4f0a3
One step closer to building on posix.
There are two missing symbols so it actually doesn't build
but previously it didn't build correctly anyway.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 02 Nov 2010 08:46:11 +0100 |
parents | e3afd1303184 |
children | b0d41ff5e0df |
line wrap: on
line source
module dmd.UnionDeclaration; import dmd.common; import dmd.StructDeclaration; import dmd.Loc; import dmd.Identifier; import dmd.Dsymbol; class UnionDeclaration : StructDeclaration { this(Loc loc, Identifier id) { register(); super(loc, id); } override Dsymbol syntaxCopy(Dsymbol s) { UnionDeclaration ud; if (s) ud = cast(UnionDeclaration)s; else ud = new UnionDeclaration(loc, ident); StructDeclaration.syntaxCopy(ud); return ud; } override string kind() { return "union"; } override UnionDeclaration isUnionDeclaration() { return this; } }