Mercurial > projects > ddmd
view dmd/TypeNewArray.d @ 157:b7b61140701d
* added all missing default cases in switch statements
+ Lexer.getDocComment
+ Lexer.combineComments
author | trass3r |
---|---|
date | Thu, 16 Sep 2010 01:34:10 +0200 |
parents | 14feb7ae01a6 |
children | e3afd1303184 |
line wrap: on
line source
module dmd.TypeNewArray; import dmd.common; import dmd.HdrGenState; import dmd.MOD; import dmd.OutBuffer; import dmd.Type; import dmd.TypeNext; import dmd.TY; /** T[new] */ class TypeNewArray : TypeNext { this(Type next) { super(Tnarray, next); //writef("TypeNewArray\n"); } override void toCBuffer2(OutBuffer buf, HdrGenState *hgs, MOD mod) { if (mod != this.mod) { toCBuffer3(buf, hgs, mod); return; } next.toCBuffer2(buf, hgs, this.mod); buf.writestring("[new]"); } }