// 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 Async { .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) .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. // --- The following custom attribute is added automatically, do not uncomment ------- // .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 02 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 Async.dll .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 // =============== 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 '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 private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__1' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 176 (0xb0) .maxstack 3 .locals init (int32 V_0, valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_1, class [mscorlib]System.Exception V_2) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>1__state' IL_0006: stloc.0 .try { IL_0007: ldloc.0 IL_0008: brfalse.s IL_0056 IL_000a: ldstr "Before" IL_000f: call void [mscorlib]System.Console::WriteLine(string) IL_0014: ldc.r8 1. IL_001d: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) IL_0022: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) IL_0027: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() IL_002c: stloc.1 IL_002d: ldloca.s V_1 IL_002f: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() IL_0034: brtrue.s IL_0072 IL_0036: ldarg.0 IL_0037: ldc.i4.0 IL_0038: dup IL_0039: stloc.0 IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>1__state' IL_003f: ldarg.0 IL_0040: ldloc.1 IL_0041: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>u__1' IL_0046: ldarg.0 IL_0047: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>t__builder' IL_004c: ldloca.s V_1 IL_004e: ldarg.0 IL_004f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompletedd__0'>(!!0&, !!1&) IL_0054: leave.s IL_00af IL_0056: ldarg.0 IL_0057: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>u__1' IL_005c: stloc.1 IL_005d: ldarg.0 IL_005e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>u__1' IL_0063: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter IL_0069: ldarg.0 IL_006a: ldc.i4.m1 IL_006b: dup IL_006c: stloc.0 IL_006d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>1__state' IL_0072: ldloca.s V_1 IL_0074: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() IL_0079: ldstr "After" IL_007e: call void [mscorlib]System.Console::WriteLine(string) IL_0083: leave.s IL_009c } // end .try catch [mscorlib]System.Exception { IL_0085: stloc.2 IL_0086: ldarg.0 IL_0087: ldc.i4.s -2 IL_0089: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>1__state' IL_008e: ldarg.0 IL_008f: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>t__builder' IL_0094: ldloc.2 IL_0095: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_009a: leave.s IL_00af } // end handler IL_009c: ldarg.0 IL_009d: ldc.i4.s -2 IL_009f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>1__state' IL_00a4: ldarg.0 IL_00a5: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>t__builder' IL_00aa: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_00af: ret } // end of method 'd__0'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'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 'd__0'::SetStateMachine } // end of class 'd__0' .class auto ansi sealed nested private beforefieldinit 'd__1' 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' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 55 (0x37) .maxstack 2 .locals init (class [mscorlib]System.Exception V_0) .try { IL_0000: ldstr "No Await" IL_0005: call void [mscorlib]System.Console::WriteLine(string) IL_000a: leave.s IL_0023 } // end .try catch [mscorlib]System.Exception { IL_000c: stloc.0 IL_000d: ldarg.0 IL_000e: ldc.i4.s -2 IL_0010: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>1__state' IL_0015: ldarg.0 IL_0016: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>t__builder' IL_001b: ldloc.0 IL_001c: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_0021: leave.s IL_0036 } // end handler IL_0023: ldarg.0 IL_0024: ldc.i4.s -2 IL_0026: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>1__state' IL_002b: ldarg.0 IL_002c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>t__builder' IL_0031: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_0036: ret } // end of method 'd__1'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__1'::'<>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 'd__1'::SetStateMachine } // end of class 'd__1' .class auto ansi sealed nested private beforefieldinit 'd__2' 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' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 45 (0x2d) .maxstack 2 .locals init (class [mscorlib]System.Exception V_0) .try { IL_0000: leave.s IL_0019 } // end .try catch [mscorlib]System.Exception { IL_0002: stloc.0 IL_0003: ldarg.0 IL_0004: ldc.i4.s -2 IL_0006: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>1__state' IL_000b: ldarg.0 IL_000c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>t__builder' IL_0011: ldloc.0 IL_0012: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_0017: leave.s IL_002c } // end handler IL_0019: ldarg.0 IL_001a: ldc.i4.s -2 IL_001c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>1__state' IL_0021: ldarg.0 IL_0022: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>t__builder' IL_0027: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_002c: ret } // end of method 'd__2'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__2'::'<>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 'd__2'::SetStateMachine } // end of class 'd__2' .class auto ansi sealed nested private beforefieldinit '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 private valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter '<>u__1' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 145 (0x91) .maxstack 3 .locals init (int32 V_0, valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter V_1, valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable V_2, class [mscorlib]System.Exception V_3) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>1__state' IL_0006: stloc.0 .try { IL_0007: ldloc.0 IL_0008: brfalse.s IL_0041 IL_000a: call valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable [mscorlib]System.Threading.Tasks.Task::Yield() IL_000f: stloc.2 IL_0010: ldloca.s V_2 IL_0012: call instance valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter [mscorlib]System.Runtime.CompilerServices.YieldAwaitable::GetAwaiter() IL_0017: stloc.1 IL_0018: ldloca.s V_1 IL_001a: call instance bool [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::get_IsCompleted() IL_001f: brtrue.s IL_005d IL_0021: ldarg.0 IL_0022: ldc.i4.0 IL_0023: dup IL_0024: stloc.0 IL_0025: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>1__state' IL_002a: ldarg.0 IL_002b: ldloc.1 IL_002c: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>u__1' IL_0031: ldarg.0 IL_0032: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>t__builder' IL_0037: ldloca.s V_1 IL_0039: ldarg.0 IL_003a: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompletedd__3'>(!!0&, !!1&) IL_003f: leave.s IL_0090 IL_0041: ldarg.0 IL_0042: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>u__1' IL_0047: stloc.1 IL_0048: ldarg.0 IL_0049: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>u__1' IL_004e: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter IL_0054: ldarg.0 IL_0055: ldc.i4.m1 IL_0056: dup IL_0057: stloc.0 IL_0058: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>1__state' IL_005d: ldloca.s V_1 IL_005f: call instance void [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::GetResult() IL_0064: leave.s IL_007d } // end .try catch [mscorlib]System.Exception { IL_0066: stloc.3 IL_0067: ldarg.0 IL_0068: ldc.i4.s -2 IL_006a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>1__state' IL_006f: ldarg.0 IL_0070: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>t__builder' IL_0075: ldloc.3 IL_0076: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_007b: leave.s IL_0090 } // end handler IL_007d: ldarg.0 IL_007e: ldc.i4.s -2 IL_0080: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>1__state' IL_0085: ldarg.0 IL_0086: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>t__builder' IL_008b: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_0090: ret } // end of method 'd__3'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'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 'd__3'::SetStateMachine } // end of class 'd__3' .class auto ansi sealed nested private beforefieldinit 'd__4' 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 private valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter '<>u__1' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 146 (0x92) .maxstack 3 .locals init (int32 V_0, valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter V_1, valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable V_2, class [mscorlib]System.Exception V_3) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>1__state' IL_0006: stloc.0 .try { IL_0007: ldloc.0 IL_0008: brfalse.s IL_0042 IL_000a: ldloca.s V_2 IL_000c: dup IL_000d: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable IL_0013: call instance valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter [mscorlib]System.Runtime.CompilerServices.YieldAwaitable::GetAwaiter() IL_0018: stloc.1 IL_0019: ldloca.s V_1 IL_001b: call instance bool [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::get_IsCompleted() IL_0020: brtrue.s IL_005e IL_0022: ldarg.0 IL_0023: ldc.i4.0 IL_0024: dup IL_0025: stloc.0 IL_0026: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>1__state' IL_002b: ldarg.0 IL_002c: ldloc.1 IL_002d: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>u__1' IL_0032: ldarg.0 IL_0033: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>t__builder' IL_0038: ldloca.s V_1 IL_003a: ldarg.0 IL_003b: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompletedd__4'>(!!0&, !!1&) IL_0040: leave.s IL_0091 IL_0042: ldarg.0 IL_0043: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>u__1' IL_0048: stloc.1 IL_0049: ldarg.0 IL_004a: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>u__1' IL_004f: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter IL_0055: ldarg.0 IL_0056: ldc.i4.m1 IL_0057: dup IL_0058: stloc.0 IL_0059: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>1__state' IL_005e: ldloca.s V_1 IL_0060: call instance void [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::GetResult() IL_0065: leave.s IL_007e } // end .try catch [mscorlib]System.Exception { IL_0067: stloc.3 IL_0068: ldarg.0 IL_0069: ldc.i4.s -2 IL_006b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>1__state' IL_0070: ldarg.0 IL_0071: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>t__builder' IL_0076: ldloc.3 IL_0077: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_007c: leave.s IL_0091 } // end handler IL_007e: ldarg.0 IL_007f: ldc.i4.s -2 IL_0081: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>1__state' IL_0086: ldarg.0 IL_0087: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>t__builder' IL_008c: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_0091: ret } // end of method 'd__4'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__4'::'<>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 'd__4'::SetStateMachine } // end of class 'd__4' .class auto ansi sealed nested private beforefieldinit '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.AsyncTaskMethodBuilder '<>t__builder' .field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__1' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 176 (0xb0) .maxstack 3 .locals init (int32 V_0, valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_1, class [mscorlib]System.Exception V_2) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>1__state' IL_0006: stloc.0 .try { IL_0007: ldloc.0 IL_0008: brfalse.s IL_0056 IL_000a: ldstr "Before" IL_000f: call void [mscorlib]System.Console::WriteLine(string) IL_0014: ldc.r8 1. IL_001d: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) IL_0022: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) IL_0027: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() IL_002c: stloc.1 IL_002d: ldloca.s V_1 IL_002f: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() IL_0034: brtrue.s IL_0072 IL_0036: ldarg.0 IL_0037: ldc.i4.0 IL_0038: dup IL_0039: stloc.0 IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>1__state' IL_003f: ldarg.0 IL_0040: ldloc.1 IL_0041: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>u__1' IL_0046: ldarg.0 IL_0047: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>t__builder' IL_004c: ldloca.s V_1 IL_004e: ldarg.0 IL_004f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::AwaitUnsafeOnCompletedd__5'>(!!0&, !!1&) IL_0054: leave.s IL_00af IL_0056: ldarg.0 IL_0057: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>u__1' IL_005c: stloc.1 IL_005d: ldarg.0 IL_005e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>u__1' IL_0063: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter IL_0069: ldarg.0 IL_006a: ldc.i4.m1 IL_006b: dup IL_006c: stloc.0 IL_006d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>1__state' IL_0072: ldloca.s V_1 IL_0074: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() IL_0079: ldstr "After" IL_007e: call void [mscorlib]System.Console::WriteLine(string) IL_0083: leave.s IL_009c } // end .try catch [mscorlib]System.Exception { IL_0085: stloc.2 IL_0086: ldarg.0 IL_0087: ldc.i4.s -2 IL_0089: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>1__state' IL_008e: ldarg.0 IL_008f: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>t__builder' IL_0094: ldloc.2 IL_0095: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetException(class [mscorlib]System.Exception) IL_009a: leave.s IL_00af } // end handler IL_009c: ldarg.0 IL_009d: ldc.i4.s -2 IL_009f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>1__state' IL_00a4: ldarg.0 IL_00a5: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>t__builder' IL_00aa: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetResult() IL_00af: ret } // end of method 'd__5'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__5'::'<>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 'd__5'::SetStateMachine } // end of class 'd__5' .class auto ansi sealed nested private beforefieldinit 'd__6' 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' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 55 (0x37) .maxstack 2 .locals init (class [mscorlib]System.Exception V_0) .try { IL_0000: ldstr "No Await" IL_0005: call void [mscorlib]System.Console::WriteLine(string) IL_000a: leave.s IL_0023 } // end .try catch [mscorlib]System.Exception { IL_000c: stloc.0 IL_000d: ldarg.0 IL_000e: ldc.i4.s -2 IL_0010: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>1__state' IL_0015: ldarg.0 IL_0016: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>t__builder' IL_001b: ldloc.0 IL_001c: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetException(class [mscorlib]System.Exception) IL_0021: leave.s IL_0036 } // end handler IL_0023: ldarg.0 IL_0024: ldc.i4.s -2 IL_0026: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>1__state' IL_002b: ldarg.0 IL_002c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>t__builder' IL_0031: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetResult() IL_0036: ret } // end of method 'd__6'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__6'::'<>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 'd__6'::SetStateMachine } // end of class 'd__6' .class auto ansi sealed nested private beforefieldinit '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.AsyncTaskMethodBuilder`1 '<>t__builder' .field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__1' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 179 (0xb3) .maxstack 3 .locals init (int32 V_0, bool V_1, valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_2, class [mscorlib]System.Exception V_3) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>1__state' IL_0006: stloc.0 .try { IL_0007: ldloc.0 IL_0008: brfalse.s IL_0056 IL_000a: ldstr "Before" IL_000f: call void [mscorlib]System.Console::WriteLine(string) IL_0014: ldc.r8 1. IL_001d: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) IL_0022: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) IL_0027: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() IL_002c: stloc.2 IL_002d: ldloca.s V_2 IL_002f: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() IL_0034: brtrue.s IL_0072 IL_0036: ldarg.0 IL_0037: ldc.i4.0 IL_0038: dup IL_0039: stloc.0 IL_003a: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>1__state' IL_003f: ldarg.0 IL_0040: ldloc.2 IL_0041: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>u__1' IL_0046: ldarg.0 IL_0047: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_004c: ldloca.s V_2 IL_004e: ldarg.0 IL_004f: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::AwaitUnsafeOnCompletedd__7'>(!!0&, !!1&) IL_0054: leave.s IL_00b2 IL_0056: ldarg.0 IL_0057: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>u__1' IL_005c: stloc.2 IL_005d: ldarg.0 IL_005e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>u__1' IL_0063: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter IL_0069: ldarg.0 IL_006a: ldc.i4.m1 IL_006b: dup IL_006c: stloc.0 IL_006d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>1__state' IL_0072: ldloca.s V_2 IL_0074: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() IL_0079: ldstr "After" IL_007e: call void [mscorlib]System.Console::WriteLine(string) IL_0083: ldc.i4.1 IL_0084: stloc.1 IL_0085: leave.s IL_009e } // end .try catch [mscorlib]System.Exception { IL_0087: stloc.3 IL_0088: ldarg.0 IL_0089: ldc.i4.s -2 IL_008b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>1__state' IL_0090: ldarg.0 IL_0091: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_0096: ldloc.3 IL_0097: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::SetException(class [mscorlib]System.Exception) IL_009c: leave.s IL_00b2 } // end handler IL_009e: ldarg.0 IL_009f: ldc.i4.s -2 IL_00a1: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>1__state' IL_00a6: ldarg.0 IL_00a7: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_00ac: ldloc.1 IL_00ad: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::SetResult(!0) IL_00b2: ret } // end of method 'd__7'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_0006: ldarg.1 IL_0007: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine) IL_000c: ret } // end of method 'd__7'::SetStateMachine } // end of class 'd__7' .class auto ansi sealed nested private beforefieldinit 'd__8' 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 '<>u__1' .field private valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter '<>u__2' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 285 (0x11d) .maxstack 3 .locals init (int32 V_0, class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async V_1, valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 V_2, valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter V_3, class [mscorlib]System.Exception V_4) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_0006: stloc.0 IL_0007: ldarg.0 IL_0008: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>4__this' IL_000d: stloc.1 .try { IL_000e: ldloc.0 IL_000f: brfalse.s IL_005a IL_0011: ldloc.0 IL_0012: ldc.i4.1 IL_0013: beq IL_00c1 IL_0018: ldstr "Before" IL_001d: call void [mscorlib]System.Console::WriteLine(string) IL_0022: ldloc.1 IL_0023: call instance class [mscorlib]System.Threading.Tasks.Task`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async::SimpleBoolTaskMethod() IL_0028: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 class [mscorlib]System.Threading.Tasks.Task`1::GetAwaiter() IL_002d: stloc.2 IL_002e: ldloca.s V_2 IL_0030: call instance bool valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1::get_IsCompleted() IL_0035: brtrue.s IL_0076 IL_0037: ldarg.0 IL_0038: ldc.i4.0 IL_0039: dup IL_003a: stloc.0 IL_003b: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_0040: ldarg.0 IL_0041: ldloc.2 IL_0042: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>u__1' IL_0047: ldarg.0 IL_0048: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>t__builder' IL_004d: ldloca.s V_2 IL_004f: ldarg.0 IL_0050: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'>(!!0&, !!1&) IL_0055: leave IL_011c IL_005a: ldarg.0 IL_005b: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>u__1' IL_0060: stloc.2 IL_0061: ldarg.0 IL_0062: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>u__1' IL_0067: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 IL_006d: ldarg.0 IL_006e: ldc.i4.m1 IL_006f: dup IL_0070: stloc.0 IL_0071: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_0076: ldloca.s V_2 IL_0078: call instance !0 valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1::GetResult() IL_007d: brfalse.s IL_00e4 IL_007f: ldc.r8 1. IL_0088: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) IL_008d: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) IL_0092: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() IL_0097: stloc.3 IL_0098: ldloca.s V_3 IL_009a: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() IL_009f: brtrue.s IL_00dd IL_00a1: ldarg.0 IL_00a2: ldc.i4.1 IL_00a3: dup IL_00a4: stloc.0 IL_00a5: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_00aa: ldarg.0 IL_00ab: ldloc.3 IL_00ac: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>u__2' IL_00b1: ldarg.0 IL_00b2: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>t__builder' IL_00b7: ldloca.s V_3 IL_00b9: ldarg.0 IL_00ba: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompletedd__8'>(!!0&, !!1&) IL_00bf: leave.s IL_011c IL_00c1: ldarg.0 IL_00c2: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>u__2' IL_00c7: stloc.3 IL_00c8: ldarg.0 IL_00c9: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>u__2' IL_00ce: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter IL_00d4: ldarg.0 IL_00d5: ldc.i4.m1 IL_00d6: dup IL_00d7: stloc.0 IL_00d8: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_00dd: ldloca.s V_3 IL_00df: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() IL_00e4: ldstr "After" IL_00e9: call void [mscorlib]System.Console::WriteLine(string) IL_00ee: leave.s IL_0109 } // end .try catch [mscorlib]System.Exception { IL_00f0: stloc.s V_4 IL_00f2: ldarg.0 IL_00f3: ldc.i4.s -2 IL_00f5: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_00fa: ldarg.0 IL_00fb: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>t__builder' IL_0100: ldloc.s V_4 IL_0102: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_0107: leave.s IL_011c } // end handler IL_0109: ldarg.0 IL_010a: ldc.i4.s -2 IL_010c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_0111: ldarg.0 IL_0112: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>t__builder' IL_0117: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_011c: ret } // end of method 'd__8'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__8'::'<>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 'd__8'::SetStateMachine } // end of class 'd__8' .class auto ansi sealed nested private beforefieldinit 'd__9' 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 '<>u__1' .method private hidebysig newslot virtual final instance void MoveNext() cil managed { .override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext // Code size 164 (0xa4) .maxstack 3 .locals init (int32 V_0, class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async V_1, valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 V_2, class [mscorlib]System.Exception V_3) IL_0000: ldarg.0 IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>1__state' IL_0006: stloc.0 IL_0007: ldarg.0 IL_0008: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>4__this' IL_000d: stloc.1 .try { IL_000e: ldloc.0 IL_000f: brfalse.s IL_0052 IL_0011: br.s IL_001d IL_0013: ldstr "Body" IL_0018: call void [mscorlib]System.Console::WriteLine(string) IL_001d: ldloc.1 IL_001e: call instance class [mscorlib]System.Threading.Tasks.Task`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async::SimpleBoolTaskMethod() IL_0023: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 class [mscorlib]System.Threading.Tasks.Task`1::GetAwaiter() IL_0028: stloc.2 IL_0029: ldloca.s V_2 IL_002b: call instance bool valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1::get_IsCompleted() IL_0030: brtrue.s IL_006e IL_0032: ldarg.0 IL_0033: ldc.i4.0 IL_0034: dup IL_0035: stloc.0 IL_0036: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>1__state' IL_003b: ldarg.0 IL_003c: ldloc.2 IL_003d: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>u__1' IL_0042: ldarg.0 IL_0043: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>t__builder' IL_0048: ldloca.s V_2 IL_004a: ldarg.0 IL_004b: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'>(!!0&, !!1&) IL_0050: leave.s IL_00a3 IL_0052: ldarg.0 IL_0053: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>u__1' IL_0058: stloc.2 IL_0059: ldarg.0 IL_005a: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>u__1' IL_005f: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1 IL_0065: ldarg.0 IL_0066: ldc.i4.m1 IL_0067: dup IL_0068: stloc.0 IL_0069: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>1__state' IL_006e: ldloca.s V_2 IL_0070: call instance !0 valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1::GetResult() IL_0075: brtrue.s IL_0013 IL_0077: leave.s IL_0090 } // end .try catch [mscorlib]System.Exception { IL_0079: stloc.3 IL_007a: ldarg.0 IL_007b: ldc.i4.s -2 IL_007d: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>1__state' IL_0082: ldarg.0 IL_0083: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>t__builder' IL_0088: ldloc.3 IL_0089: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) IL_008e: leave.s IL_00a3 } // end handler IL_0090: ldarg.0 IL_0091: ldc.i4.s -2 IL_0093: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>1__state' IL_0098: ldarg.0 IL_0099: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>t__builder' IL_009e: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() IL_00a3: ret } // end of method 'd__9'::MoveNext .method private hidebysig newslot virtual final instance void SetStateMachine(class [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine stateMachine) 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/'d__9'::'<>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 'd__9'::SetStateMachine } // end of class 'd__9' .method public hidebysig instance void SimpleVoidMethod() cil managed { .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+d__0.. // Code size 37 (0x25) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__0'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__0'>(!!0&) IL_0024: 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+d 5F 5F 31 00 00 ) // __1.. // Code size 37 (0x25) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__1'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__1'>(!!0&) IL_0024: ret } // end of method Async::VoidMethodWithoutAwait .method public hidebysig instance void EmptyVoidMethod() cil managed { .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+d__2.. // Code size 37 (0x25) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__2'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__2'>(!!0&) IL_0024: 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+d__3.. // Code size 37 (0x25) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__3'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__3'>(!!0&) IL_0024: 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+d__4.. // Code size 37 (0x25) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__4'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__4'>(!!0&) IL_0024: ret } // end of method Async::AwaitDefaultYieldAwaitable .method public hidebysig instance class [mscorlib]System.Threading.Tasks.Task SimpleVoidTaskMethod() cil managed { .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+d__ 35 00 00 ) // 5.. // Code size 49 (0x31) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Startd__5'>(!!0&) IL_0024: ldloca.s V_0 IL_0026: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__5'::'<>t__builder' IL_002b: call instance class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::get_Task() IL_0030: 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 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 54 61 73 6B 4D 65 74 68 // .Async+d 5F 5F 36 00 00 ) // __6.. // Code size 49 (0x31) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::Startd__6'>(!!0&) IL_0024: ldloca.s V_0 IL_0026: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__6'::'<>t__builder' IL_002b: call instance class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::get_Task() IL_0030: ret } // end of method Async::TaskMethodWithoutAwait .method public hidebysig instance class [mscorlib]System.Threading.Tasks.Task`1 SimpleBoolTaskMethod() cil managed { .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 42 6F // .Async+d__ 37 00 00 ) // 7.. // Code size 49 (0x31) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7' V_0, valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 V_1) IL_0000: ldloca.s V_0 IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::Create() IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_000c: ldloca.s V_0 IL_000e: ldc.i4.m1 IL_000f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>1__state' IL_0014: ldloc.0 IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_001a: stloc.1 IL_001b: ldloca.s V_1 IL_001d: ldloca.s V_0 IL_001f: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::Startd__7'>(!!0&) IL_0024: ldloca.s V_0 IL_0026: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__7'::'<>t__builder' IL_002b: call instance class [mscorlib]System.Threading.Tasks.Task`1 valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::get_Task() IL_0030: ret } // end of method Async::SimpleBoolTaskMethod .method public hidebysig instance void TwoAwaitsWithDifferentAwaiterTypes() cil managed { .custom instance void [mscorlib]System.Runtime.CompilerServices.AsyncStateMachineAttribute::.ctor(class [mscorlib]System.Type) = ( 01 00 5C 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+d__8. 00 ) // Code size 45 (0x2d) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8' 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/'d__8'::'<>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/'d__8'::'<>t__builder' IL_0014: ldloca.s V_0 IL_0016: ldc.i4.m1 IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>1__state' IL_001c: ldloc.0 IL_001d: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__8'::'<>t__builder' IL_0022: stloc.1 IL_0023: ldloca.s V_1 IL_0025: ldloca.s V_0 IL_0027: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__8'>(!!0&) IL_002c: 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 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 41 77 61 69 74 49 6E 4C // .Async+d__ 39 00 00 ) // 9.. // Code size 45 (0x2d) .maxstack 2 .locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9' 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/'d__9'::'<>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/'d__9'::'<>t__builder' IL_0014: ldloca.s V_0 IL_0016: ldc.i4.m1 IL_0017: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>1__state' IL_001c: ldloc.0 IL_001d: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'d__9'::'<>t__builder' IL_0022: stloc.1 IL_0023: ldloca.s V_1 IL_0025: ldloca.s V_0 IL_0027: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::Startd__9'>(!!0&) IL_002c: 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 ***********************