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