Mercurial > projects > ddmd
annotate dmd/OverloadSet.d @ 178:e3afd1303184
Many small bugs fixed
Made all classes derive from TObject to detect memory leaks (functionality is disabled for now)
Began work on overriding backend memory allocations (to avoid memory leaks)
author | korDen |
---|---|
date | Sun, 17 Oct 2010 07:42:00 +0400 |
parents | e28b18c23469 |
children | b0d41ff5e0df |
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 { | |
178 | 13 register(); |
63 | 14 a = new Dsymbols(); |
0 | 15 } |
16 | |
17 void push(Dsymbol s) | |
18 { | |
74
7e0d548de9e6
Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
72
diff
changeset
|
19 a.push(s); |
0 | 20 } |
21 | |
72 | 22 override OverloadSet isOverloadSet() { return this; } |
0 | 23 |
72 | 24 override string kind() |
0 | 25 { |
63 | 26 return "overloadset"; |
0 | 27 } |
72 | 28 } |