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