Mercurial > projects > ddmd
annotate dmd/DefaultInitExp.d @ 130:60bb0fe4563e
dmdfe 2.037 first main iteration
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 09 Sep 2010 22:51:44 +0100 |
parents | e28b18c23469 |
children | e3afd1303184 |
rev | line source |
---|---|
72 | 1 module dmd.DefaultInitExp; |
2 | |
114 | 3 import dmd.common; |
72 | 4 import dmd.Expression; |
5 import dmd.OutBuffer; | |
6 import dmd.Loc; | |
7 import dmd.Scope; | |
8 import dmd.HdrGenState; | |
9 import dmd.TOK; | |
10 import dmd.Token; | |
11 | |
12 class DefaultInitExp : Expression | |
13 { | |
14 TOK subop; | |
15 | |
16 this(Loc loc, TOK subop, int size) | |
17 { | |
18 super(loc, TOKdefault, size); | |
19 this.subop = subop; | |
20 } | |
21 | |
22 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) | |
23 { | |
24 buf.writestring(Token.toChars(subop)); | |
25 } | |
26 } |