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
Task.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200022A RID: 554
9 [DebuggerDisplay("Id = {Id}, Status = {Status}, Method = {DebuggerDisplayMethodDescription}, Result = {DebuggerDisplayResultDescription}")]
11 public class Task<TResult> : Task
12 {
13 // Token: 0x06001336 RID: 4918 RVA: 0x00028474 File Offset: 0x00026674
14 internal Task()
15 {
16 if (!true)
17 {
18 }
19 base..ctor();
20 }
21
22 // Token: 0x06001337 RID: 4919 RVA: 0x0002848C File Offset: 0x0002668C
24 {
25 if (!true)
26 {
27 }
28 base..ctor(state, options, true);
29 }
30
31 // Token: 0x06001338 RID: 4920 RVA: 0x000284A8 File Offset: 0x000266A8
32 internal Task(TResult result)
33 {
34 if (!true)
35 {
36 }
37 }
38
39 // Token: 0x06001339 RID: 4921 RVA: 0x000284B8 File Offset: 0x000266B8
41 {
42 if (!true)
43 {
44 }
46 }
47
48 // Token: 0x0600133A RID: 4922 RVA: 0x000284D4 File Offset: 0x000266D4
50 {
51 if (!true)
52 {
53 }
55 }
56
57 // Token: 0x0600133B RID: 4923 RVA: 0x000284EC File Offset: 0x000266EC
59 {
60 if (!true)
61 {
62 }
63 }
64
65 // Token: 0x0600133C RID: 4924 RVA: 0x000284FC File Offset: 0x000266FC
67 {
68 if (!true)
69 {
70 }
71 base..ctor(valueSelector, state, parent, cancellationToken, creationOptions, internalOptions, scheduler);
72 }
73
74 // Token: 0x0600133D RID: 4925 RVA: 0x00028520 File Offset: 0x00026720
76 {
77 while (parent != null && internalOptions == InternalTaskOptions.None)
78 {
79 }
80 return "function";
81 }
82
83 // Token: 0x0600133E RID: 4926 RVA: 0x0002853C File Offset: 0x0002673C
85 {
86 while (parent != null && internalOptions == InternalTaskOptions.None)
87 {
88 }
89 return "function";
90 }
91
92 // Token: 0x0600133F RID: 4927 RVA: 0x00028558 File Offset: 0x00026758
93 internal bool TrySetResult(TResult result)
94 {
95 bool isCompleted = base.IsCompleted;
96 bool flag = base.AtomicStateUpdate(1024, 1376);
97 if (this.m_result != null)
98 {
99 }
100 base.FinishStageThree();
101 return true;
102 }
103
104 // Token: 0x06001340 RID: 4928 RVA: 0x00028590 File Offset: 0x00026790
105 internal void DangerousSetResult(TResult result)
106 {
107 }
108
109 // Token: 0x170001D3 RID: 467
110 // (get) Token: 0x06001341 RID: 4929 RVA: 0x0000207A File Offset: 0x0000027A
113 {
114 get
115 {
116 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
117 }
118 }
119
120 // Token: 0x170001D4 RID: 468
121 // (get) Token: 0x06001342 RID: 4930 RVA: 0x0000207A File Offset: 0x0000027A
123 {
124 get
125 {
126 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
127 }
128 }
129
130 // Token: 0x06001343 RID: 4931 RVA: 0x000285A0 File Offset: 0x000267A0
132 {
133 /*
134An exception occurred when decompiling this method (06001343)
135
136ICSharpCode.Decompiler.DecompilerException: Error decompiling TResult System.Threading.Tasks.Task`1::GetResultCore(System.Boolean)
137
138 ---> System.Exception: Basic block has to end with unconditional control flow.
139{
140 Block_0:
141 stloc:bool(var_0_06, callgetter:bool(Task::get_IsCompleted, ldloc:Task`1[exp:Task](this)))
142 stloc:bool(var_2_0D, call:bool(Task::NotifyDebuggerOfWaitCompletionIfNecessary, ldloc:Task`1[exp:Task](this)))
143 stloc:bool(var_3_14, callgetter:bool(Task::get_IsCompletedSuccessfully, ldloc:Task`1[exp:Task](this)))
144}
145
146 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
147 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
148 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
149 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
150 --- End of inner exception stack trace ---
151 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
152 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
153*/;
154 }
155
156 // Token: 0x170001D5 RID: 469
157 // (get) Token: 0x06001344 RID: 4932 RVA: 0x0000207A File Offset: 0x0000027A
159 {
160 get
161 {
162 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
163 }
164 }
165
166 // Token: 0x06001345 RID: 4933 RVA: 0x000285C4 File Offset: 0x000267C4
167 internal override void InnerInvoke()
168 {
169 if (this != null)
170 {
171 return;
172 }
173 if (this != null)
174 {
175 }
176 }
177
178 // Token: 0x06001346 RID: 4934 RVA: 0x0000207A File Offset: 0x0000027A
180 {
181 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
182 }
183
184 // Token: 0x06001347 RID: 4935 RVA: 0x0000207A File Offset: 0x0000027A
186 {
187 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
188 }
189
190 // Token: 0x06001348 RID: 4936 RVA: 0x0000207A File Offset: 0x0000027A
192 {
193 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
194 }
195
196 // Token: 0x06001349 RID: 4937 RVA: 0x000285D8 File Offset: 0x000267D8
198 {
199 while (continuationAction != null && scheduler == null)
200 {
201 }
202 return "continuationAction";
203 }
204
205 // Token: 0x0600134A RID: 4938 RVA: 0x000285F0 File Offset: 0x000267F0
214
215 // Token: 0x0600134B RID: 4939 RVA: 0x0002860C File Offset: 0x0002680C
217 {
218 while (scheduler == null)
219 {
220 }
221 return "continuationFunction";
222 }
223
224 // Token: 0x04000A3E RID: 2622
226
227 // Token: 0x04000A3F RID: 2623
229 }
230}
class f__AnonymousType0<< Count > j__TPar
Task(bool canceled, TResult result, TaskCreationOptions creationOptions, CancellationToken ct)
Definition Task.cs:40
bool TrySetResult(TResult result)
Definition Task.cs:93
static TaskFactory Factory
Definition Task.2.cs:685
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:185
Task(TResult result)
Definition Task.cs:32
void DangerousSetResult(TResult result)
Definition Task.cs:105
static Task InternalCurrentIfAttached(TaskCreationOptions creationOptions)
Definition Task.2.cs:382
Task(object state, TaskCreationOptions options)
Definition Task.cs:23
static TaskFactory< TResult > s_defaultFactory
Definition Task.cs:228
Task(Delegate valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.cs:66
Task ContinueWith(Action< Task< TResult > > continuationAction, TaskScheduler scheduler)
Definition Task.cs:191
TResult GetResultCore(bool waitCompletionNotification)
Definition Task.cs:131
override void InnerInvoke()
Definition Task.cs:167
Task(Func< object, TResult > function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
Definition Task.cs:49
static Task< TResult > StartNew(Task parent, Func< object, TResult > function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.cs:84
static Task< TResult > StartNew(Task parent, Func< TResult > function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.cs:75
Task ContinueWith(Action< Task< TResult > > continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions)
Definition Task.cs:197
new TaskAwaiter< TResult > GetAwaiter()
Definition Task.cs:179
Task< TNewResult > ContinueWith< TNewResult >(Func< Task< TResult >, TNewResult > continuationFunction, TaskContinuationOptions continuationOptions)
Definition Task.cs:206
Task(Func< TResult > valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
Definition Task.cs:58