annotate dmd/TypeInfoConstDeclaration.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 10317f0c89a5
children ef02e2e203c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
1 module dmd.TypeInfoConstDeclaration;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
2
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
3 import dmd.Type;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.TypeInfoDeclaration;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
5 import dmd.Type;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.backend.dt_t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.backend.Util;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
8 import dmd.backend.TYM;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
9
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 class TypeInfoConstDeclaration : TypeInfoDeclaration
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 this(Type tinfo)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 super(tinfo, 0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
17 override void toDt(dt_t** pdt)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 //printf("TypeInfoConstDeclaration.toDt() %s\n", toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 dtxoff(pdt, Type.typeinfoconst.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_Const
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 dtdword(pdt, 0); // monitor
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 Type tm = tinfo.mutableOf();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 tm = tm.merge();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 tm.getTypeInfo(null);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 dtxoff(pdt, tm.vtinfo.toSymbol(), 0, TYnptr);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28