view 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 source

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; }
}