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
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
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
3 import dmd.Dsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.ArrayTypes;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 class OverloadSet : Dsymbol
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 Dsymbols a; // array of Dsymbols
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 this()
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 {
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
12 a = new Dsymbols();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 void push(Dsymbol s)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 {
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
17 a.push(cast(void*)s);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
20 override OverloadSet isOverloadSet() { return this; }
0
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 string kind()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 {
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
24 return "overloadset";
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
26 }