[bcl] Add more reflection types to monotouch
[mono.git] / mcs / class / corlib / System.Reflection.Emit / ILGenerator.pns.cs
1 //
2 // ILGenerator.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 class ILGenerator
34         {
35                 ILGenerator ()
36                 {
37                 }
38
39                 public int ILOffset {
40                         get     {
41                                 throw new PlatformNotSupportedException ();
42                         }
43                 }
44
45                 public virtual void BeginCatchBlock (Type exceptionType)
46                 {
47                         throw new PlatformNotSupportedException ();
48                 }
49
50                 public virtual void BeginExceptFilterBlock ()
51                 {
52                         throw new PlatformNotSupportedException ();
53                 }
54
55                 public virtual Label BeginExceptionBlock ()
56                 {
57                         throw new PlatformNotSupportedException ();
58                 }
59
60                 public virtual void BeginFaultBlock ()
61                 {
62                         throw new PlatformNotSupportedException ();
63                 }
64
65                 public virtual void BeginFinallyBlock ()
66                 {
67                         throw new PlatformNotSupportedException ();
68                 }
69
70                 public virtual void BeginScope ()
71                 {
72                         throw new PlatformNotSupportedException ();
73                 }
74
75                 public virtual LocalBuilder DeclareLocal (Type localType)
76                 {
77                         throw new PlatformNotSupportedException ();
78                 }
79
80                 public virtual LocalBuilder DeclareLocal (Type localType, bool pinned)
81                 {
82                         throw new PlatformNotSupportedException ();
83                 }
84
85                 public virtual Label DefineLabel ()
86                 {
87                         throw new PlatformNotSupportedException ();
88                 }
89
90                 public virtual void Emit (OpCode opcode)
91                 {
92                         throw new PlatformNotSupportedException ();
93                 }
94
95                 public virtual void Emit (OpCode opcode, byte arg)
96                 {
97                         throw new PlatformNotSupportedException ();
98                 }
99
100                 public virtual void Emit (OpCode opcode, double arg)
101                 {
102                         throw new PlatformNotSupportedException ();
103                 }
104
105                 public virtual void Emit (OpCode opcode, short arg)
106                 {
107                         throw new PlatformNotSupportedException ();
108                 }
109
110                 public virtual void Emit (OpCode opcode, int arg)
111                 {
112                         throw new PlatformNotSupportedException ();
113                 }
114
115                 public virtual void Emit (OpCode opcode, long arg)
116                 {
117                         throw new PlatformNotSupportedException ();
118                 }
119
120                 public virtual void Emit (OpCode opcode, ConstructorInfo con)
121                 {
122                         throw new PlatformNotSupportedException ();
123                 }
124
125                 public virtual void Emit (OpCode opcode, Label label)
126                 {
127                         throw new PlatformNotSupportedException ();
128                 }
129
130                 public virtual void Emit (OpCode opcode, Label[] labels)
131                 {
132                         throw new PlatformNotSupportedException ();
133                 }
134
135                 public virtual void Emit (OpCode opcode, LocalBuilder local)
136                 {
137                         throw new PlatformNotSupportedException ();
138                 }
139
140                 public virtual void Emit (OpCode opcode, SignatureHelper signature)
141                 {
142                         throw new PlatformNotSupportedException ();
143                 }
144
145                 public virtual void Emit (OpCode opcode, FieldInfo field)
146                 {
147                         throw new PlatformNotSupportedException ();
148                 }
149
150                 public virtual void Emit (OpCode opcode, MethodInfo meth)
151                 {
152                         throw new PlatformNotSupportedException ();
153                 }
154
155                 [CLSCompliant (false)]
156                 public void Emit (OpCode opcode, sbyte arg)
157                 {
158                         throw new PlatformNotSupportedException ();
159                 }
160
161                 public virtual void Emit (OpCode opcode, float arg)
162                 {
163                         throw new PlatformNotSupportedException ();
164                 }
165
166                 public virtual void Emit (OpCode opcode, string str)
167                 {
168                         throw new PlatformNotSupportedException ();
169                 }
170
171                 public virtual void Emit (OpCode opcode, Type cls)
172                 {
173                         throw new PlatformNotSupportedException ();
174                 }
175
176                 public virtual void EmitCall (OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes)
177                 {
178                         throw new PlatformNotSupportedException ();
179                 }
180
181                 public virtual void EmitCalli (OpCode opcode, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type[] optionalParameterTypes)
182                 {
183                         throw new PlatformNotSupportedException ();
184                 }
185
186                 public virtual void EmitWriteLine (LocalBuilder localBuilder)
187                 {
188                         throw new PlatformNotSupportedException ();
189                 }
190
191                 public virtual void EmitWriteLine (FieldInfo fld)
192                 {
193                         throw new PlatformNotSupportedException ();
194                 }
195
196                 public virtual void EmitWriteLine (string value)
197                 {
198                         throw new PlatformNotSupportedException ();
199                 }
200
201                 public virtual void EndExceptionBlock ()
202                 {
203                         throw new PlatformNotSupportedException ();
204                 }
205
206                 public virtual void EndScope ()
207                 {
208                         throw new PlatformNotSupportedException ();
209                 }
210
211                 public virtual void MarkLabel (Label loc)
212                 {
213                         throw new PlatformNotSupportedException ();
214                 }
215
216                 public virtual void ThrowException (Type excType)
217                 {
218                         throw new PlatformNotSupportedException ();
219                 }
220
221                 public virtual void UsingNamespace (string usingNamespace)
222                 {
223                         throw new PlatformNotSupportedException ();
224                 }
225
226         }
227 }
228
229 #endif