terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
TaskAwaiter.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000486 RID: 1158
9 public readonly struct TaskAwaiter : ICriticalNotifyCompletion
10 {
11 // Token: 0x0600223A RID: 8762 RVA: 0x0004D198 File Offset: 0x0004B398
13 {
15 }
16
17 // Token: 0x17000473 RID: 1139
18 // (get) Token: 0x0600223B RID: 8763 RVA: 0x0004D1AC File Offset: 0x0004B3AC
19 public bool IsCompleted
20 {
21 get
22 {
23 bool flag;
24 return flag;
25 }
26 }
27
28 // Token: 0x0600223C RID: 8764 RVA: 0x0004D1BC File Offset: 0x0004B3BC
30 {
31 }
32
33 // Token: 0x0600223D RID: 8765 RVA: 0x0004D1CC File Offset: 0x0004B3CC
35 public void GetResult()
36 {
37 }
38
39 // Token: 0x0600223E RID: 8766 RVA: 0x0004D1DC File Offset: 0x0004B3DC
41 internal static void ValidateEnd(Task task)
42 {
43 int stateFlags = task.m_stateFlags;
44 }
45
46 // Token: 0x0600223F RID: 8767 RVA: 0x0004D1F8 File Offset: 0x0004B3F8
49 {
50 bool isCompleted = task.IsCompleted;
51 bool flag = task.NotifyDebuggerOfWaitCompletionIfNecessary();
52 bool isCompletedSuccessfully = task.IsCompletedSuccessfully;
53 }
54
55 // Token: 0x06002240 RID: 8768 RVA: 0x0004D224 File Offset: 0x0004B424
57 private static void ThrowForNonSuccess(Task task)
58 {
59 TaskStatus status = task.Status;
60 }
61
62 // Token: 0x06002241 RID: 8769 RVA: 0x0004D24C File Offset: 0x0004B44C
72
73 // Token: 0x06002242 RID: 8770 RVA: 0x0004D278 File Offset: 0x0004B478
75 {
76 /*
77An exception occurred when decompiling this method (06002242)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Action System.Runtime.CompilerServices.TaskAwaiter::OutputWaitEtwEvents(System.Threading.Tasks.Task,System.Action)
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 IL_000C:
84 stloc:int64(var_3_0D, ldc.i4:int64(0))
85 call:void(TaskTrace::TaskWaitBegin_Asynchronous, ldloc:int32(var_2), ldloc:int64[exp:int32](var_3_0D), ldloc:int32(var_4))
86}
87
88 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
89 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
90 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
91 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
92 --- End of inner exception stack trace ---
93 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
94 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
95*/;
96 }
97
98 // Token: 0x040012BD RID: 4797
100
101 // Token: 0x02000487 RID: 1159
103 private sealed class <>c__DisplayClass11_0
104 {
105 // Token: 0x06002243 RID: 8771 RVA: 0x0004D29C File Offset: 0x0004B49C
107 {
108 }
109
110 // Token: 0x06002244 RID: 8772 RVA: 0x0004D2B0 File Offset: 0x0004B4B0
112 {
113 bool enabled = TaskTrace.Enabled;
114 if (!true)
115 {
116 }
117 if (!true)
118 {
119 }
120 }
121
122 // Token: 0x040012BE RID: 4798
123 public Task task;
124
125 // Token: 0x040012BF RID: 4799
126 public Action continuation;
127 }
128 }
129}
class f__AnonymousType0<< Count > j__TPar
static Action OutputWaitEtwEvents(Task task, Action continuation)
static void HandleNonSuccessAndDebuggerNotification(Task task)
static void OnCompletedInternal(Task task, Action continuation, bool continueOnCapturedContext, bool flowExecutionContext)
void UnsafeOnCompleted(Action continuation)