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
AsyncTaskMethodBuilder.2.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000490 RID: 1168
10 {
11 // Token: 0x06002267 RID: 8807 RVA: 0x0000207A File Offset: 0x0000027A
13 {
14 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
15 }
16
17 // Token: 0x06002268 RID: 8808 RVA: 0x0004D600 File Offset: 0x0004B800
26
27 // Token: 0x06002269 RID: 8809 RVA: 0x0004D62C File Offset: 0x0004B82C
31
32 // Token: 0x0600226A RID: 8810 RVA: 0x0004D63C File Offset: 0x0004B83C
38
39 // Token: 0x17000479 RID: 1145
40 // (get) Token: 0x0600226B RID: 8811 RVA: 0x0004D66C File Offset: 0x0004B86C
42 {
43 get
44 {
45 /*
46An exception occurred when decompiling this method (0600226B)
47
48ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task`1<TResult> System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::get_Task()
49
50 ---> System.Exception: Basic block has to end with unconditional control flow.
51{
52 Block_0:
53 stloc:Task`1(var_0_0E, ldfld:class System.Threading.Tasks.Task`1<!TResult>[exp:Task`1](AsyncTaskMethodBuilder`1::m_task, ldloc:valuetype System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1&(this)))
54 stfld:class System.Threading.Tasks.Task`1<!TResult>(AsyncTaskMethodBuilder`1::m_task, ldloc:valuetype System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1&(this), ldloc:valuetype System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1&[exp:class System.Threading.Tasks.Task`1<!TResult>](this))
55}
56
57 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
58 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
59 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
60 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
61 --- End of inner exception stack trace ---
62 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
63 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
64*/;
65 }
66 }
67
68 // Token: 0x0600226C RID: 8812 RVA: 0x0004D690 File Offset: 0x0004B890
69 public void SetResult(TResult result)
70 {
71 Task task = this.m_task;
72 if (task != null)
73 {
75 int id = task.Id;
76 if (!true)
77 {
78 }
79 if (true)
80 {
81 global::System.Threading.Tasks.Task.RemoveFromActiveTasks(task.Id);
82 }
83 return;
84 }
85 }
86
87 // Token: 0x0600226D RID: 8813 RVA: 0x0004D6D8 File Offset: 0x0004B8D8
89 {
90 long num;
91 if (this.m_task != null)
92 {
93 num = 0L;
94 return;
95 }
96 this.m_task = num;
97 }
98
99 // Token: 0x0600226E RID: 8814 RVA: 0x0004D6F8 File Offset: 0x0004B8F8
101 {
102 while (exception == null || this.m_task != null)
103 {
104 }
105 bool flag = this.Task.TrySetException(exception);
106 }
107
108 // Token: 0x0600226F RID: 8815 RVA: 0x0004D728 File Offset: 0x0004B928
109 internal static Task<TResult> GetTaskForResult(TResult result)
110 {
111 if (!true)
112 {
113 }
114 return 1;
115 }
116
117 // Token: 0x06002270 RID: 8816 RVA: 0x0004D73C File Offset: 0x0004B93C
118 // Note: this type is marked as 'beforefieldinit'.
120 {
121 if (!true)
122 {
123 }
124 }
125
126 // Token: 0x040012CC RID: 4812
128
129 // Token: 0x040012CD RID: 4813
131
132 // Token: 0x040012CE RID: 4814
134 }
135}
class f__AnonymousType0<< Count > j__TPar
bool TrySetException(object exceptionObject)
Definition Task.2.cs:112
void AwaitUnsafeOnCompleted< TAwaiter, TStateMachine >(TAwaiter awaiter, TStateMachine stateMachine)