Mercurial > projects > ddmd
view dmd/DefaultInitExp.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 | 8c2c7b7579f8 |
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)); } }