Mercurial > projects > ddmd
diff dmd/EnumMember.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | 1628b221808d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmd/EnumMember.d Sat Oct 24 08:42:06 2009 +0400 @@ -0,0 +1,52 @@ +module dmd.EnumMember; + +import dmd.Dsymbol; +import dmd.Expression; +import dmd.Type; +import dmd.Loc; +import dmd.Identifier; +import dmd.Scope; +import dmd.OutBuffer; +import dmd.HdrGenState; + +class EnumMember : Dsymbol +{ + Expression value; + Type type; + + this(Loc loc, Identifier id, Expression value, Type type) + { + super(id); + + this.value = value; + this.type = type; + this.loc = loc; + } + + Dsymbol syntaxCopy(Dsymbol s) + { + assert(false); + } + + void toCBuffer(OutBuffer buf, HdrGenState* hgs) + { + assert(false); + } + + string kind() + { + assert(false); + } + + void emitComment(Scope sc) + { + assert(false); + } + + void toDocBuffer(OutBuffer buf) + { + assert(false); + } + + EnumMember isEnumMember() { return this; } +} \ No newline at end of file