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
TaskExceptionHolder.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200024B RID: 587
9 internal class TaskExceptionHolder
10 {
11 // Token: 0x06001423 RID: 5155 RVA: 0x0002A534 File Offset: 0x00028734
13 {
14 }
15
16 // Token: 0x06001424 RID: 5156 RVA: 0x0002A548 File Offset: 0x00028748
18 {
19 }
20
21 // Token: 0x06001425 RID: 5157 RVA: 0x0002A558 File Offset: 0x00028758
22 protected override void Finalize()
23 {
24 if (this.m_faultExceptions != null && !this.m_isHandled)
25 {
28 Task task = this.m_task;
29 }
30 base.Finalize();
31 }
32
33 // Token: 0x170001F6 RID: 502
34 // (get) Token: 0x06001426 RID: 5158 RVA: 0x0002A5BC File Offset: 0x000287BC
35 internal bool ContainsFaultList
36 {
37 get
38 {
39 /*
40An exception occurred when decompiling this method (06001426)
41
42ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Threading.Tasks.TaskExceptionHolder::get_ContainsFaultList()
43
44 ---> System.Exception: Basic block has to end with unconditional control flow.
45{
46 Block_0:
47 stloc:class System.Collections.Generic.LowLevelListWithIList`1<class System.Runtime.ExceptionServices.ExceptionDispatchInfo>(var_0_06, ldfld:class System.Collections.Generic.LowLevelListWithIList`1<class System.Runtime.ExceptionServices.ExceptionDispatchInfo>(TaskExceptionHolder::m_faultExceptions, ldloc:TaskExceptionHolder(this)))
48}
49
50 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
51 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
52 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
53 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
54 --- End of inner exception stack trace ---
55 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
56 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
57*/;
58 }
59 }
60
61 // Token: 0x06001427 RID: 5159 RVA: 0x0002A5D0 File Offset: 0x000287D0
62 internal void Add(object exceptionObject, bool representsCancellation)
63 {
64 this.SetCancellationException(exceptionObject);
65 }
66
67 // Token: 0x06001428 RID: 5160 RVA: 0x0002A5EC File Offset: 0x000287EC
69 {
70 if (exceptionObject != null)
71 {
72 return;
73 }
74 long num = 0L;
76 }
77
78 // Token: 0x06001429 RID: 5161 RVA: 0x0002A610 File Offset: 0x00028810
80 {
81 if (this.m_faultExceptions == null)
82 {
83 }
84 if (exceptionObject != null)
85 {
86 }
87 if (exceptionObject != null)
88 {
89 return;
90 }
91 if (exceptionObject != null)
92 {
93 this.MarkAsUnhandled();
94 return;
95 }
96 }
97
98 // Token: 0x0600142A RID: 5162 RVA: 0x0002A674 File Offset: 0x00028874
99 private void MarkAsUnhandled()
100 {
101 if (this.m_isHandled)
102 {
104 }
105 }
106
107 // Token: 0x0600142B RID: 5163 RVA: 0x0002A690 File Offset: 0x00028890
109 {
110 bool isHandled = this.m_isHandled;
111 GC.SuppressFinalize(this);
112 this.m_isHandled = true;
113 }
114
115 // Token: 0x0600142C RID: 5164 RVA: 0x0002A6B4 File Offset: 0x000288B4
117 {
119 this.MarkAsHandled(calledFromFinalizer);
120 if (includeThisException != null)
121 {
122 long num = 0L;
123 Exception exception = faultExceptions[(int)num].m_Exception;
124 if ((exception != null && exception == null) || includeThisException != null)
125 {
126 }
127 }
128 throw new ArrayTypeMismatchException();
129 }
130
131 // Token: 0x0600142D RID: 5165 RVA: 0x0002A6F0 File Offset: 0x000288F0
133 {
134 /*
135An exception occurred when decompiling this method (0600142D)
136
137ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ObjectModel.ReadOnlyCollection`1<System.Runtime.ExceptionServices.ExceptionDispatchInfo> System.Threading.Tasks.TaskExceptionHolder::GetExceptionDispatchInfos()
138
139 ---> System.Exception: Basic block has to end with unconditional control flow.
140{
141 Block_0:
142 stloc:class System.Collections.Generic.LowLevelListWithIList`1<class System.Runtime.ExceptionServices.ExceptionDispatchInfo>(var_0_06, ldfld:class System.Collections.Generic.LowLevelListWithIList`1<class System.Runtime.ExceptionServices.ExceptionDispatchInfo>(TaskExceptionHolder::m_faultExceptions, ldloc:TaskExceptionHolder(this)))
143 stloc:int64(var_1_08, ldc.i4:int64(0))
144 call:void(TaskExceptionHolder::MarkAsHandled, ldloc:TaskExceptionHolder(this), ldloc:int64[exp:bool](var_1_08))
145}
146
147 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
148 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
149 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
150 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
151 --- End of inner exception stack trace ---
152 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
153 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
154*/;
155 }
156
157 // Token: 0x0600142E RID: 5166 RVA: 0x0002A70C File Offset: 0x0002890C
162
163 // Token: 0x0600142F RID: 5167 RVA: 0x0002A720 File Offset: 0x00028920
164 // Note: this type is marked as 'beforefieldinit'.
166 {
167 }
168
169 // Token: 0x04000AB4 RID: 2740
171
172 // Token: 0x04000AB5 RID: 2741
174
175 // Token: 0x04000AB6 RID: 2742
177
178 // Token: 0x04000AB7 RID: 2743
180
181 // Token: 0x04000AB8 RID: 2744
182 private bool m_isHandled;
183 }
184}
class f__AnonymousType0<< Count > j__TPar
static bool HasShutdownStarted
static void SuppressFinalize(object obj)
Definition GC.cs:116
static void ReRegisterForFinalize(object obj)
Definition GC.cs:129
LowLevelListWithIList< ExceptionDispatchInfo > m_faultExceptions
void AddFaultException(object exceptionObject)
AggregateException CreateExceptionObject(bool calledFromFinalizer, Exception includeThisException)
void MarkAsHandled(bool calledFromFinalizer)
ExceptionDispatchInfo GetCancellationExceptionDispatchInfo()
void SetCancellationException(object exceptionObject)
ReadOnlyCollection< ExceptionDispatchInfo > GetExceptionDispatchInfos()
void Add(object exceptionObject, bool representsCancellation)