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
AwaitTaskContinuation.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200024A RID: 586
9 {
10 // Token: 0x06001417 RID: 5143 RVA: 0x0002A378 File Offset: 0x00028578
17
18 // Token: 0x06001418 RID: 5144 RVA: 0x0000207A File Offset: 0x0000027A
20 {
21 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
22 }
23
24 // Token: 0x06001419 RID: 5145 RVA: 0x0002A3A4 File Offset: 0x000285A4
30
31 // Token: 0x170001F5 RID: 501
32 // (get) Token: 0x0600141A RID: 5146 RVA: 0x0002A3C4 File Offset: 0x000285C4
33 internal static bool IsValidLocationForInlining
34 {
35 get
36 {
38 if (synchronizationContext != null)
39 {
40 Type type;
41 bool flag = synchronizationContext.GetType() != type;
42 }
43 if (TaskScheduler.InternalCurrent == null || !true)
44 {
45 }
46 return true;
47 }
48 }
49
50 // Token: 0x0600141B RID: 5147 RVA: 0x0002A3F8 File Offset: 0x000285F8
52 {
54 if (this.m_capturedContext != null)
55 {
56 action = this.m_action;
57 return;
58 }
59 IntPtr invoke_impl = action.invoke_impl;
60 }
61
62 // Token: 0x0600141C RID: 5148 RVA: 0x0002A420 File Offset: 0x00028620
63 private static void InvokeAction(object state)
64 {
65 if (state != null)
66 {
67 }
68 }
69
70 // Token: 0x0600141D RID: 5149 RVA: 0x0002A438 File Offset: 0x00028638
72 {
73 }
74
75 // Token: 0x0600141E RID: 5150 RVA: 0x0002A448 File Offset: 0x00028648
76 protected void RunCallback(ContextCallback callback, object state, Task currentTask)
77 {
79 IntPtr method_code = callback.method_code;
80 IntPtr invoke_impl = callback.invoke_impl;
81 IntPtr method = callback.method;
82 long num = 0L;
84 if (num == 0L)
85 {
86 return;
87 }
88 throw new OutOfMemoryException();
89 }
90
91 // Token: 0x0600141F RID: 5151 RVA: 0x0002A4AC File Offset: 0x000286AC
93 {
95 IntPtr method_code = action.method_code;
96 IntPtr method = action.method;
97 IntPtr invoke_impl = action.invoke_impl;
98 if (!false)
99 {
100 return;
101 }
102 throw new OutOfMemoryException();
103 }
104
105 // Token: 0x06001420 RID: 5152 RVA: 0x0002A4FC File Offset: 0x000286FC
106 internal static void UnsafeScheduleAction(Action action)
107 {
108 }
109
110 // Token: 0x06001421 RID: 5153 RVA: 0x0002A50C File Offset: 0x0002870C
111 protected static void ThrowAsyncIfNecessary(Exception exc)
112 {
113 if (!true)
114 {
115 }
117 }
118
119 // Token: 0x06001422 RID: 5154 RVA: 0x0002A524 File Offset: 0x00028724
121 {
122 }
123
124 // Token: 0x04000AB1 RID: 2737
126
127 // Token: 0x04000AB2 RID: 2738
129
130 // Token: 0x04000AB3 RID: 2739
132 }
133}
class f__AnonymousType0<< Count > j__TPar
static void ReportUnhandledException(Exception exception)
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static ExecutionContext Capture()
static SynchronizationContext CurrentExplicit
static void SetSynchronizationContext(SynchronizationContext syncContext)
Task CreateTask(Action< object > action, object state, TaskScheduler scheduler)
void RunCallback(ContextCallback callback, object state, Task currentTask)
static void RunOrScheduleAction(Action action, bool allowInlining, Task currentTask)
override void Run(Task ignored, bool canInlineContinuationTask)
AwaitTaskContinuation(Action action, bool flowExecutionContext)
new Type GetType()
Definition Type.cs:287