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 {
|
|
17 super(tinfo, 0);
|
174
|
18 type = global.typeinfoassociativearray.type;
|
68
|
19 }
|
|
20
|
72
|
21 override void toDt(dt_t** pdt)
|
68
|
22 {
|
|
23 //printf("TypeInfoAssociativeArrayDeclaration.toDt()\n");
|
174
|
24 dtxoff(pdt, global.typeinfoassociativearray.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_AssociativeArray
|
68
|
25 dtdword(pdt, 0); // monitor
|
|
26
|
|
27 assert(tinfo.ty == Taarray);
|
|
28
|
|
29 TypeAArray tc = cast(TypeAArray)tinfo;
|
|
30
|
|
31 tc.next.getTypeInfo(null);
|
|
32 dtxoff(pdt, tc.next.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for array of type
|
|
33
|
|
34 tc.index.getTypeInfo(null);
|
|
35 dtxoff(pdt, tc.index.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for array of type
|
174
|
36
|
96
|
37 tc.getImpl().type.getTypeInfo(null);
|
|
38 dtxoff(pdt, tc.getImpl().type.vtinfo.toSymbol(), 0, TYnptr); // impl
|
68
|
39 }
|
|
40 }
|
|
41
|