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.
1348 lines
92 KiB
1348 lines
92 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 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 |
|
// MVID: {604EE12E-00E7-4053-9C66-A0F3AD8C3B73} |
|
.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: 0x00670000 |
|
|
|
|
|
// =============== 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 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 184 (0xb8) |
|
.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/'<SimpleVoidMethod>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/'<SimpleVoidMethod>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/'<SimpleVoidMethod>d__0'::'<>u__1' |
|
IL_0046: ldarg.0 |
|
IL_0047: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_004c: ldloca.s V_1 |
|
IL_004e: ldarg.0 |
|
IL_004f: 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_0054: leave.s IL_00b7 |
|
|
|
IL_0056: ldarg.0 |
|
IL_0057: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>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/'<SimpleVoidMethod>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/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_0072: ldloca.s V_1 |
|
IL_0074: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_0079: ldloca.s V_1 |
|
IL_007b: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0081: ldstr "After" |
|
IL_0086: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_008b: leave.s IL_00a4 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_008d: stloc.2 |
|
IL_008e: ldarg.0 |
|
IL_008f: ldc.i4.s -2 |
|
IL_0091: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_0096: ldarg.0 |
|
IL_0097: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_009c: ldloc.2 |
|
IL_009d: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_00a2: leave.s IL_00b7 |
|
|
|
} // end handler |
|
IL_00a4: ldarg.0 |
|
IL_00a5: ldc.i4.s -2 |
|
IL_00a7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_00ac: ldarg.0 |
|
IL_00ad: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__0'::'<>t__builder' |
|
IL_00b2: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_00b7: ret |
|
} // end of method '<SimpleVoidMethod>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/'<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__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/'<VoidMethodWithoutAwait>d__1'::'<>1__state' |
|
IL_0015: ldarg.0 |
|
IL_0016: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>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/'<VoidMethodWithoutAwait>d__1'::'<>1__state' |
|
IL_002b: ldarg.0 |
|
IL_002c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__1'::'<>t__builder' |
|
IL_0031: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_0036: ret |
|
} // end of method '<VoidMethodWithoutAwait>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/'<VoidMethodWithoutAwait>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 '<VoidMethodWithoutAwait>d__1'::SetStateMachine |
|
|
|
} // end of class '<VoidMethodWithoutAwait>d__1' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<EmptyVoidMethod>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/'<EmptyVoidMethod>d__2'::'<>1__state' |
|
IL_000b: ldarg.0 |
|
IL_000c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>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/'<EmptyVoidMethod>d__2'::'<>1__state' |
|
IL_0021: ldarg.0 |
|
IL_0022: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__2'::'<>t__builder' |
|
IL_0027: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_002c: ret |
|
} // end of method '<EmptyVoidMethod>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/'<EmptyVoidMethod>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 '<EmptyVoidMethod>d__2'::SetStateMachine |
|
|
|
} // end of class '<EmptyVoidMethod>d__2' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<AwaitYield>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 153 (0x99) |
|
.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/'<AwaitYield>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/'<AwaitYield>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/'<AwaitYield>d__3'::'<>u__1' |
|
IL_0031: ldarg.0 |
|
IL_0032: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__3'::'<>t__builder' |
|
IL_0037: ldloca.s V_1 |
|
IL_0039: ldarg.0 |
|
IL_003a: 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__3'>(!!0&, |
|
!!1&) |
|
IL_003f: leave.s IL_0098 |
|
|
|
IL_0041: ldarg.0 |
|
IL_0042: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>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/'<AwaitYield>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/'<AwaitYield>d__3'::'<>1__state' |
|
IL_005d: ldloca.s V_1 |
|
IL_005f: call instance void [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::GetResult() |
|
IL_0064: ldloca.s V_1 |
|
IL_0066: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_006c: leave.s IL_0085 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_006e: stloc.3 |
|
IL_006f: ldarg.0 |
|
IL_0070: ldc.i4.s -2 |
|
IL_0072: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__3'::'<>1__state' |
|
IL_0077: ldarg.0 |
|
IL_0078: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__3'::'<>t__builder' |
|
IL_007d: ldloc.3 |
|
IL_007e: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0083: leave.s IL_0098 |
|
|
|
} // end handler |
|
IL_0085: ldarg.0 |
|
IL_0086: ldc.i4.s -2 |
|
IL_0088: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__3'::'<>1__state' |
|
IL_008d: ldarg.0 |
|
IL_008e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__3'::'<>t__builder' |
|
IL_0093: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_0098: ret |
|
} // end of method '<AwaitYield>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/'<AwaitYield>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 '<AwaitYield>d__3'::SetStateMachine |
|
|
|
} // end of class '<AwaitYield>d__3' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<AwaitDefaultYieldAwaitable>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 157 (0x9d) |
|
.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/'<AwaitDefaultYieldAwaitable>d__4'::'<>1__state' |
|
IL_0006: stloc.0 |
|
.try |
|
{ |
|
IL_0007: ldloc.0 |
|
IL_0008: brfalse.s IL_0045 |
|
|
|
IL_000a: ldloca.s V_2 |
|
IL_000c: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable |
|
IL_0012: ldloc.2 |
|
IL_0013: stloc.2 |
|
IL_0014: ldloca.s V_2 |
|
IL_0016: call instance valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter [mscorlib]System.Runtime.CompilerServices.YieldAwaitable::GetAwaiter() |
|
IL_001b: stloc.1 |
|
IL_001c: ldloca.s V_1 |
|
IL_001e: call instance bool [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::get_IsCompleted() |
|
IL_0023: brtrue.s IL_0061 |
|
|
|
IL_0025: ldarg.0 |
|
IL_0026: ldc.i4.0 |
|
IL_0027: dup |
|
IL_0028: stloc.0 |
|
IL_0029: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>1__state' |
|
IL_002e: ldarg.0 |
|
IL_002f: ldloc.1 |
|
IL_0030: stfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>u__1' |
|
IL_0035: ldarg.0 |
|
IL_0036: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>t__builder' |
|
IL_003b: ldloca.s V_1 |
|
IL_003d: ldarg.0 |
|
IL_003e: 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__4'>(!!0&, |
|
!!1&) |
|
IL_0043: leave.s IL_009c |
|
|
|
IL_0045: ldarg.0 |
|
IL_0046: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>u__1' |
|
IL_004b: stloc.1 |
|
IL_004c: ldarg.0 |
|
IL_004d: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>u__1' |
|
IL_0052: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_0058: ldarg.0 |
|
IL_0059: ldc.i4.m1 |
|
IL_005a: dup |
|
IL_005b: stloc.0 |
|
IL_005c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>1__state' |
|
IL_0061: ldloca.s V_1 |
|
IL_0063: call instance void [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter::GetResult() |
|
IL_0068: ldloca.s V_1 |
|
IL_006a: initobj [mscorlib]System.Runtime.CompilerServices.YieldAwaitable/YieldAwaiter |
|
IL_0070: leave.s IL_0089 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_0072: stloc.3 |
|
IL_0073: ldarg.0 |
|
IL_0074: ldc.i4.s -2 |
|
IL_0076: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>1__state' |
|
IL_007b: ldarg.0 |
|
IL_007c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>t__builder' |
|
IL_0081: ldloc.3 |
|
IL_0082: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0087: leave.s IL_009c |
|
|
|
} // end handler |
|
IL_0089: ldarg.0 |
|
IL_008a: ldc.i4.s -2 |
|
IL_008c: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>1__state' |
|
IL_0091: ldarg.0 |
|
IL_0092: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__4'::'<>t__builder' |
|
IL_0097: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_009c: ret |
|
} // end of method '<AwaitDefaultYieldAwaitable>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/'<AwaitDefaultYieldAwaitable>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 '<AwaitDefaultYieldAwaitable>d__4'::SetStateMachine |
|
|
|
} // end of class '<AwaitDefaultYieldAwaitable>d__4' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<SimpleVoidTaskMethod>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 184 (0xb8) |
|
.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/'<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>d__5'::'<>u__1' |
|
IL_0046: ldarg.0 |
|
IL_0047: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'::'<>t__builder' |
|
IL_004c: ldloca.s V_1 |
|
IL_004e: ldarg.0 |
|
IL_004f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'>(!!0&, |
|
!!1&) |
|
IL_0054: leave.s IL_00b7 |
|
|
|
IL_0056: ldarg.0 |
|
IL_0057: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>d__5'::'<>1__state' |
|
IL_0072: ldloca.s V_1 |
|
IL_0074: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_0079: ldloca.s V_1 |
|
IL_007b: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0081: ldstr "After" |
|
IL_0086: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_008b: leave.s IL_00a4 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_008d: stloc.2 |
|
IL_008e: ldarg.0 |
|
IL_008f: ldc.i4.s -2 |
|
IL_0091: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'::'<>1__state' |
|
IL_0096: ldarg.0 |
|
IL_0097: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'::'<>t__builder' |
|
IL_009c: ldloc.2 |
|
IL_009d: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_00a2: leave.s IL_00b7 |
|
|
|
} // end handler |
|
IL_00a4: ldarg.0 |
|
IL_00a5: ldc.i4.s -2 |
|
IL_00a7: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'::'<>1__state' |
|
IL_00ac: ldarg.0 |
|
IL_00ad: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'::'<>t__builder' |
|
IL_00b2: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetResult() |
|
IL_00b7: ret |
|
} // end of method '<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>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 '<SimpleVoidTaskMethod>d__5'::SetStateMachine |
|
|
|
} // end of class '<SimpleVoidTaskMethod>d__5' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<TaskMethodWithoutAwait>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/'<TaskMethodWithoutAwait>d__6'::'<>1__state' |
|
IL_0015: ldarg.0 |
|
IL_0016: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>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/'<TaskMethodWithoutAwait>d__6'::'<>1__state' |
|
IL_002b: ldarg.0 |
|
IL_002c: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__6'::'<>t__builder' |
|
IL_0031: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder::SetResult() |
|
IL_0036: ret |
|
} // end of method '<TaskMethodWithoutAwait>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/'<TaskMethodWithoutAwait>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 '<TaskMethodWithoutAwait>d__6'::SetStateMachine |
|
|
|
} // end of class '<TaskMethodWithoutAwait>d__6' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<SimpleBoolTaskMethod>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<bool> '<>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 187 (0xbb) |
|
.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/'<SimpleBoolTaskMethod>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/'<SimpleBoolTaskMethod>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/'<SimpleBoolTaskMethod>d__7'::'<>u__1' |
|
IL_0046: ldarg.0 |
|
IL_0047: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>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<bool>::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'>(!!0&, |
|
!!1&) |
|
IL_0054: leave.s IL_00ba |
|
|
|
IL_0056: ldarg.0 |
|
IL_0057: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>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/'<SimpleBoolTaskMethod>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/'<SimpleBoolTaskMethod>d__7'::'<>1__state' |
|
IL_0072: ldloca.s V_2 |
|
IL_0074: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_0079: ldloca.s V_2 |
|
IL_007b: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_0081: ldstr "After" |
|
IL_0086: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_008b: ldc.i4.1 |
|
IL_008c: stloc.1 |
|
IL_008d: leave.s IL_00a6 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_008f: stloc.3 |
|
IL_0090: ldarg.0 |
|
IL_0091: ldc.i4.s -2 |
|
IL_0093: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'::'<>1__state' |
|
IL_0098: ldarg.0 |
|
IL_0099: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'::'<>t__builder' |
|
IL_009e: ldloc.3 |
|
IL_009f: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::SetException(class [mscorlib]System.Exception) |
|
IL_00a4: leave.s IL_00ba |
|
|
|
} // end handler |
|
IL_00a6: ldarg.0 |
|
IL_00a7: ldc.i4.s -2 |
|
IL_00a9: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'::'<>1__state' |
|
IL_00ae: ldarg.0 |
|
IL_00af: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'::'<>t__builder' |
|
IL_00b4: ldloc.1 |
|
IL_00b5: call instance void valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::SetResult(!0) |
|
IL_00ba: ret |
|
} // end of method '<SimpleBoolTaskMethod>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<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'::'<>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__7'::SetStateMachine |
|
|
|
} // end of class '<SimpleBoolTaskMethod>d__7' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<TwoAwaitsWithDifferentAwaiterTypes>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<bool> '<>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 297 (0x129) |
|
.maxstack 3 |
|
.locals init (int32 V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<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/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_0006: stloc.0 |
|
.try |
|
{ |
|
IL_0007: ldloc.0 |
|
IL_0008: brfalse.s IL_0058 |
|
|
|
IL_000a: ldloc.0 |
|
IL_000b: ldc.i4.1 |
|
IL_000c: beq IL_00c7 |
|
|
|
IL_0011: ldstr "Before" |
|
IL_0016: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_001b: ldarg.0 |
|
IL_001c: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>4__this' |
|
IL_0021: callvirt instance class [mscorlib]System.Threading.Tasks.Task`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async::SimpleBoolTaskMethod() |
|
IL_0026: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<!0> class [mscorlib]System.Threading.Tasks.Task`1<bool>::GetAwaiter() |
|
IL_002b: stloc.1 |
|
IL_002c: ldloca.s V_1 |
|
IL_002e: call instance bool valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::get_IsCompleted() |
|
IL_0033: brtrue.s IL_0074 |
|
|
|
IL_0035: ldarg.0 |
|
IL_0036: ldc.i4.0 |
|
IL_0037: dup |
|
IL_0038: stloc.0 |
|
IL_0039: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_003e: ldarg.0 |
|
IL_003f: ldloc.1 |
|
IL_0040: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>u__1' |
|
IL_0045: ldarg.0 |
|
IL_0046: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>t__builder' |
|
IL_004b: ldloca.s V_1 |
|
IL_004d: ldarg.0 |
|
IL_004e: 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__8'>(!!0&, |
|
!!1&) |
|
IL_0053: leave IL_0128 |
|
|
|
IL_0058: ldarg.0 |
|
IL_0059: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>u__1' |
|
IL_005e: stloc.1 |
|
IL_005f: ldarg.0 |
|
IL_0060: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>u__1' |
|
IL_0065: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_006b: ldarg.0 |
|
IL_006c: ldc.i4.m1 |
|
IL_006d: dup |
|
IL_006e: stloc.0 |
|
IL_006f: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_0074: ldloca.s V_1 |
|
IL_0076: call instance !0 valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::GetResult() |
|
IL_007b: ldloca.s V_1 |
|
IL_007d: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_0083: brfalse.s IL_00f2 |
|
|
|
IL_0085: ldc.r8 1. |
|
IL_008e: call valuetype [mscorlib]System.TimeSpan [mscorlib]System.TimeSpan::FromSeconds(float64) |
|
IL_0093: call class [mscorlib]System.Threading.Tasks.Task [mscorlib]System.Threading.Tasks.Task::Delay(valuetype [mscorlib]System.TimeSpan) |
|
IL_0098: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter [mscorlib]System.Threading.Tasks.Task::GetAwaiter() |
|
IL_009d: stloc.2 |
|
IL_009e: ldloca.s V_2 |
|
IL_00a0: call instance bool [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::get_IsCompleted() |
|
IL_00a5: brtrue.s IL_00e3 |
|
|
|
IL_00a7: ldarg.0 |
|
IL_00a8: ldc.i4.1 |
|
IL_00a9: dup |
|
IL_00aa: stloc.0 |
|
IL_00ab: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_00b0: ldarg.0 |
|
IL_00b1: ldloc.2 |
|
IL_00b2: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>u__2' |
|
IL_00b7: ldarg.0 |
|
IL_00b8: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>t__builder' |
|
IL_00bd: ldloca.s V_2 |
|
IL_00bf: ldarg.0 |
|
IL_00c0: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::AwaitUnsafeOnCompleted<valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter,valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'>(!!0&, |
|
!!1&) |
|
IL_00c5: leave.s IL_0128 |
|
|
|
IL_00c7: ldarg.0 |
|
IL_00c8: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>u__2' |
|
IL_00cd: stloc.2 |
|
IL_00ce: ldarg.0 |
|
IL_00cf: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>u__2' |
|
IL_00d4: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_00da: ldarg.0 |
|
IL_00db: ldc.i4.m1 |
|
IL_00dc: dup |
|
IL_00dd: stloc.0 |
|
IL_00de: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_00e3: ldloca.s V_2 |
|
IL_00e5: call instance void [mscorlib]System.Runtime.CompilerServices.TaskAwaiter::GetResult() |
|
IL_00ea: ldloca.s V_2 |
|
IL_00ec: initobj [mscorlib]System.Runtime.CompilerServices.TaskAwaiter |
|
IL_00f2: ldstr "After" |
|
IL_00f7: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_00fc: leave.s IL_0115 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_00fe: stloc.3 |
|
IL_00ff: ldarg.0 |
|
IL_0100: ldc.i4.s -2 |
|
IL_0102: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_0107: ldarg.0 |
|
IL_0108: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>t__builder' |
|
IL_010d: ldloc.3 |
|
IL_010e: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0113: leave.s IL_0128 |
|
|
|
} // end handler |
|
IL_0115: ldarg.0 |
|
IL_0116: ldc.i4.s -2 |
|
IL_0118: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_011d: ldarg.0 |
|
IL_011e: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>t__builder' |
|
IL_0123: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_0128: ret |
|
} // end of method '<TwoAwaitsWithDifferentAwaiterTypes>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/'<TwoAwaitsWithDifferentAwaiterTypes>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 '<TwoAwaitsWithDifferentAwaiterTypes>d__8'::SetStateMachine |
|
|
|
} // end of class '<TwoAwaitsWithDifferentAwaiterTypes>d__8' |
|
|
|
.class auto ansi sealed nested private beforefieldinit '<AwaitInLoopCondition>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<bool> '<>u__1' |
|
.method private hidebysig newslot virtual final |
|
instance void MoveNext() cil managed |
|
{ |
|
.override [mscorlib]System.Runtime.CompilerServices.IAsyncStateMachine::MoveNext |
|
// Code size 170 (0xaa) |
|
.maxstack 3 |
|
.locals init (int32 V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> V_1, |
|
class [mscorlib]System.Exception V_2) |
|
IL_0000: ldarg.0 |
|
IL_0001: ldfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>1__state' |
|
IL_0006: stloc.0 |
|
.try |
|
{ |
|
IL_0007: ldloc.0 |
|
IL_0008: brfalse.s IL_0050 |
|
|
|
IL_000a: br.s IL_0016 |
|
|
|
IL_000c: ldstr "Body" |
|
IL_0011: call void [mscorlib]System.Console::WriteLine(string) |
|
IL_0016: ldarg.0 |
|
IL_0017: ldfld class ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>4__this' |
|
IL_001c: callvirt instance class [mscorlib]System.Threading.Tasks.Task`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async::SimpleBoolTaskMethod() |
|
IL_0021: callvirt instance valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<!0> class [mscorlib]System.Threading.Tasks.Task`1<bool>::GetAwaiter() |
|
IL_0026: stloc.1 |
|
IL_0027: ldloca.s V_1 |
|
IL_0029: call instance bool valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::get_IsCompleted() |
|
IL_002e: brtrue.s IL_006c |
|
|
|
IL_0030: ldarg.0 |
|
IL_0031: ldc.i4.0 |
|
IL_0032: dup |
|
IL_0033: stloc.0 |
|
IL_0034: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>1__state' |
|
IL_0039: ldarg.0 |
|
IL_003a: ldloc.1 |
|
IL_003b: stfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>u__1' |
|
IL_0040: ldarg.0 |
|
IL_0041: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>t__builder' |
|
IL_0046: ldloca.s V_1 |
|
IL_0048: ldarg.0 |
|
IL_0049: 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__9'>(!!0&, |
|
!!1&) |
|
IL_004e: leave.s IL_00a9 |
|
|
|
IL_0050: ldarg.0 |
|
IL_0051: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>u__1' |
|
IL_0056: stloc.1 |
|
IL_0057: ldarg.0 |
|
IL_0058: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>u__1' |
|
IL_005d: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_0063: ldarg.0 |
|
IL_0064: ldc.i4.m1 |
|
IL_0065: dup |
|
IL_0066: stloc.0 |
|
IL_0067: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>1__state' |
|
IL_006c: ldloca.s V_1 |
|
IL_006e: call instance !0 valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool>::GetResult() |
|
IL_0073: ldloca.s V_1 |
|
IL_0075: initobj valuetype [mscorlib]System.Runtime.CompilerServices.TaskAwaiter`1<bool> |
|
IL_007b: brtrue.s IL_000c |
|
|
|
IL_007d: leave.s IL_0096 |
|
|
|
} // end .try |
|
catch [mscorlib]System.Exception |
|
{ |
|
IL_007f: stloc.2 |
|
IL_0080: ldarg.0 |
|
IL_0081: ldc.i4.s -2 |
|
IL_0083: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>1__state' |
|
IL_0088: ldarg.0 |
|
IL_0089: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>t__builder' |
|
IL_008e: ldloc.2 |
|
IL_008f: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetException(class [mscorlib]System.Exception) |
|
IL_0094: leave.s IL_00a9 |
|
|
|
} // end handler |
|
IL_0096: ldarg.0 |
|
IL_0097: ldc.i4.s -2 |
|
IL_0099: stfld int32 ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>1__state' |
|
IL_009e: ldarg.0 |
|
IL_009f: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__9'::'<>t__builder' |
|
IL_00a4: call instance void [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder::SetResult() |
|
IL_00a9: ret |
|
} // end of method '<AwaitInLoopCondition>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/'<AwaitInLoopCondition>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 '<AwaitInLoopCondition>d__9'::SetStateMachine |
|
|
|
} // end of class '<AwaitInLoopCondition>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+<SimpleVo |
|
69 64 4D 65 74 68 6F 64 3E 64 5F 5F 30 00 00 ) // idMethod>d__0.. |
|
// Code size 37 (0x25) |
|
.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: 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/'<SimpleVoidMethod>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/'<SimpleVoidMethod>d__0'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidMethod>d__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+<VoidMeth |
|
6F 64 57 69 74 68 6F 75 74 41 77 61 69 74 3E 64 // odWithoutAwait>d |
|
5F 5F 31 00 00 ) // __1.. |
|
// Code size 37 (0x25) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>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/'<VoidMethodWithoutAwait>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/'<VoidMethodWithoutAwait>d__1'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<VoidMethodWithoutAwait>d__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+<EmptyVoi |
|
64 4D 65 74 68 6F 64 3E 64 5F 5F 32 00 00 ) // dMethod>d__2.. |
|
// Code size 37 (0x25) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>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/'<EmptyVoidMethod>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/'<EmptyVoidMethod>d__2'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<EmptyVoidMethod>d__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+<AwaitYie |
|
6C 64 3E 64 5F 5F 33 00 00 ) // ld>d__3.. |
|
// Code size 37 (0x25) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>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/'<AwaitYield>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/'<AwaitYield>d__3'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitYield>d__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+<AwaitDef |
|
61 75 6C 74 59 69 65 6C 64 41 77 61 69 74 61 62 // aultYieldAwaitab |
|
6C 65 3E 64 5F 5F 34 00 00 ) // le>d__4.. |
|
// Code size 37 (0x25) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>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/'<AwaitDefaultYieldAwaitable>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/'<AwaitDefaultYieldAwaitable>d__4'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitDefaultYieldAwaitable>d__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+<SimpleVo |
|
69 64 54 61 73 6B 4D 65 74 68 6F 64 3E 64 5F 5F // idTaskMethod>d__ |
|
35 00 00 ) // 5.. |
|
// Code size 49 (0x31) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>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/'<SimpleVoidTaskMethod>d__5'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>d__5'>(!!0&) |
|
IL_0024: ldloca.s V_0 |
|
IL_0026: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleVoidTaskMethod>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+<TaskMeth |
|
6F 64 57 69 74 68 6F 75 74 41 77 61 69 74 3E 64 // odWithoutAwait>d |
|
5F 5F 36 00 00 ) // __6.. |
|
// Code size 49 (0x31) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>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/'<TaskMethodWithoutAwait>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/'<TaskMethodWithoutAwait>d__6'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>d__6'>(!!0&) |
|
IL_0024: ldloca.s V_0 |
|
IL_0026: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TaskMethodWithoutAwait>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<bool> |
|
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+<SimpleBo |
|
6F 6C 54 61 73 6B 4D 65 74 68 6F 64 3E 64 5F 5F // olTaskMethod>d__ |
|
37 00 00 ) // 7.. |
|
// Code size 49 (0x31) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7' V_0, |
|
valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> V_1) |
|
IL_0000: ldloca.s V_0 |
|
IL_0002: call valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<!0> valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::Create() |
|
IL_0007: stfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>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/'<SimpleBoolTaskMethod>d__7'::'<>1__state' |
|
IL_0014: ldloc.0 |
|
IL_0015: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>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<bool>::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'>(!!0&) |
|
IL_0024: ldloca.s V_0 |
|
IL_0026: ldflda valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool> ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<SimpleBoolTaskMethod>d__7'::'<>t__builder' |
|
IL_002b: call instance class [mscorlib]System.Threading.Tasks.Task`1<!0> valuetype [mscorlib]System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>::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+<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 38 00 // aiterTypes>d__8. |
|
00 ) |
|
// Code size 45 (0x2d) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>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/'<TwoAwaitsWithDifferentAwaiterTypes>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/'<TwoAwaitsWithDifferentAwaiterTypes>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/'<TwoAwaitsWithDifferentAwaiterTypes>d__8'::'<>1__state' |
|
IL_001c: ldloc.0 |
|
IL_001d: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<TwoAwaitsWithDifferentAwaiterTypes>d__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+<AwaitInL |
|
6F 6F 70 43 6F 6E 64 69 74 69 6F 6E 3E 64 5F 5F // oopCondition>d__ |
|
39 00 00 ) // 9.. |
|
// Code size 45 (0x2d) |
|
.maxstack 2 |
|
.locals init (valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>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/'<AwaitInLoopCondition>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/'<AwaitInLoopCondition>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/'<AwaitInLoopCondition>d__9'::'<>1__state' |
|
IL_001c: ldloc.0 |
|
IL_001d: ldfld valuetype [mscorlib]System.Runtime.CompilerServices.AsyncVoidMethodBuilder ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>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::Start<valuetype ICSharpCode.Decompiler.Tests.TestCases.Pretty.Async/'<AwaitInLoopCondition>d__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 ***********************
|
|
|