annotate dmd/TypeInfoInterfaceDeclaration.d @ 73:ef02e2e203c2

Updating to dmd2.033
author korDen
date Sat, 28 Aug 2010 19:42:41 +0400
parents 2e2a5c3f943a
children e28b18c23469
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.TypeInfoInterfaceDeclaration;
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;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.ClassInfoDeclaration;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.TypeClass;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.TY;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
8
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 import dmd.backend.dt_t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 import dmd.backend.Symbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 import dmd.backend.Util;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
12 import dmd.backend.TYM;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
13
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 class TypeInfoInterfaceDeclaration : TypeInfoDeclaration
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 this(Type tinfo)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 super(tinfo, 0);
73
ef02e2e203c2 Updating to dmd2.033
korDen
parents: 72
diff changeset
19 type = Type.typeinfointerface.type;
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: 0
diff changeset
22 override void toDt(dt_t** pdt)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 //printf("TypeInfoInterfaceDeclaration.toDt() %s\n", tinfo.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 dtxoff(pdt, Type.typeinfointerface.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfoInterface
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 dtdword(pdt, 0); // monitor
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28 assert(tinfo.ty == Tclass);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30 TypeClass tc = cast(TypeClass)tinfo;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31 Symbol *s;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33 if (!tc.sym.vclassinfo)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
34 tc.sym.vclassinfo = new ClassInfoDeclaration(tc.sym);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35 s = tc.sym.vclassinfo.toSymbol();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36 dtxoff(pdt, s, 0, TYnptr); // ClassInfo for tinfo
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
39