Mercurial > projects > ddmd
annotate dmd/OverloadSet.d @ 114:e28b18c23469
added a module dmd.common for commonly used stuff
it currently holds code for consistency checking of predefined versions
also added a VisualD project file
author | Trass3r |
---|---|
date | Wed, 01 Sep 2010 18:21:58 +0200 |
parents | 7e0d548de9e6 |
children | e3afd1303184 |
rev | line source |
---|---|
0 | 1 module dmd.OverloadSet; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.Dsymbol; |
5 import dmd.ArrayTypes; | |
6 | |
7 class OverloadSet : Dsymbol | |
8 { | |
9 Dsymbols a; // array of Dsymbols | |
10 | |
11 this() | |
12 { | |
63 | 13 a = new Dsymbols(); |
0 | 14 } |
15 | |
16 void push(Dsymbol s) | |
17 { | |
74
7e0d548de9e6
Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
72
diff
changeset
|
18 a.push(s); |
0 | 19 } |
20 | |
72 | 21 override OverloadSet isOverloadSet() { return this; } |
0 | 22 |
72 | 23 override string kind() |
0 | 24 { |
63 | 25 return "overloadset"; |
0 | 26 } |
72 | 27 } |