Mercurial > projects > ddmd
view dmd/TemplateExp.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.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()); } }