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
ValueTask.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x0200021D RID: 541
12 [StructLayout(3)]
13 public readonly struct ValueTask : IEquatable<ValueTask>
14 {
15 // Token: 0x170001CA RID: 458
16 // (get) Token: 0x060012EB RID: 4843 RVA: 0x00027E4C File Offset: 0x0002604C
17 internal static Task CompletedTask
18 {
19 get
20 {
21 /*
22An exception occurred when decompiling this method (060012EB)
23
24ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Threading.Tasks.Task System.Threading.Tasks.ValueTask::get_CompletedTask()
25
26 ---> System.Exception: Basic block has to end with unconditional control flow.
27{
28 IL_0003:
29 brtrue(IL_0000, ldc.i4:bool(1))
30}
31
32 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
33 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
34 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
35 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
36 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
37 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
38 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
39 --- End of inner exception stack trace ---
40 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
41 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
42*/;
43 }
44 }
45
46 // Token: 0x060012EC RID: 4844 RVA: 0x00027E60 File Offset: 0x00026060
48 {
49 if (task == null)
50 {
52 }
55 }
56
57 // Token: 0x060012ED RID: 4845 RVA: 0x00027E88 File Offset: 0x00026088
58 public ValueTask(IValueTaskSource source, short token)
59 {
60 if (source == null)
61 {
63 }
65 this._token = token;
67 }
68
69 // Token: 0x060012EE RID: 4846 RVA: 0x00027EB4 File Offset: 0x000260B4
70 private ValueTask(object obj, short token, bool continueOnCapturedContext)
71 {
72 this._obj = obj;
73 this._token = token;
74 }
75
76 // Token: 0x060012EF RID: 4847 RVA: 0x0000207A File Offset: 0x0000027A
77 public override int GetHashCode()
78 {
79 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
80 }
81
82 // Token: 0x060012F0 RID: 4848 RVA: 0x00027ED0 File Offset: 0x000260D0
83 public override bool Equals(object obj)
84 {
85 if (obj != null)
86 {
87 return;
88 }
89 }
90
91 // Token: 0x060012F1 RID: 4849 RVA: 0x00027EE4 File Offset: 0x000260E4
92 public bool Equals(ValueTask other)
93 {
94 }
95
96 // Token: 0x060012F2 RID: 4850 RVA: 0x00027EF4 File Offset: 0x000260F4
97 public Task AsTask()
98 {
99 Task task;
100 return task;
101 }
102
103 // Token: 0x060012F3 RID: 4851 RVA: 0x00027F08 File Offset: 0x00026108
105 {
106 short token = this._token;
107 short token2 = this._token;
108 if (t != null)
109 {
110 }
112 }
113
114 // Token: 0x170001CB RID: 459
115 // (get) Token: 0x060012F4 RID: 4852 RVA: 0x00027F34 File Offset: 0x00026134
116 public bool IsCompleted
117 {
118 get
119 {
120 short token = this._token;
121 int value = 1.m_value;
122 bool flag;
123 return flag;
124 }
125 }
126
127 // Token: 0x060012F5 RID: 4853 RVA: 0x00027F50 File Offset: 0x00026150
130 {
131 short token = this._token;
132 }
133
134 // Token: 0x060012F6 RID: 4854 RVA: 0x00027F68 File Offset: 0x00026168
136 {
137 /*
138An exception occurred when decompiling this method (060012F6)
139
140ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask::GetAwaiter()
141
142 ---> System.Exception: Basic block has to end with unconditional control flow.
143{
144 Block_0:
145 stloc:object(var_0_06, ldfld:object(ValueTask::_obj, ldloc:valuetype System.Threading.Tasks.ValueTask&(this)))
146 stloc:int16(var_1_0D, ldfld:int16(ValueTask::_token, ldloc:valuetype System.Threading.Tasks.ValueTask&(this)))
147}
148
149 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
150 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
151 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
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 88
153 --- End of inner exception stack trace ---
154 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
155 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
156*/;
157 }
158
159 // Token: 0x060012F7 RID: 4855 RVA: 0x00027F84 File Offset: 0x00026184
161 {
162 /*
163An exception occurred when decompiling this method (060012F7)
164
165ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable System.Threading.Tasks.ValueTask::ConfigureAwait(System.Boolean)
166
167 ---> System.Exception: Basic block has to end with unconditional control flow.
168{
169 Block_0:
170 stloc:int16(var_0_06, ldfld:int16(ValueTask::_token, ldloc:valuetype System.Threading.Tasks.ValueTask&(this)))
171}
172
173 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
174 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
175 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
176 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
177 --- End of inner exception stack trace ---
178 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
179 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
180*/;
181 }
182
183 // Token: 0x060012F8 RID: 4856 RVA: 0x00027F98 File Offset: 0x00026198
184 // Note: this type is marked as 'beforefieldinit'.
185 static ValueTask()
186 {
187 if (!true)
188 {
189 }
190 }
191
192 // Token: 0x04000A22 RID: 2594
194
195 // Token: 0x04000A23 RID: 2595
196 internal readonly object _obj;
197
198 // Token: 0x04000A24 RID: 2596
199 internal readonly short _token;
200
201 // Token: 0x04000A25 RID: 2597
203
204 // Token: 0x0200021E RID: 542
205 private sealed class ValueTaskSourceAsTask : Task<VoidTaskResult>
206 {
207 // Token: 0x060012F9 RID: 4857 RVA: 0x00027FA8 File Offset: 0x000261A8
209 {
210 int num = 1;
211 this._token = token;
213 if (num == 0)
214 {
215 }
216 }
217
218 // Token: 0x060012FA RID: 4858 RVA: 0x00027FCC File Offset: 0x000261CC
219 // Note: this type is marked as 'beforefieldinit'.
221 {
222 if (!true)
223 {
224 }
225 }
226
227 // Token: 0x04000A26 RID: 2598
229
230 // Token: 0x04000A27 RID: 2599
232
233 // Token: 0x04000A28 RID: 2600
234 private readonly short _token;
235
236 // Token: 0x0200021F RID: 543
238 [Serializable]
239 private sealed class <>c
240 {
241 // Token: 0x060012FB RID: 4859 RVA: 0x0001B05E File Offset: 0x0001925E
242 // Note: this type is marked as 'beforefieldinit'.
243 static <>c()
244 {
245 }
246
247 // Token: 0x060012FC RID: 4860 RVA: 0x0001B05E File Offset: 0x0001925E
248 public <>c()
249 {
250 }
251
252 // Token: 0x060012FD RID: 4861 RVA: 0x0001B05E File Offset: 0x0001925E
253 internal void <.cctor>b__4_0(object state)
254 {
255 }
256
257 // Token: 0x04000A29 RID: 2601
259 }
260 }
261 }
262}
class f__AnonymousType0<< Count > j__TPar
static readonly Action< object > s_completionAction
ValueTaskSourceAsTask(IValueTaskSource source, short token)
Definition ValueTask.cs:208
static void ThrowArgumentNullException(ExceptionArgument argument)
ValueTask(IValueTaskSource source, short token)
Definition ValueTask.cs:58
Task GetTaskForValueTaskSource(IValueTaskSource t)
Definition ValueTask.cs:104
override bool Equals(object obj)
Definition ValueTask.cs:83
static readonly Task s_canceledTask
Definition ValueTask.cs:193
ValueTask(object obj, short token, bool continueOnCapturedContext)
Definition ValueTask.cs:70
ConfiguredValueTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
Definition ValueTask.cs:160
bool Equals(ValueTask other)
Definition ValueTask.cs:92
ValueTaskAwaiter GetAwaiter()
Definition ValueTask.cs:135