Mercurial > projects > ddmd
annotate dmd/ErrorExp.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 | 10317f0c89a5 |
children | ef02e2e203c2 |
rev | line source |
---|---|
72 | 1 module dmd.ErrorExp; |
2 | |
3 import dmd.OutBuffer; | |
4 import dmd.IntegerExp; | |
5 import dmd.Loc; | |
0 | 6 import dmd.HdrGenState; |
72 | 7 import dmd.Type; |
0 | 8 |
9 /* Use this expression for error recovery. | |
10 * It should behave as a 'sink' to prevent further cascaded error messages. | |
11 */ | |
72 | 12 |
0 | 13 class ErrorExp : IntegerExp |
14 { | |
15 this() | |
16 { | |
17 super(Loc(0), 0, Type.terror); | |
18 } | |
19 | |
72 | 20 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
0 | 21 { |
22 buf.writestring("__error"); | |
23 } | |
24 } | |
25 |