-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy pathExtensionEncodingV2.il
More file actions
328 lines (291 loc) · 12.3 KB
/
ExtensionEncodingV2.il
File metadata and controls
328 lines (291 loc) · 12.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
// To extend use:
// see https://lab.razor.fyi/#fVHBbtNAEFUQArwn6BcMPdkSrFyrFVKbVIrcgIKqKKKrHkBIbOyps3S9a3bHtFEViQvfwy9w4Qf4D66ckd00dSOVy2pn3nvz5u2y748ZmzpbOFnyzG_9fVR7ZQo4WXjC8oB1K55arTEjZY3nb9CgU9l_GOOyrEnONG5wjpQsjPWkMn8_wlOb49BIvfBqk3aszJeNlpg7lLkyxX19LqQ_3xz0rjakSuSn6LyyppWzD9J7LGd6sQ9CugLptZMlXlh3Hm7zyUik1uGwql6sRIOdmMfb0UfGjCzRVzJDGKcnc-mqJgI_wsyWldLouEBPvj1T6dHz8fHUIdGCXbFAGUJnpAZPklQGmZbew-iS0DQuU2crdKTQnyYsuGJBgDdQXxyG49t374tDyNZVBBdzdAgC9sFYMrXWLGj1QVXPtMpgZq2GsR-VFS1g0NXy1NaGYDCA-IB1FMoQNCGgHRMUeHMLHFLtDOwmB229bE-_xtt62R311aochnk-PptYmtRahwIUYRk1nGuROoOwacHzATTrt9AKCzrLDvO85UUd7zteIoFUeuqL5DBsIiiT4-X6fRLYB3HrukoSiiQK7ewzZhR1vEYaSzQ0pPB6SGt5x2z1i22-k_a-_srwNlyz5JIFS7ZkW8_2eMzjlwlP9nb3dvhO_OrtA6XfB09-__n14-fZ04efevPeZe9br_cP
// created using https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-tools/NuGet/Microsoft.Net.Compilers.Toolset/overview/5.0.0-2.25451.107
.assembly TestProject
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = {
}
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = {
int32(8)
}
.custom instance void [System.Runtime]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = {
property bool WrapNonExceptionThrows = bool(true)
}
.custom instance void [System.Runtime]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [System.Runtime]System.Diagnostics.DebuggableAttribute/DebuggingModes) = {
int32(263)
}
.custom instance void [System.Runtime]System.Runtime.Versioning.TargetFrameworkAttribute::.ctor(string) = {
string('.NETCoreApp,Version=11.0')
}
.permissionset reqmin = {
[System.Runtime]System.Security.Permissions.SecurityPermissionAttribute = {
property bool SkipVerification = bool(true)
}
}
.hash algorithm 0x00008004 // SHA1
.ver 0:0:0:0
}
.class private auto ansi '<Module>'
{
} // end of class <Module>
.class private auto ansi abstract sealed beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV2
extends [System.Runtime]System.Object
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableContextAttribute::.ctor(uint8) = {
uint8(1)
}
.custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8) = {
uint8(0)
}
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = {
}
// Nested Types
.class nested public auto ansi sealed specialname '<G>$847CB318C385471B1F4E7BD0A197DBCA'<$T0>
extends [System.Runtime]System.Object
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = {
}
// Nested Types
.class nested public auto ansi abstract sealed specialname '<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B'<T>
extends [System.Runtime]System.Object
{
// Methods
.method public hidebysig specialname static
void '<Extension>$' (
class [System.Runtime]System.Collections.Generic.ICollection`1<!T> collection
) cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = {
}
// Method begins at RVA 0x20a0
// Header size: 1
// Code size: 1 (0x1)
.maxstack 8
IL_0000: ret
} // end of method '<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B'::'<Extension>$'
} // end of class <M>$6A79ECC07A7731C57E8EB4E3D9C8B38B
// Methods
.method public hidebysig specialname
instance bool get_IsEmpty () cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
// Method begins at RVA 0x209d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: ldnull
IL_0001: throw
} // end of method '<G>$847CB318C385471B1F4E7BD0A197DBCA'::get_IsEmpty
.method public hidebysig specialname
instance int32 get_Test () cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
// Method begins at RVA 0x209d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: ldnull
IL_0001: throw
} // end of method '<G>$847CB318C385471B1F4E7BD0A197DBCA'::get_Test
.method public hidebysig specialname
instance void set_Test (
int32 'value'
) cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
// Method begins at RVA 0x209d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: ldnull
IL_0001: throw
} // end of method '<G>$847CB318C385471B1F4E7BD0A197DBCA'::set_Test
.method public hidebysig
instance void AddIfNotNull (
!$T0 item
) cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
// Method begins at RVA 0x209d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: ldnull
IL_0001: throw
} // end of method '<G>$847CB318C385471B1F4E7BD0A197DBCA'::AddIfNotNull
.method public hidebysig
instance !!T2 Cast<(!$T0) T2> (
int32 index
) cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
.param type T2
.custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor(uint8) = {
uint8(0)
}
// Method begins at RVA 0x209d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: ldnull
IL_0001: throw
} // end of method '<G>$847CB318C385471B1F4E7BD0A197DBCA'::Cast
.method public hidebysig static
void StaticExtension () cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
// Method begins at RVA 0x209d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: ldnull
IL_0001: throw
} // end of method '<G>$847CB318C385471B1F4E7BD0A197DBCA'::StaticExtension
// Properties
.property instance bool IsEmpty()
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
.get instance bool ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV2/'<G>$847CB318C385471B1F4E7BD0A197DBCA'::get_IsEmpty()
}
.property instance int32 Test()
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionMarkerAttribute::.ctor(string) = {
string('<M>$6A79ECC07A7731C57E8EB4E3D9C8B38B')
}
.get instance int32 ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV2/'<G>$847CB318C385471B1F4E7BD0A197DBCA'::get_Test()
.set instance void ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV2/'<G>$847CB318C385471B1F4E7BD0A197DBCA'::set_Test(int32)
}
} // end of class <G>$847CB318C385471B1F4E7BD0A197DBCA
// Methods
.method public hidebysig static
bool get_IsEmpty<T> (
class [System.Runtime]System.Collections.Generic.ICollection`1<!!T> collection
) cil managed
{
// Method begins at RVA 0x2050
// Header size: 1
// Code size: 10 (0xa)
.maxstack 8
IL_0000: ldarg.0
IL_0001: callvirt instance int32 class [System.Runtime]System.Collections.Generic.ICollection`1<!!T>::get_Count()
IL_0006: ldc.i4.0
IL_0007: ceq
IL_0009: ret
} // end of method ExtensionPropertiesV2::get_IsEmpty
.method public hidebysig static
int32 get_Test<T> (
class [System.Runtime]System.Collections.Generic.ICollection`1<!!T> collection
) cil managed
{
// Method begins at RVA 0x205b
// Header size: 1
// Code size: 4 (0x4)
.maxstack 8
IL_0000: nop
IL_0001: ldc.i4.s 42
IL_0003: ret
} // end of method ExtensionPropertiesV2::get_Test
.method public hidebysig static
void set_Test<T> (
class [System.Runtime]System.Collections.Generic.ICollection`1<!!T> collection,
int32 'value'
) cil managed
{
// Method begins at RVA 0x2060
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: nop
IL_0001: ret
} // end of method ExtensionPropertiesV2::set_Test
.method public hidebysig static
void AddIfNotNull<T> (
class [System.Runtime]System.Collections.Generic.ICollection`1<!!T> collection,
!!T item
) cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = {
}
// Method begins at RVA 0x2064
// Header size: 12
// Code size: 25 (0x19)
.maxstack 2
.locals init (
[0] bool
)
IL_0000: nop
IL_0001: ldarg.1
IL_0002: box !!T
IL_0007: ldnull
IL_0008: cgt.un
IL_000a: stloc.0
IL_000b: ldloc.0
IL_000c: brfalse.s IL_0018
IL_000e: nop
IL_000f: ldarg.0
IL_0010: ldarg.1
IL_0011: callvirt instance void class [System.Runtime]System.Collections.Generic.ICollection`1<!!T>::Add(!0)
IL_0016: nop
IL_0017: nop
IL_0018: ret
} // end of method ExtensionPropertiesV2::AddIfNotNull
.method public hidebysig static
!!T2 Cast<T, (!!T) T2> (
class [System.Runtime]System.Collections.Generic.ICollection`1<!!T> collection,
int32 index
) cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.ExtensionAttribute::.ctor() = {
}
// Method begins at RVA 0x2089
// Header size: 1
// Code size: 19 (0x13)
.maxstack 8
IL_0000: nop
IL_0001: ldarg.0
IL_0002: ldarg.1
IL_0003: call !!0 [System.Linq]System.Linq.Enumerable::ElementAt<!!T>(class [System.Runtime]System.Collections.Generic.IEnumerable`1<!!0>, int32)
IL_0008: box !!T
IL_000d: unbox.any !!T2
IL_0012: ret
} // end of method ExtensionPropertiesV2::Cast
.method public hidebysig static
void StaticExtension<T> () cil managed
{
// Method begins at RVA 0x2060
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
IL_0000: nop
IL_0001: ret
} // end of method ExtensionPropertiesV2::StaticExtension
} // end of class ICSharpCode.Decompiler.Tests.TestCases.ILPretty.ExtensionPropertiesV2
// references
.assembly extern System.Runtime
{
.publickeytoken = (
b0 3f 5f 7f 11 d5 0a 3a
)
.ver 10:0:0:0
}
.assembly extern System.Linq
{
.publickeytoken = (
b0 3f 5f 7f 11 d5 0a 3a
)
.ver 10:0:0:0
}