view dmd/TemplateExp.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents 10317f0c89a5
children e28b18c23469
line wrap: on
line source

module dmd.TemplateExp;

import dmd.Expression;
import dmd.OutBuffer;
import dmd.Loc;
import dmd.HdrGenState;
import dmd.TemplateDeclaration;
import dmd.TOK;

class TemplateExp : Expression
{
	TemplateDeclaration td;

	this(Loc loc, TemplateDeclaration td)
	{
		super(loc, TOK.TOKtemplate, TemplateExp.sizeof);
		//printf("TemplateExp(): %s\n", td.toChars());
		this.td = td;
	}

	override void rvalue()
	{
		error("template %s has no value", toChars());
	}

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