annotate dmd/TypeInfoAssociativeArrayDeclaration.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents ee3a9f34dc48
children ef02e2e203c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
1 module dmd.TypeInfoAssociativeArrayDeclaration;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
2
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
3 import dmd.Type;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
4 import dmd.TypeAArray;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
5 import dmd.TY;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
6 import dmd.TypeInfoDeclaration;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
7 import dmd.backend.dt_t;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
8 import dmd.backend.TYM;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
9 import dmd.backend.Util;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
10
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
11 class TypeInfoAssociativeArrayDeclaration : TypeInfoDeclaration
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
12 {
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
13 this(Type tinfo)
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
14 {
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
15 super(tinfo, 0);
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
16 }
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
17
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 68
diff changeset
18 override void toDt(dt_t** pdt)
68
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
19 {
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
20 //printf("TypeInfoAssociativeArrayDeclaration.toDt()\n");
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
21 dtxoff(pdt, Type.typeinfoassociativearray.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_AssociativeArray
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
22 dtdword(pdt, 0); // monitor
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
23
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
24 assert(tinfo.ty == Taarray);
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
25
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
26 TypeAArray tc = cast(TypeAArray)tinfo;
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
27
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
28 tc.next.getTypeInfo(null);
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
29 dtxoff(pdt, tc.next.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for array of type
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
30
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
31 tc.index.getTypeInfo(null);
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
32 dtxoff(pdt, tc.index.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for array of type
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
33 }
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
34 }
ee3a9f34dc48 final bits of codegen implementation to compile Phobos
korDen
parents:
diff changeset
35