Merge pull request #3522 from henricm/fix-csharp-compiler-path-windows
[mono.git] / mcs / class / corlib / System.Reflection.Emit / TypeBuilder.pns.cs
1 //
2 // TypeBuilder.pns.cs
3 //
4 // Authors:
5 //   Marek Safar (marek.safar@gmail.com)
6 //
7 // Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 // 
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 // 
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28
29 #if FULL_AOT_RUNTIME
30
31 namespace System.Reflection.Emit
32 {
33         public abstract class TypeBuilder : TypeInfo
34         {
35                 public const int UnspecifiedTypeSize = 0;
36
37                 public PackingSize PackingSize {
38                         get {
39                                 throw new PlatformNotSupportedException ();
40                         }
41                 }
42
43                 public int Size {
44                         get {
45                                 throw new PlatformNotSupportedException ();
46                         }
47                 }
48
49                 public override Assembly Assembly {
50                         get {
51                                 throw new PlatformNotSupportedException ();
52                         }
53                 }
54
55                 public override string AssemblyQualifiedName {
56                         get {
57                                 throw new PlatformNotSupportedException ();
58                         }
59                 }
60
61                 public override Type BaseType {
62                         get {
63                                 throw new PlatformNotSupportedException ();
64                         }
65                 }
66
67                 public override string FullName {
68                         get {
69                                 throw new PlatformNotSupportedException ();
70                         }
71                 }
72
73                 public override Guid GUID {
74                         get {
75                                 throw new PlatformNotSupportedException ();
76                         }
77                 }
78
79                 public override Module Module {
80                         get {
81                                 throw new PlatformNotSupportedException ();
82                         }
83                 }
84
85                 public override string Name {
86                         get {
87                                 throw new PlatformNotSupportedException ();
88                         }
89                 }
90
91                 public override string Namespace {
92                         get {
93                                 throw new PlatformNotSupportedException ();
94                         }
95                 }
96
97                 public void AddInterfaceImplementation (Type interfaceType)
98                 {
99                         throw new PlatformNotSupportedException ();
100                 }
101
102                 public TypeInfo CreateTypeInfo ()
103                 {
104                         throw new PlatformNotSupportedException ();
105                 }
106
107                 public ConstructorBuilder DefineConstructor (MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes)
108                 {
109                         throw new PlatformNotSupportedException ();
110                 }
111
112                 public ConstructorBuilder DefineConstructor (MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
113                 {
114                         throw new PlatformNotSupportedException ();
115                 }
116
117                 public ConstructorBuilder DefineDefaultConstructor (MethodAttributes attributes)
118                 {
119                         throw new PlatformNotSupportedException ();
120                 }
121
122                 public EventBuilder DefineEvent (string name, EventAttributes attributes, Type eventtype)
123                 {
124                         throw new PlatformNotSupportedException ();
125                 }
126
127                 public FieldBuilder DefineField (string fieldName, Type type, FieldAttributes attributes)
128                 {
129                         throw new PlatformNotSupportedException ();
130                 }
131
132                 public FieldBuilder DefineField (string fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes)
133                 {
134                         throw new PlatformNotSupportedException ();
135                 }
136
137                 public GenericTypeParameterBuilder[] DefineGenericParameters (string[] names)
138                 {
139                         throw new PlatformNotSupportedException ();
140                 }
141
142                 public FieldBuilder DefineInitializedData (string name, byte[] data, FieldAttributes attributes)
143                 {
144                         throw new PlatformNotSupportedException ();
145                 }
146
147                 public MethodBuilder DefineMethod (string name, MethodAttributes attributes)
148                 {
149                         throw new PlatformNotSupportedException ();
150                 }
151
152                 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention)
153                 {
154                         throw new PlatformNotSupportedException ();
155                 }
156
157                 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
158                 {
159                         throw new PlatformNotSupportedException ();
160                 }
161
162                 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
163                 {
164                         throw new PlatformNotSupportedException ();
165                 }
166
167                 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
168                 {
169                         throw new PlatformNotSupportedException ();
170                 }
171
172                 public void DefineMethodOverride (MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration)
173                 {
174                         throw new PlatformNotSupportedException ();
175                 }
176
177                 public TypeBuilder DefineNestedType (string name)
178                 {
179                         throw new PlatformNotSupportedException ();
180                 }
181
182                 public TypeBuilder DefineNestedType (string name, TypeAttributes attr)
183                 {
184                         throw new PlatformNotSupportedException ();
185                 }
186
187                 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent)
188                 {
189                         throw new PlatformNotSupportedException ();
190                 }
191
192                 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, int typeSize)
193                 {
194                         throw new PlatformNotSupportedException ();
195                 }
196
197                 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, PackingSize packSize)
198                 {
199                         throw new PlatformNotSupportedException ();
200                 }
201
202                 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, Type[] interfaces)
203                 {
204                         throw new PlatformNotSupportedException ();
205                 }
206
207                 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize)
208                 {
209                         throw new PlatformNotSupportedException ();
210                 }
211
212                 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, Type returnType, Type[] parameterTypes)
213                 {
214                         throw new PlatformNotSupportedException ();
215                 }
216
217                 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
218                 {
219                         throw new PlatformNotSupportedException ();
220                 }
221
222                 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
223                 {
224                         throw new PlatformNotSupportedException ();
225                 }
226
227                 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
228                 {
229                         throw new PlatformNotSupportedException ();
230                 }
231
232                 public ConstructorBuilder DefineTypeInitializer ()
233                 {
234                         throw new PlatformNotSupportedException ();
235                 }
236
237                 public FieldBuilder DefineUninitializedData (string name, int size, FieldAttributes attributes)
238                 {
239                         throw new PlatformNotSupportedException ();
240                 }
241
242                 public static ConstructorInfo GetConstructor (Type type, ConstructorInfo constructor)
243                 {
244                         throw new PlatformNotSupportedException ();
245                 }
246
247                 public static FieldInfo GetField (Type type, FieldInfo field)
248                 {
249                         throw new PlatformNotSupportedException ();
250                 }
251
252                 public static MethodInfo GetMethod (Type type, MethodInfo method)
253                 {
254                         throw new PlatformNotSupportedException ();
255                 }
256
257                 public bool IsCreated ()
258                 {
259                         throw new PlatformNotSupportedException ();
260                 }
261
262                 public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
263                 {
264                         throw new PlatformNotSupportedException ();
265                 }
266
267                 public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
268                 {
269                         throw new PlatformNotSupportedException ();
270                 }
271
272                 public void SetParent (Type parent)
273                 {
274                         throw new PlatformNotSupportedException ();
275                 }
276
277                 public override Type GetElementType ()
278                 {
279                         throw new PlatformNotSupportedException ();
280                 }
281         }
282 }
283
284 #endif