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