Mercurial > projects > ldc
annotate tests/object.di @ 314:8d98e42ece93 trunk
[svn r335] The basics of exception handling are in place.
Still need to make sure calls are turned into invokes everywhere. (NewExpression for instance)
Still some rough edges and corner cases to figure out.
Needs testing!
author | ChristianK |
---|---|
date | Wed, 02 Jul 2008 22:20:18 +0200 |
parents | 9f228c1e5311 |
children |
rev | line source |
---|---|
274
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
1 // This is a modification of tango/object.di that includes |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
2 // aliases for string, wstring, dstring and Exception. |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
3 // This is because dstress expects phobos, which provides |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
4 // these aliases. |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
5 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
6 module object; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
7 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
8 alias char[] string; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
9 alias wchar[] wstring; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
10 alias dchar[] dstring; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
11 alias Exception Error; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
12 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
13 alias typeof(int.sizeof) size_t; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
14 alias typeof(cast(void*)0 - cast(void*)0) ptrdiff_t; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
15 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
16 alias size_t hash_t; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
17 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
18 class Object |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
19 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
20 char[] toString(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
21 hash_t toHash(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
22 int opCmp(Object o); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
23 int opEquals(Object o); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
24 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
25 interface Monitor |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
26 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
27 void lock(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
28 void unlock(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
29 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
30 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
31 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
32 struct Interface |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
33 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
34 ClassInfo classinfo; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
35 void*[] vtbl; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
36 ptrdiff_t offset; // offset to Interface 'this' from Object 'this' |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
37 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
38 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
39 class ClassInfo : Object |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
40 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
41 byte[] init; // class static initializer |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
42 char[] name; // class name |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
43 void*[] vtbl; // virtual function pointer table |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
44 Interface[] interfaces; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
45 ClassInfo base; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
46 void* destructor; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
47 void(*classInvariant)(Object); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
48 uint flags; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
49 // 1: // IUnknown |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
50 // 2: // has no possible pointers into GC memory |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
51 // 4: // has offTi[] member |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
52 // 8: // has constructors |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
53 void* deallocator; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
54 OffsetTypeInfo[] offTi; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
55 void* defaultConstructor; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
56 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
57 static ClassInfo find(char[] classname); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
58 Object create(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
59 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
60 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
61 struct OffsetTypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
62 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
63 size_t offset; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
64 TypeInfo ti; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
65 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
66 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
67 class TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
68 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
69 hash_t getHash(void *p); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
70 int equals(void *p1, void *p2); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
71 int compare(void *p1, void *p2); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
72 size_t tsize(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
73 void swap(void *p1, void *p2); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
74 TypeInfo next(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
75 void[] init(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
76 uint flags(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
77 // 1: // has possible pointers into GC memory |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
78 OffsetTypeInfo[] offTi(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
79 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
80 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
81 class TypeInfo_Typedef : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
82 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
83 TypeInfo base; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
84 char[] name; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
85 void[] m_init; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
86 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
87 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
88 class TypeInfo_Enum : TypeInfo_Typedef |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
89 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
90 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
91 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
92 class TypeInfo_Pointer : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
93 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
94 TypeInfo m_next; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
95 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
96 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
97 class TypeInfo_Array : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
98 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
99 TypeInfo value; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
100 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
101 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
102 class TypeInfo_StaticArray : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
103 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
104 TypeInfo value; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
105 size_t len; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
106 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
107 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
108 class TypeInfo_AssociativeArray : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
109 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
110 TypeInfo value; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
111 TypeInfo key; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
112 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
113 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
114 class TypeInfo_Function : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
115 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
116 TypeInfo next; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
117 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
118 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
119 class TypeInfo_Delegate : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
120 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
121 TypeInfo next; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
122 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
123 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
124 class TypeInfo_Class : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
125 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
126 ClassInfo info; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
127 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
128 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
129 class TypeInfo_Interface : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
130 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
131 ClassInfo info; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
132 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
133 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
134 class TypeInfo_Struct : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
135 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
136 char[] name; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
137 void[] m_init; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
138 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
139 uint function(void*) xtoHash; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
140 int function(void*,void*) xopEquals; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
141 int function(void*,void*) xopCmp; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
142 char[] function(void*) xtoString; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
143 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
144 uint m_flags; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
145 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
146 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
147 class TypeInfo_Tuple : TypeInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
148 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
149 TypeInfo[] elements; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
150 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
151 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
152 class ModuleInfo |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
153 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
154 char[] name; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
155 ModuleInfo[] importedModules; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
156 ClassInfo[] localClasses; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
157 uint flags; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
158 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
159 void function() ctor; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
160 void function() dtor; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
161 void function() unitTest; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
162 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
163 void* xgetMembers; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
164 void function() ictor; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
165 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
166 static int opApply( int delegate( inout ModuleInfo ) ); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
167 } |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
168 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
169 class Exception : Object |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
170 { |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
171 char[] msg; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
172 char[] file; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
173 size_t line; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
174 Exception next; |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
175 |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
176 this(char[] msg, Exception next = null); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
177 this(char[] msg, char[] file, size_t line, Exception next = null); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
178 char[] toString(); |
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff
changeset
|
179 } |