Mercurial > projects > ddmd
view dmd/DefaultInitExp.d @ 85:8e69d041a99d
Previous commit didn't compile. Fixed.
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 30 Aug 2010 16:16:30 +0100 |
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)); } }