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
JTokenReader.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020000D3 RID: 211
11 {
12 // Token: 0x17000185 RID: 389
13 // (get) Token: 0x06000817 RID: 2071 RVA: 0x000141A8 File Offset: 0x000123A8
15 {
16 get
17 {
18 return this._current;
19 }
20 }
21
22 // Token: 0x06000818 RID: 2072 RVA: 0x000141BC File Offset: 0x000123BC
23 public JTokenReader(JToken token)
24 {
25 ValidationUtils.ArgumentNotNull(token, "token");
26 this._root = token;
27 }
28
29 // Token: 0x06000819 RID: 2073 RVA: 0x000141E4 File Offset: 0x000123E4
30 internal JTokenReader(JToken token, string initialPath)
31 {
33 }
34
35 // Token: 0x0600081A RID: 2074 RVA: 0x000141F8 File Offset: 0x000123F8
36 public override bool Read()
37 {
38 if (this._currentState != JsonReader.State.Start)
39 {
40 JToken current = this._current;
41 if (current != null)
42 {
43 return this.ReadOver(current);
44 }
45 }
46 else
47 {
48 JToken root = this._root;
49 this._current = root;
50 this.SetToken(root);
51 }
52 JToken parent = this._parent;
53 bool flag;
54 return flag;
55 }
56
57 // Token: 0x0600081B RID: 2075 RVA: 0x00014244 File Offset: 0x00012444
58 private bool ReadOver(JToken t)
59 {
60 JToken root = this._root;
61 JToken next = t._next;
62 if (next != null)
63 {
64 JContainer parent = t._parent;
65 this._current = next;
66 this.SetToken(next);
67 return true;
68 }
70 if (parent2 != null)
71 {
72 return this.SetEnd(parent2);
73 }
74 }
75
76 // Token: 0x0600081C RID: 2076 RVA: 0x00014290 File Offset: 0x00012490
77 private bool ReadToEnd()
78 {
79 }
80
81 // Token: 0x0600081D RID: 2077 RVA: 0x0000212A File Offset: 0x0000032A
83 {
84 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
85 }
86
87 // Token: 0x0600081E RID: 2078 RVA: 0x000142A0 File Offset: 0x000124A0
88 private bool ReadInto(JContainer c)
89 {
90 if (c != null)
91 {
92 this.SetToken(c);
93 this._parent = c;
94 this._current = c;
95 return true;
96 }
97 return this.SetEnd(c);
98 }
99
100 // Token: 0x0600081F RID: 2079 RVA: 0x000142D0 File Offset: 0x000124D0
101 private bool SetEnd(JContainer c)
102 {
103 this._parent = c;
104 this._current = c;
105 return true;
106 }
107
108 // Token: 0x06000820 RID: 2080 RVA: 0x000142F4 File Offset: 0x000124F4
109 private void SetToken(JToken token)
110 {
111 }
112
113 // Token: 0x06000821 RID: 2081 RVA: 0x00014320 File Offset: 0x00012520
114 private string SafeToString(object value)
115 {
116 if (value != null)
117 {
118 return;
119 }
120 }
121
122 // Token: 0x06000822 RID: 2082 RVA: 0x00014334 File Offset: 0x00012534
124 {
125 /*
126An exception occurred when decompiling this method (06000822)
127
128ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.Linq.JTokenReader::Newtonsoft.Json.IJsonLineInfo.HasLineInfo()
129
130 ---> System.Exception: Basic block has to end with unconditional control flow.
131{
132 IL_0010:
133 stloc:int64(var_0_16, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
134}
135
136 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
137 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
138 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
139 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
140 --- End of inner exception stack trace ---
141 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
142 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
143*/;
144 }
145
146 // Token: 0x17000186 RID: 390
147 // (get) Token: 0x06000823 RID: 2083 RVA: 0x00014358 File Offset: 0x00012558
149 {
150 get
151 {
152 /*
153An exception occurred when decompiling this method (06000823)
154
155ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Newtonsoft.Json.Linq.JTokenReader::Newtonsoft.Json.IJsonLineInfo.get_LineNumber()
156
157 ---> System.Exception: Basic block has to end with unconditional control flow.
158{
159 IL_0010:
160 stloc:int64(var_0_16, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
161}
162
163 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
164 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
165 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
166 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
167 --- End of inner exception stack trace ---
168 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
169 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
170*/;
171 }
172 }
173
174 // Token: 0x17000187 RID: 391
175 // (get) Token: 0x06000824 RID: 2084 RVA: 0x0001437C File Offset: 0x0001257C
177 {
178 get
179 {
180 /*
181An exception occurred when decompiling this method (06000824)
182
183ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Newtonsoft.Json.Linq.JTokenReader::Newtonsoft.Json.IJsonLineInfo.get_LinePosition()
184
185 ---> System.Exception: Basic block has to end with unconditional control flow.
186{
187 IL_0010:
188 stloc:int64(var_0_16, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
189}
190
191 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
192 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
193 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
194 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
195 --- End of inner exception stack trace ---
196 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
197 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
198*/;
199 }
200 }
201
202 // Token: 0x17000188 RID: 392
203 // (get) Token: 0x06000825 RID: 2085 RVA: 0x000143A0 File Offset: 0x000125A0
204 public override string Path
205 {
206 get
207 {
208 string path = base.Path;
209 string path2;
210 if (this._initialPath == null)
211 {
212 path2 = this._root.Path;
214 }
215 bool flag = string.IsNullOrEmpty(path2);
216 bool flag2 = string.IsNullOrEmpty(path);
217 return this._initialPath;
218 }
219 }
220
221 // Token: 0x04000334 RID: 820
223
224 // Token: 0x04000335 RID: 821
225 private string _initialPath;
226
227 // Token: 0x04000336 RID: 822
229
230 // Token: 0x04000337 RID: 823
232 }
233}
class f__AnonymousType0<< Count > j__TPar
JsonReader.State _currentState
string SafeToString(object value)
JTokenReader(JToken token, string initialPath)
JsonToken? GetEndToken(JContainer c)
static void ArgumentNotNull(object value, string parameterName)