Mercurial > projects > ddmd
view dmd/DefaultInitExp.d @ 32:81796b717a39
A few bad cast fixed. TODO: either get rid of dyncast(), or derive all objects from intermediate supertype.
author | korDen |
---|---|
date | Tue, 18 May 2010 17:51:46 +0400 |
parents | 460959608115 |
children | 8c2c7b7579f8 |
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, subop, size); this.subop = subop; } abstract Expression resolve(Loc loc, Scope sc); void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring(Token.toChars(subop)); } }