Mercurial > projects > ddmd
view dmd/TemplateExp.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | 2e2a5c3f943a |
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; } void rvalue() { error("template %s has no value", toChars()); } void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring(td.toChars()); } }