view dmd/DefaultInitExp.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents 2e2a5c3f943a
children e28b18c23469
line wrap: on
line source

module dmd.DefaultInitExp;

import dmd.Expression;
import dmd.OutBuffer;
import dmd.Loc;
import dmd.Scope;
import dmd.HdrGenState;
import dmd.TOK;
import dmd.Token;

class DefaultInitExp : Expression
{
	TOK subop;

	this(Loc loc, TOK subop, int size)
	{
		super(loc, TOKdefault, size);
		this.subop = subop;
	}

	abstract Expression resolve(Loc loc, Scope sc);

	override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		buf.writestring(Token.toChars(subop));
	}
}