Mercurial > projects > ddmd
annotate dmd/OverloadSet.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 | cab4c37afb89 |
children | 7e0d548de9e6 |
rev | line source |
---|---|
0 | 1 module dmd.OverloadSet; |
2 | |
3 import dmd.Dsymbol; | |
4 import dmd.ArrayTypes; | |
5 | |
6 class OverloadSet : Dsymbol | |
7 { | |
8 Dsymbols a; // array of Dsymbols | |
9 | |
10 this() | |
11 { | |
63 | 12 a = new Dsymbols(); |
0 | 13 } |
14 | |
15 void push(Dsymbol s) | |
16 { | |
63 | 17 a.push(cast(void*)s); |
0 | 18 } |
19 | |
72 | 20 override OverloadSet isOverloadSet() { return this; } |
0 | 21 |
72 | 22 override string kind() |
0 | 23 { |
63 | 24 return "overloadset"; |
0 | 25 } |
72 | 26 } |