Mercurial > projects > ddmd
view dmd/DefaultInitExp.d @ 181:aa70dca07cb0
ArrayExp.toCBuffer and TypeReturn.toCBuffer2
author | korDen |
---|---|
date | Mon, 18 Oct 2010 00:36:44 +0400 |
parents | e3afd1303184 |
children | b0d41ff5e0df |
line wrap: on
line source
module dmd.DefaultInitExp; import dmd.common; 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) { register(); super(loc, TOKdefault, size); this.subop = subop; } override void toCBuffer(OutBuffer buf, HdrGenState* hgs) { buf.writestring(Token.toChars(subop)); } }