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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.OverloadSet;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 74
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.Dsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.ArrayTypes;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 class OverloadSet : Dsymbol
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 Dsymbols a; // array of Dsymbols
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 this()
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 {
178
e3afd1303184 Many small bugs fixed
korDen
parents: 114
diff changeset
13 register();
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
14 a = new Dsymbols();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 void push(Dsymbol s)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
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
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
22 override OverloadSet isOverloadSet() { return this; }
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
24 override string kind()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 {
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
26 return "overloadset";
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
28 }