68
|
1 module dmd.TypeInfoAssociativeArrayDeclaration;
|
|
2
|
114
|
3 import dmd.common;
|
68
|
4 import dmd.Type;
|
174
|
5 import dmd.Global;
|
68
|
6 import dmd.TypeAArray;
|
|
7 import dmd.TY;
|
|
8 import dmd.TypeInfoDeclaration;
|
|
9 import dmd.backend.dt_t;
|
|
10 import dmd.backend.TYM;
|
|
11 import dmd.backend.Util;
|
|
12
|
|
13 class TypeInfoAssociativeArrayDeclaration : TypeInfoDeclaration
|
|
14 {
|
|
15 this(Type tinfo)
|
|
16 {
|
178
|
17 register();
|
68
|
18 super(tinfo, 0);
|
174
|
19 type = global.typeinfoassociativearray.type;
|
68
|
20 }
|
|
21
|
72
|
22 override void toDt(dt_t** pdt)
|
68
|
23 {
|
|
24 //printf("TypeInfoAssociativeArrayDeclaration.toDt()\n");
|
174
|
25 dtxoff(pdt, global.typeinfoassociativearray.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_AssociativeArray
|
68
|
26 dtdword(pdt, 0); // monitor
|
|
27
|
|
28 assert(tinfo.ty == Taarray);
|
|
29
|
|
30 TypeAArray tc = cast(TypeAArray)tinfo;
|
|
31
|
|
32 tc.next.getTypeInfo(null);
|
|
33 dtxoff(pdt, tc.next.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for array of type
|
|
34
|
|
35 tc.index.getTypeInfo(null);
|
|
36 dtxoff(pdt, tc.index.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for array of type
|
174
|
37
|
96
|
38 tc.getImpl().type.getTypeInfo(null);
|
|
39 dtxoff(pdt, tc.getImpl().type.vtinfo.toSymbol(), 0, TYnptr); // impl
|
68
|
40 }
|
|
41 }
|
|
42
|