mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1436 lines
98 KiB
1436 lines
98 KiB
|
|
// Microsoft (R) .NET Framework IL Disassembler. Version 4.0.30319.17929 |
|
// Copyright (c) Microsoft Corporation. All rights reserved. |
|
|
|
|
|
|
|
// Metadata version: v4.0.30319 |
|
.assembly extern mscorlib |
|
{ |
|
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. |
|
.ver 4:0:0:0 |
|
} |
|
.assembly '5wwmyl42' |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78 // ....T..WrapNonEx |
|
63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 ) // ceptionThrows. |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) |
|
.permissionset reqmin |
|
= {[mscorlib]System.Security.Permissions.SecurityPermissionAttribute = {property bool 'SkipVerification' = bool(true)}} |
|
.hash algorithm 0x00008004 |
|
.ver 0:0:0:0 |
|
} |
|
.module '5wwmyl42.dll' |
|
// MVID: {91D59E53-2AA6-427F-B57D-0FC8808BA12D} |
|
.custom instance void [mscorlib]System.Security.UnverifiableCodeAttribute::.ctor() = ( 01 00 00 00 ) |
|
.imagebase 0x10000000 |
|
.file alignment 0x00000200 |
|
.stackreserve 0x00100000 |
|
.subsystem 0x0003 // WINDOWS_CUI |
|
.corflags 0x00000001 // ILONLY |
|
// Image base: 0x00A20000 |
|
|
|
|
|
// =============== CLASS MEMBERS DECLARATION =================== |
|
|
|
.class public auto ansi beforefieldinit ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async |
|
extends [mscorlib]System.Object |
|
{ |
|
.class auto ansi sealed nested private beforefieldinit '<SimpleVoidMethod>d__0' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__$awaiter1' |
|
.field private object '<>t__stack' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 189 (0xbd) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1, |
|
int32 V_2, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_4) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_0008: stloc.2 |
|
IL_0009: ldloc.2 |
|
IL_000a: ldc.i4.0 |
|
IL_000b: beq.s IL_0059 |
|
|
|
IL_000d: ldstr "Before" |
|
IL_0012: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0017: ldc.r8 1. |
|
IL_0020: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) |
|
IL_0025: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) |
|
IL_002a: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() |
|
IL_002f: stloc.3 |
|
IL_0030: ldloca.s V_3 |
|
IL_0032: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() |
|
IL_0037: brtrue.s IL_0077 |
|
|
|
IL_0039: ldarg.0 |
|
IL_003a: ldc.i4.0 |
|
IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_0040: ldarg.0 |
|
IL_0041: ldloc.3 |
|
IL_0042: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>u__$awaiter1' |
|
IL_0047: ldarg.0 |
|
IL_0048: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_004d: ldloca.s V_3 |
|
IL_004f: ldarg.0 |
|
IL_0050: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'>(!!0&, |
|
!!1&) |
|
IL_0055: ldc.i4.0 |
|
IL_0056: stloc.0 |
|
IL_0057: leave.s IL_00bc |
|
|
|
IL_0059: ldarg.0 |
|
IL_005a: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>u__$awaiter1' |
|
IL_005f: stloc.3 |
|
IL_0060: ldarg.0 |
|
IL_0061: ldloca.s V_4 |
|
IL_0063: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0069: ldloc.s V_4 |
|
IL_006b: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>u__$awaiter1' |
|
IL_0070: ldarg.0 |
|
IL_0071: ldc.i4.m1 |
|
IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_0077: ldloca.s V_3 |
|
IL_0079: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_007e: ldloca.s V_3 |
|
IL_0080: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0086: ldstr "After" |
|
IL_008b: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0090: leave.s IL_00a9 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0092: stloc.1 |
|
IL_0093: ldarg.0 |
|
IL_0094: ldc.i4.s -2 |
|
IL_0096: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_009b: ldarg.0 |
|
IL_009c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_00a1: ldloc.1 |
|
IL_00a2: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_00a7: leave.s IL_00bc |
|
|
|
} // end handler |
|
IL_00a9: ldarg.0 |
|
IL_00aa: ldc.i4.s -2 |
|
IL_00ac: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_00b1: ldarg.0 |
|
IL_00b2: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_00b7: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_00bc: ret |
|
} // end of method '<SimpleVoidMethod>d__0'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<SimpleVoidMethod>d__0'::SetStateMachine |
|
|
|
} // end of class '<SimpleVoidMethod>d__0' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<VoidMethodWithoutAwait>d__3' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 57 (0x39) |
|
.maxstack 2 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldstr "No Await" |
|
IL_0007: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_000c: leave.s IL_0025 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_000e: stloc.1 |
|
IL_000f: ldarg.0 |
|
IL_0010: ldc.i4.s -2 |
|
IL_0012: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>1__state' |
|
IL_0017: ldarg.0 |
|
IL_0018: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>t__builder' |
|
IL_001d: ldloc.1 |
|
IL_001e: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0023: leave.s IL_0038 |
|
|
|
} // end handler |
|
IL_0025: ldarg.0 |
|
IL_0026: ldc.i4.s -2 |
|
IL_0028: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>1__state' |
|
IL_002d: ldarg.0 |
|
IL_002e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>t__builder' |
|
IL_0033: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_0038: ret |
|
} // end of method '<VoidMethodWithoutAwait>d__3'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<VoidMethodWithoutAwait>d__3'::SetStateMachine |
|
|
|
} // end of class '<VoidMethodWithoutAwait>d__3' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<EmptyVoidMethod>d__5' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 47 (0x2f) |
|
.maxstack 2 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: leave.s IL_001b |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0004: stloc.1 |
|
IL_0005: ldarg.0 |
|
IL_0006: ldc.i4.s -2 |
|
IL_0008: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>1__state' |
|
IL_000d: ldarg.0 |
|
IL_000e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>t__builder' |
|
IL_0013: ldloc.1 |
|
IL_0014: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0019: leave.s IL_002e |
|
|
|
} // end handler |
|
IL_001b: ldarg.0 |
|
IL_001c: ldc.i4.s -2 |
|
IL_001e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>1__state' |
|
IL_0023: ldarg.0 |
|
IL_0024: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>t__builder' |
|
IL_0029: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_002e: ret |
|
} // end of method '<EmptyVoidMethod>d__5'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<EmptyVoidMethod>d__5'::SetStateMachine |
|
|
|
} // end of class '<EmptyVoidMethod>d__5' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<AwaitYield>d__7' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter '<>u__$awaiter8' |
|
.field private object '<>t__stack' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 161 (0xa1) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1, |
|
int32 V_2, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter V_4, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter V_5) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>1__state' |
|
IL_0008: stloc.2 |
|
IL_0009: ldloc.2 |
|
IL_000a: ldc.i4.0 |
|
IL_000b: beq.s IL_0046 |
|
|
|
IL_000d: call valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable [mscorlib]System.Threading.Tasks.Task::Yield() |
|
IL_0012: stloc.3 |
|
IL_0013: ldloca.s V_3 |
|
IL_0015: call instance valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter [mscorlib]System.Runtime.CompilerServices.YieldAwaitable::GetAwaiter() |
|
IL_001a: stloc.s V_4 |
|
IL_001c: ldloca.s V_4 |
|
IL_001e: call instance bool [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::get_IsCompleted() |
|
IL_0023: brtrue.s IL_0065 |
|
|
|
IL_0025: ldarg.0 |
|
IL_0026: ldc.i4.0 |
|
IL_0027: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>1__state' |
|
IL_002c: ldarg.0 |
|
IL_002d: ldloc.s V_4 |
|
IL_002f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>u__$awaiter8' |
|
IL_0034: ldarg.0 |
|
IL_0035: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>t__builder' |
|
IL_003a: ldloca.s V_4 |
|
IL_003c: ldarg.0 |
|
IL_003d: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'>(!!0&, |
|
!!1&) |
|
IL_0042: ldc.i4.0 |
|
IL_0043: stloc.0 |
|
IL_0044: leave.s IL_00a0 |
|
|
|
IL_0046: ldarg.0 |
|
IL_0047: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>u__$awaiter8' |
|
IL_004c: stloc.s V_4 |
|
IL_004e: ldarg.0 |
|
IL_004f: ldloca.s V_5 |
|
IL_0051: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_0057: ldloc.s V_5 |
|
IL_0059: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>u__$awaiter8' |
|
IL_005e: ldarg.0 |
|
IL_005f: ldc.i4.m1 |
|
IL_0060: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>1__state' |
|
IL_0065: ldloca.s V_4 |
|
IL_0067: call instance void [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::GetResult() |
|
IL_006c: ldloca.s V_4 |
|
IL_006e: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_0074: leave.s IL_008d |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0076: stloc.1 |
|
IL_0077: ldarg.0 |
|
IL_0078: ldc.i4.s -2 |
|
IL_007a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>1__state' |
|
IL_007f: ldarg.0 |
|
IL_0080: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>t__builder' |
|
IL_0085: ldloc.1 |
|
IL_0086: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_008b: leave.s IL_00a0 |
|
|
|
} // end handler |
|
IL_008d: ldarg.0 |
|
IL_008e: ldc.i4.s -2 |
|
IL_0090: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>1__state' |
|
IL_0095: ldarg.0 |
|
IL_0096: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>t__builder' |
|
IL_009b: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_00a0: ret |
|
} // end of method '<AwaitYield>d__7'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<AwaitYield>d__7'::SetStateMachine |
|
|
|
} // end of class '<AwaitYield>d__7' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<AwaitDefaultYieldAwaitable>d__a' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter '<>u__$awaiterb' |
|
.field private object '<>t__stack' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 166 (0xa6) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1, |
|
int32 V_2, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable V_4, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter V_5, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter V_6) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>1__state' |
|
IL_0008: stloc.2 |
|
IL_0009: ldloc.2 |
|
IL_000a: ldc.i4.0 |
|
IL_000b: beq.s IL_004b |
|
|
|
IL_000d: ldloca.s V_3 |
|
IL_000f: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable |
|
IL_0015: ldloc.3 |
|
IL_0016: stloc.s V_4 |
|
IL_0018: ldloca.s V_4 |
|
IL_001a: call instance valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter [mscorlib]System.Runtime.CompilerServices.YieldAwaitable::GetAwaiter() |
|
IL_001f: stloc.s V_5 |
|
IL_0021: ldloca.s V_5 |
|
IL_0023: call instance bool [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::get_IsCompleted() |
|
IL_0028: brtrue.s IL_006a |
|
|
|
IL_002a: ldarg.0 |
|
IL_002b: ldc.i4.0 |
|
IL_002c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>1__state' |
|
IL_0031: ldarg.0 |
|
IL_0032: ldloc.s V_5 |
|
IL_0034: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>u__$awaiterb' |
|
IL_0039: ldarg.0 |
|
IL_003a: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>t__builder' |
|
IL_003f: ldloca.s V_5 |
|
IL_0041: ldarg.0 |
|
IL_0042: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'>(!!0&, |
|
!!1&) |
|
IL_0047: ldc.i4.0 |
|
IL_0048: stloc.0 |
|
IL_0049: leave.s IL_00a5 |
|
|
|
IL_004b: ldarg.0 |
|
IL_004c: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>u__$awaiterb' |
|
IL_0051: stloc.s V_5 |
|
IL_0053: ldarg.0 |
|
IL_0054: ldloca.s V_6 |
|
IL_0056: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_005c: ldloc.s V_6 |
|
IL_005e: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>u__$awaiterb' |
|
IL_0063: ldarg.0 |
|
IL_0064: ldc.i4.m1 |
|
IL_0065: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>1__state' |
|
IL_006a: ldloca.s V_5 |
|
IL_006c: call instance void [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::GetResult() |
|
IL_0071: ldloca.s V_5 |
|
IL_0073: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_0079: leave.s IL_0092 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_007b: stloc.1 |
|
IL_007c: ldarg.0 |
|
IL_007d: ldc.i4.s -2 |
|
IL_007f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>1__state' |
|
IL_0084: ldarg.0 |
|
IL_0085: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>t__builder' |
|
IL_008a: ldloc.1 |
|
IL_008b: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0090: leave.s IL_00a5 |
|
|
|
} // end handler |
|
IL_0092: ldarg.0 |
|
IL_0093: ldc.i4.s -2 |
|
IL_0095: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>1__state' |
|
IL_009a: ldarg.0 |
|
IL_009b: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>t__builder' |
|
IL_00a0: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_00a5: ret |
|
} // end of method '<AwaitDefaultYieldAwaitable>d__a'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<AwaitDefaultYieldAwaitable>d__a'::SetStateMachine |
|
|
|
} // end of class '<AwaitDefaultYieldAwaitable>d__a' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<SimpleVoidTaskMethod>d__d' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__$awaitere' |
|
.field private object '<>t__stack' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 189 (0xbd) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1, |
|
int32 V_2, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_4) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>1__state' |
|
IL_0008: stloc.2 |
|
IL_0009: ldloc.2 |
|
IL_000a: ldc.i4.0 |
|
IL_000b: beq.s IL_0059 |
|
|
|
IL_000d: ldstr "Before" |
|
IL_0012: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0017: ldc.r8 1. |
|
IL_0020: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) |
|
IL_0025: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) |
|
IL_002a: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() |
|
IL_002f: stloc.3 |
|
IL_0030: ldloca.s V_3 |
|
IL_0032: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() |
|
IL_0037: brtrue.s IL_0077 |
|
|
|
IL_0039: ldarg.0 |
|
IL_003a: ldc.i4.0 |
|
IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>1__state' |
|
IL_0040: ldarg.0 |
|
IL_0041: ldloc.3 |
|
IL_0042: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>u__$awaitere' |
|
IL_0047: ldarg.0 |
|
IL_0048: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_004d: ldloca.s V_3 |
|
IL_004f: ldarg.0 |
|
IL_0050: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'>(!!0&, |
|
!!1&) |
|
IL_0055: ldc.i4.0 |
|
IL_0056: stloc.0 |
|
IL_0057: leave.s IL_00bc |
|
|
|
IL_0059: ldarg.0 |
|
IL_005a: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>u__$awaitere' |
|
IL_005f: stloc.3 |
|
IL_0060: ldarg.0 |
|
IL_0061: ldloca.s V_4 |
|
IL_0063: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0069: ldloc.s V_4 |
|
IL_006b: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>u__$awaitere' |
|
IL_0070: ldarg.0 |
|
IL_0071: ldc.i4.m1 |
|
IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>1__state' |
|
IL_0077: ldloca.s V_3 |
|
IL_0079: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_007e: ldloca.s V_3 |
|
IL_0080: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0086: ldstr "After" |
|
IL_008b: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0090: leave.s IL_00a9 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0092: stloc.1 |
|
IL_0093: ldarg.0 |
|
IL_0094: ldc.i4.s -2 |
|
IL_0096: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>1__state' |
|
IL_009b: ldarg.0 |
|
IL_009c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_00a1: ldloc.1 |
|
IL_00a2: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_00a7: leave.s IL_00bc |
|
|
|
} // end handler |
|
IL_00a9: ldarg.0 |
|
IL_00aa: ldc.i4.s -2 |
|
IL_00ac: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>1__state' |
|
IL_00b1: ldarg.0 |
|
IL_00b2: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_00b7: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetResult() |
|
IL_00bc: ret |
|
} // end of method '<SimpleVoidTaskMethod>d__d'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<SimpleVoidTaskMethod>d__d'::SetStateMachine |
|
|
|
} // end of class '<SimpleVoidTaskMethod>d__d' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<TaskMethodWithoutAwait>d__10' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 57 (0x39) |
|
.maxstack 2 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldstr "No Await" |
|
IL_0007: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_000c: leave.s IL_0025 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_000e: stloc.1 |
|
IL_000f: ldarg.0 |
|
IL_0010: ldc.i4.s -2 |
|
IL_0012: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>1__state' |
|
IL_0017: ldarg.0 |
|
IL_0018: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>t__builder' |
|
IL_001d: ldloc.1 |
|
IL_001e: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0023: leave.s IL_0038 |
|
|
|
} // end handler |
|
IL_0025: ldarg.0 |
|
IL_0026: ldc.i4.s -2 |
|
IL_0028: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>1__state' |
|
IL_002d: ldarg.0 |
|
IL_002e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>t__builder' |
|
IL_0033: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetResult() |
|
IL_0038: ret |
|
} // end of method '<TaskMethodWithoutAwait>d__10'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<TaskMethodWithoutAwait>d__10'::SetStateMachine |
|
|
|
} // end of class '<TaskMethodWithoutAwait>d__10' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<SimpleBoolTaskMethod>d__12' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__$awaiter13' |
|
.field private object '<>t__stack' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 195 (0xc3) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
bool V_1, |
|
class [mscorlib]System.Exception V_2, |
|
int32 V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_4, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_5) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>1__state' |
|
IL_0008: stloc.3 |
|
IL_0009: ldloc.3 |
|
IL_000a: ldc.i4.0 |
|
IL_000b: beq.s IL_005b |
|
|
|
IL_000d: ldstr "Before" |
|
IL_0012: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0017: ldc.r8 1. |
|
IL_0020: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) |
|
IL_0025: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) |
|
IL_002a: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() |
|
IL_002f: stloc.s V_4 |
|
IL_0031: ldloca.s V_4 |
|
IL_0033: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() |
|
IL_0038: brtrue.s IL_007a |
|
|
|
IL_003a: ldarg.0 |
|
IL_003b: ldc.i4.0 |
|
IL_003c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>1__state' |
|
IL_0041: ldarg.0 |
|
IL_0042: ldloc.s V_4 |
|
IL_0044: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>u__$awaiter13' |
|
IL_0049: ldarg.0 |
|
IL_004a: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_004f: ldloca.s V_4 |
|
IL_0051: ldarg.0 |
|
IL_0052: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'>(!!0&, |
|
!!1&) |
|
IL_0057: ldc.i4.0 |
|
IL_0058: stloc.0 |
|
IL_0059: leave.s IL_00c2 |
|
|
|
IL_005b: ldarg.0 |
|
IL_005c: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>u__$awaiter13' |
|
IL_0061: stloc.s V_4 |
|
IL_0063: ldarg.0 |
|
IL_0064: ldloca.s V_5 |
|
IL_0066: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_006c: ldloc.s V_5 |
|
IL_006e: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>u__$awaiter13' |
|
IL_0073: ldarg.0 |
|
IL_0074: ldc.i4.m1 |
|
IL_0075: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>1__state' |
|
IL_007a: ldloca.s V_4 |
|
IL_007c: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_0081: ldloca.s V_4 |
|
IL_0083: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0089: ldstr "After" |
|
IL_008e: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0093: ldc.i4.1 |
|
IL_0094: stloc.1 |
|
IL_0095: leave.s IL_00ae |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0097: stloc.2 |
|
IL_0098: ldarg.0 |
|
IL_0099: ldc.i4.s -2 |
|
IL_009b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>1__state' |
|
IL_00a0: ldarg.0 |
|
IL_00a1: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_00a6: ldloc.2 |
|
IL_00a7: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::SetException(class [mscorlib]System.Exception) |
|
IL_00ac: leave.s IL_00c2 |
|
|
|
} // end handler |
|
IL_00ae: ldarg.0 |
|
IL_00af: ldc.i4.s -2 |
|
IL_00b1: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>1__state' |
|
IL_00b6: ldarg.0 |
|
IL_00b7: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_00bc: ldloc.1 |
|
IL_00bd: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::SetResult(!0) |
|
IL_00c2: ret |
|
} // end of method '<SimpleBoolTaskMethod>d__12'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<SimpleBoolTaskMethod>d__12'::SetStateMachine |
|
|
|
} // end of class '<SimpleBoolTaskMethod>d__12' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<TwoAwaitsWithDifferentAwaiterTypes>d__15' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> '<>u__$awaiter16' |
|
.field private object '<>t__stack' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__$awaiter17' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 310 (0x136) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1, |
|
int32 V_2, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> V_4, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_5, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_6) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_0008: stloc.2 |
|
IL_0009: ldloc.2 |
|
IL_000a: switch ( |
|
IL_005e, |
|
IL_00d1) |
|
IL_0017: ldstr "Before" |
|
IL_001c: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0021: ldarg.0 |
|
IL_0022: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>4__this' |
|
IL_0027: callvirt instance class [mscorlib]System.Threading.Tasks.Task`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async::SimpleBoolTaskMethod() |
|
IL_002c: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<!0> class [mscorlib]System.Threading.Tasks.Task`1<bool>::GetAwaiter() |
|
IL_0031: stloc.3 |
|
IL_0032: ldloca.s V_3 |
|
IL_0034: call instance bool valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::get_IsCompleted() |
|
IL_0039: brtrue.s IL_007c |
|
|
|
IL_003b: ldarg.0 |
|
IL_003c: ldc.i4.0 |
|
IL_003d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_0042: ldarg.0 |
|
IL_0043: ldloc.3 |
|
IL_0044: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>u__$awaiter16' |
|
IL_0049: ldarg.0 |
|
IL_004a: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_004f: ldloca.s V_3 |
|
IL_0051: ldarg.0 |
|
IL_0052: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'>(!!0&, |
|
!!1&) |
|
IL_0057: ldc.i4.0 |
|
IL_0058: stloc.0 |
|
IL_0059: leave IL_0135 |
|
|
|
IL_005e: ldarg.0 |
|
IL_005f: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>u__$awaiter16' |
|
IL_0064: stloc.3 |
|
IL_0065: ldarg.0 |
|
IL_0066: ldloca.s V_4 |
|
IL_0068: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_006e: ldloc.s V_4 |
|
IL_0070: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>u__$awaiter16' |
|
IL_0075: ldarg.0 |
|
IL_0076: ldc.i4.m1 |
|
IL_0077: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_007c: ldloca.s V_3 |
|
IL_007e: call instance !0 valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::GetResult() |
|
IL_0083: ldloca.s V_3 |
|
IL_0085: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_008b: brfalse.s IL_00ff |
|
|
|
IL_008d: ldc.r8 1. |
|
IL_0096: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) |
|
IL_009b: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) |
|
IL_00a0: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() |
|
IL_00a5: stloc.s V_5 |
|
IL_00a7: ldloca.s V_5 |
|
IL_00a9: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() |
|
IL_00ae: brtrue.s IL_00f0 |
|
|
|
IL_00b0: ldarg.0 |
|
IL_00b1: ldc.i4.1 |
|
IL_00b2: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_00b7: ldarg.0 |
|
IL_00b8: ldloc.s V_5 |
|
IL_00ba: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>u__$awaiter17' |
|
IL_00bf: ldarg.0 |
|
IL_00c0: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_00c5: ldloca.s V_5 |
|
IL_00c7: ldarg.0 |
|
IL_00c8: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'>(!!0&, |
|
!!1&) |
|
IL_00cd: ldc.i4.0 |
|
IL_00ce: stloc.0 |
|
IL_00cf: leave.s IL_0135 |
|
|
|
IL_00d1: ldarg.0 |
|
IL_00d2: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>u__$awaiter17' |
|
IL_00d7: stloc.s V_5 |
|
IL_00d9: ldarg.0 |
|
IL_00da: ldloca.s V_6 |
|
IL_00dc: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_00e2: ldloc.s V_6 |
|
IL_00e4: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>u__$awaiter17' |
|
IL_00e9: ldarg.0 |
|
IL_00ea: ldc.i4.m1 |
|
IL_00eb: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_00f0: ldloca.s V_5 |
|
IL_00f2: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_00f7: ldloca.s V_5 |
|
IL_00f9: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_00ff: ldstr "After" |
|
IL_0104: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0109: leave.s IL_0122 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_010b: stloc.1 |
|
IL_010c: ldarg.0 |
|
IL_010d: ldc.i4.s -2 |
|
IL_010f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_0114: ldarg.0 |
|
IL_0115: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_011a: ldloc.1 |
|
IL_011b: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0120: leave.s IL_0135 |
|
|
|
} // end handler |
|
IL_0122: ldarg.0 |
|
IL_0123: ldc.i4.s -2 |
|
IL_0125: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_012a: ldarg.0 |
|
IL_012b: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_0130: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_0135: ret |
|
} // end of method '<TwoAwaitsWithDifferentAwaiterTypes>d__15'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<TwoAwaitsWithDifferentAwaiterTypes>d__15'::SetStateMachine |
|
|
|
} // end of class '<TwoAwaitsWithDifferentAwaiterTypes>d__15' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<AwaitInLoopCondition>d__19' |
|
extends [mscorlib]System.ValueType |
|
implements [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) |
|
.field public int32 '<>1__state' |
|
.field public valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder '<>t__builder' |
|
.field public class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async '<>4__this' |
|
.field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> '<>u__$awaiter1a' |
|
.field private object '<>t__stack' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 175 (0xaf) |
|
.maxstack 3 |
|
.locals init (bool V_0, |
|
class [mscorlib]System.Exception V_1, |
|
int32 V_2, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> V_3, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> V_4) |
|
.try |
|
{ |
|
IL_0000: ldc.i4.1 |
|
IL_0001: stloc.0 |
|
IL_0002: ldarg.0 |
|
IL_0003: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>1__state' |
|
IL_0008: stloc.2 |
|
IL_0009: ldloc.2 |
|
IL_000a: ldc.i4.0 |
|
IL_000b: beq.s IL_0053 |
|
|
|
IL_000d: br.s IL_0019 |
|
|
|
IL_000f: ldstr "Body" |
|
IL_0014: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0019: ldarg.0 |
|
IL_001a: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>4__this' |
|
IL_001f: callvirt instance class [mscorlib]System.Threading.Tasks.Task`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async::SimpleBoolTaskMethod() |
|
IL_0024: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<!0> class [mscorlib]System.Threading.Tasks.Task`1<bool>::GetAwaiter() |
|
IL_0029: stloc.3 |
|
IL_002a: ldloca.s V_3 |
|
IL_002c: call instance bool valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::get_IsCompleted() |
|
IL_0031: brtrue.s IL_0071 |
|
|
|
IL_0033: ldarg.0 |
|
IL_0034: ldc.i4.0 |
|
IL_0035: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>1__state' |
|
IL_003a: ldarg.0 |
|
IL_003b: ldloc.3 |
|
IL_003c: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>u__$awaiter1a' |
|
IL_0041: ldarg.0 |
|
IL_0042: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>t__builder' |
|
IL_0047: ldloca.s V_3 |
|
IL_0049: ldarg.0 |
|
IL_004a: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'>(!!0&, |
|
!!1&) |
|
IL_004f: ldc.i4.0 |
|
IL_0050: stloc.0 |
|
IL_0051: leave.s IL_00ae |
|
|
|
IL_0053: ldarg.0 |
|
IL_0054: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>u__$awaiter1a' |
|
IL_0059: stloc.3 |
|
IL_005a: ldarg.0 |
|
IL_005b: ldloca.s V_4 |
|
IL_005d: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_0063: ldloc.s V_4 |
|
IL_0065: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>u__$awaiter1a' |
|
IL_006a: ldarg.0 |
|
IL_006b: ldc.i4.m1 |
|
IL_006c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>1__state' |
|
IL_0071: ldloca.s V_3 |
|
IL_0073: call instance !0 valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::GetResult() |
|
IL_0078: ldloca.s V_3 |
|
IL_007a: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_0080: brtrue.s IL_000f |
|
|
|
IL_0082: leave.s IL_009b |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0084: stloc.1 |
|
IL_0085: ldarg.0 |
|
IL_0086: ldc.i4.s -2 |
|
IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>1__state' |
|
IL_008d: ldarg.0 |
|
IL_008e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>t__builder' |
|
IL_0093: ldloc.1 |
|
IL_0094: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0099: leave.s IL_00ae |
|
|
|
} // end handler |
|
IL_009b: ldarg.0 |
|
IL_009c: ldc.i4.s -2 |
|
IL_009e: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>1__state' |
|
IL_00a3: ldarg.0 |
|
IL_00a4: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>t__builder' |
|
IL_00a9: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_00ae: ret |
|
} // end of method '<AwaitInLoopCondition>d__19'::MoveNext |
|
|
|
.method private hidebysig newslot virtual final |
|
instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine param0) cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerHiddenAttribute::.ctor() = ( 01 00 00 00 ) |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::SetStateMachine |
|
// Code size 13 (0xd) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>t__builder' |
|
IL_0006: ldarg.1 |
|
IL_0007: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) |
|
IL_000c: ret |
|
} // end of method '<AwaitInLoopCondition>d__19'::SetStateMachine |
|
|
|
} // end of class '<AwaitInLoopCondition>d__19' |
|
|
|
.method public hidebysig instance void |
|
SimpleVoidMethod() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 4A 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..JICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 53 69 6D 70 6C 65 56 6F // .Async+<SimpleVo |
|
69 64 4D 65 74 68 6F 64 3E 64 5F 5F 30 00 00 ) // idMethod>d__0.. |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::SimpleVoidMethod |
|
|
|
.method public hidebysig instance void |
|
VoidMethodWithoutAwait() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 50 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..PICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 56 6F 69 64 4D 65 74 68 // .Async+<VoidMeth |
|
6F 64 57 69 74 68 6F 75 74 41 77 61 69 74 3E 64 // odWithoutAwait>d |
|
5F 5F 33 00 00 ) // __3.. |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__3'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::VoidMethodWithoutAwait |
|
|
|
.method public hidebysig instance void |
|
EmptyVoidMethod() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 49 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..IICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 45 6D 70 74 79 56 6F 69 // .Async+<EmptyVoi |
|
64 4D 65 74 68 6F 64 3E 64 5F 5F 35 00 00 ) // dMethod>d__5.. |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__5'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::EmptyVoidMethod |
|
|
|
.method public hidebysig instance void |
|
AwaitYield() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 44 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..DICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 41 77 61 69 74 59 69 65 // .Async+<AwaitYie |
|
6C 64 3E 64 5F 5F 37 00 00 ) // ld>d__7.. |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__7'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::AwaitYield |
|
|
|
.method public hidebysig instance void |
|
AwaitDefaultYieldAwaitable() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 54 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..TICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 41 77 61 69 74 44 65 66 // .Async+<AwaitDef |
|
61 75 6C 74 59 69 65 6C 64 41 77 61 69 74 61 62 // aultYieldAwaitab |
|
6C 65 3E 64 5F 5F 61 00 00 ) // le>d__a.. |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__a'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::AwaitDefaultYieldAwaitable |
|
|
|
.method public hidebysig instance class [mscorlib]System.Threading.Tasks.Task |
|
SimpleVoidTaskMethod() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 4E 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..NICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 53 69 6D 70 6C 65 56 6F // .Async+<SimpleVo |
|
69 64 54 61 73 6B 4D 65 74 68 6F 64 3E 64 5F 5F // idTaskMethod>d__ |
|
64 00 00 ) // d.. |
|
// Code size 58 (0x3a) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'>(!!0&) |
|
IL_002d: ldloca.s V_0 |
|
IL_002f: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__d'::'<>t__builder' |
|
IL_0034: call instance class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::get_Task() |
|
IL_0039: ret |
|
} // end of method Async::SimpleVoidTaskMethod |
|
|
|
.method public hidebysig instance class [mscorlib]System.Threading.Tasks.Task |
|
TaskMethodWithoutAwait() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 51 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..QICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 54 61 73 6B 4D 65 74 68 // .Async+<TaskMeth |
|
6F 64 57 69 74 68 6F 75 74 41 77 61 69 74 3E 64 // odWithoutAwait>d |
|
5F 5F 31 30 00 00 ) // __10.. |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 58 (0x3a) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'>(!!0&) |
|
IL_002d: ldloca.s V_0 |
|
IL_002f: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__10'::'<>t__builder' |
|
IL_0034: call instance class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::get_Task() |
|
IL_0039: ret |
|
} // end of method Async::TaskMethodWithoutAwait |
|
|
|
.method public hidebysig instance class [mscorlib]System.Threading.Tasks.Task`1<bool> |
|
SimpleBoolTaskMethod() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 4F 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..OICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 53 69 6D 70 6C 65 42 6F // .Async+<SimpleBo |
|
6F 6C 54 61 73 6B 4D 65 74 68 6F 64 3E 64 5F 5F // olTaskMethod>d__ |
|
31 32 00 00 ) // 12.. |
|
// Code size 58 (0x3a) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<!0> valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'>(!!0&) |
|
IL_002d: ldloca.s V_0 |
|
IL_002f: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__12'::'<>t__builder' |
|
IL_0034: call instance class [mscorlib]System.Threading.Tasks.Task`1<!0> valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::get_Task() |
|
IL_0039: ret |
|
} // end of method Async::SimpleBoolTaskMethod |
|
|
|
.method public hidebysig instance void |
|
TwoAwaitsWithDifferentAwaiterTypes() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5D 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..]ICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 54 77 6F 41 77 61 69 74 // .Async+<TwoAwait |
|
73 57 69 74 68 44 69 66 66 65 72 65 6E 74 41 77 // sWithDifferentAw |
|
61 69 74 65 72 54 79 70 65 73 3E 64 5F 5F 31 35 // aiterTypes>d__15 |
|
00 00 ) |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__15'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::TwoAwaitsWithDifferentAwaiterTypes |
|
|
|
.method public hidebysig instance void |
|
AwaitInLoopCondition() cil managed |
|
{ |
|
.custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 4F 49 43 53 68 61 72 70 43 6F 64 65 2E 44 // ..OICSharpCode.D |
|
65 63 6F 6D 70 69 6C 65 72 2E 54 65 73 74 73 2E // ecompiler.Tests. |
|
54 65 73 74 43 61 73 65 73 2E 50 72 65 74 74 79 // TestCases.Pretty |
|
2E 41 73 79 6E 63 2B 3C 41 77 61 69 74 49 6E 4C // .Async+<AwaitInL |
|
6F 6F 70 43 6F 6E 64 69 74 69 6F 6E 3E 64 5F 5F // oopCondition>d__ |
|
31 39 00 00 ) // 19.. |
|
.custom instance void [mscorlib]System.Diagnostics.DebuggerStepThroughAttribute::.ctor() = ( 01 00 00 00 ) |
|
// Code size 46 (0x2e) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: ldarg.0 |
|
IL_0003: stfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>4__this' |
|
IL_0008: ldloca.s V_0 |
|
IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() |
|
IL_000f: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>t__builder' |
|
IL_0014: ldloca.s V_0 |
|
IL_0016: ldc.i4.m1 |
|
IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>1__state' |
|
IL_001c: ldloca.s V_0 |
|
IL_001e: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'::'<>t__builder' |
|
IL_0023: stloc.1 |
|
IL_0024: ldloca.s V_1 |
|
IL_0026: ldloca.s V_0 |
|
IL_0028: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__19'>(!!0&) |
|
IL_002d: ret |
|
} // end of method Async::AwaitInLoopCondition |
|
|
|
.method public hidebysig specialname rtspecialname |
|
instance void .ctor() cil managed |
|
{ |
|
// Code size 7 (0x7) |
|
.maxstack 8 |
|
IL_0000: ldarg.0 |
|
IL_0001: call instance void [mscorlib]System.Object::.ctor() |
|
IL_0006: ret |
|
} // end of method Async::.ctor |
|
|
|
} // end of class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async |
|
|
|
|
|
// ============================================================= |
|
|
|
// *********** DISASSEMBLY COMPLETE *********************** |
|
// WARNING: Created Win32 resource file ../../../TestCases/Pretty\Async.opt.res
|
|
|