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
JTokenWriter.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020000D4 RID: 212
10 public class JTokenWriter : JsonWriter
11 {
12 // Token: 0x17000189 RID: 393
13 // (get) Token: 0x06000826 RID: 2086 RVA: 0x00014408 File Offset: 0x00012608
15 {
16 get
17 {
18 return this._current;
19 }
20 }
21
22 // Token: 0x1700018A RID: 394
23 // (get) Token: 0x06000827 RID: 2087 RVA: 0x0001441C File Offset: 0x0001261C
25 {
26 get
27 {
28 /*
29An exception occurred when decompiling this method (06000827)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.Linq.JToken Newtonsoft.Json.Linq.JTokenWriter::get_Token()
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:JContainer(var_0_06, ldfld:JContainer(JTokenWriter::_token, ldloc:JTokenWriter(this)))
37}
38
39 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
40 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
41 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
42 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
43 --- End of inner exception stack trace ---
44 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
45 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
46*/;
47 }
48 }
49
50 // Token: 0x06000828 RID: 2088 RVA: 0x00014430 File Offset: 0x00012630
51 public JTokenWriter(JContainer container)
52 {
53 if (!true)
54 {
55 }
56 base..ctor();
57 ValidationUtils.ArgumentNotNull(container, "container");
58 this._token = container;
59 this._parent = container;
60 }
61
62 // Token: 0x06000829 RID: 2089 RVA: 0x00014460 File Offset: 0x00012660
63 public JTokenWriter()
64 {
65 if (!true)
66 {
67 }
68 base..ctor();
69 }
70
71 // Token: 0x0600082A RID: 2090 RVA: 0x00014478 File Offset: 0x00012678
72 public override void Flush()
73 {
74 }
75
76 // Token: 0x0600082B RID: 2091 RVA: 0x00014488 File Offset: 0x00012688
77 public override void Close()
78 {
79 base.Close();
80 }
81
82 // Token: 0x0600082C RID: 2092 RVA: 0x0001449C File Offset: 0x0001269C
83 public override void WriteStartObject()
84 {
85 base.WriteStartObject();
86 if (this._parent != null)
87 {
88 return;
89 }
90 }
91
92 // Token: 0x0600082D RID: 2093 RVA: 0x000144B8 File Offset: 0x000126B8
93 private void AddParent(JContainer container)
94 {
95 JContainer parent = this._parent;
96 if (parent != null)
97 {
98 parent.AddAndSkipParentCheck(container);
99 return;
100 }
101 this._token = container;
102 this._parent = container;
103 this._current = container;
104 }
105
106 // Token: 0x0600082E RID: 2094 RVA: 0x000144EC File Offset: 0x000126EC
107 private void RemoveParent()
108 {
109 JContainer parent = this._parent;
110 this._current = parent;
111 JContainer parent2 = parent._parent;
113 if (parent2 != null)
114 {
117 }
118 }
119
120 // Token: 0x0600082F RID: 2095 RVA: 0x0001452C File Offset: 0x0001272C
121 public override void WriteStartArray()
122 {
123 base.WriteStartArray();
124 if (this._parent != null)
125 {
126 return;
127 }
128 }
129
130 // Token: 0x06000830 RID: 2096 RVA: 0x00014548 File Offset: 0x00012748
131 public override void WriteStartConstructor(string name)
132 {
133 base.WriteStartConstructor(name);
134 if (this._parent != null)
135 {
136 return;
137 }
138 }
139
140 // Token: 0x06000831 RID: 2097 RVA: 0x00014568 File Offset: 0x00012768
141 protected override void WriteEnd(JsonToken token)
142 {
143 JContainer parent = this._parent;
144 this._current = parent;
145 JContainer parent2 = parent._parent;
147 if (parent2 != null)
148 {
151 }
152 }
153
154 // Token: 0x06000832 RID: 2098 RVA: 0x000145A8 File Offset: 0x000127A8
155 public override void WritePropertyName(string name)
156 {
157 if (this._parent != null)
158 {
159 }
160 if (this._parent != null)
161 {
162 return;
163 }
164 base.WritePropertyName(name);
165 }
166
167 // Token: 0x06000833 RID: 2099 RVA: 0x000145D0 File Offset: 0x000127D0
168 private void AddValue(object value, JsonToken token)
169 {
170 }
171
172 // Token: 0x06000834 RID: 2100 RVA: 0x000145E0 File Offset: 0x000127E0
173 internal void AddValue(JValue value, JsonToken token)
174 {
175 if (this._parent != null)
176 {
177 JContainer parent = this._parent;
179 this._current = parent;
182 return;
183 }
184 JValue jvalue;
185 if (value == null)
186 {
187 jvalue = JValue.CreateNull();
188 }
189 this._value = jvalue;
190 this._current = jvalue;
191 }
192
193 // Token: 0x06000835 RID: 2101 RVA: 0x0001463C File Offset: 0x0001283C
194 public override void WriteValue(object value)
195 {
196 base.WriteValue(value);
197 }
198
199 // Token: 0x06000836 RID: 2102 RVA: 0x00014650 File Offset: 0x00012850
200 public override void WriteNull()
201 {
202 base.WriteNull();
203 }
204
205 // Token: 0x06000837 RID: 2103 RVA: 0x00014664 File Offset: 0x00012864
206 public override void WriteUndefined()
207 {
208 base.WriteUndefined();
209 }
210
211 // Token: 0x06000838 RID: 2104 RVA: 0x00014678 File Offset: 0x00012878
212 public override void WriteRaw(string json)
213 {
214 base.WriteRaw(json);
215 }
216
217 // Token: 0x06000839 RID: 2105 RVA: 0x0001468C File Offset: 0x0001288C
218 public override void WriteComment(string text)
219 {
220 base.WriteComment(text);
222 }
223
224 // Token: 0x0600083A RID: 2106 RVA: 0x000146A8 File Offset: 0x000128A8
225 public override void WriteValue(string value)
226 {
227 base.WriteValue(value);
228 this.AddValue(value, JsonToken.String);
229 }
230
231 // Token: 0x0600083B RID: 2107 RVA: 0x000146C8 File Offset: 0x000128C8
232 public override void WriteValue(int value)
233 {
234 base.WriteValue(value);
235 }
236
237 // Token: 0x0600083C RID: 2108 RVA: 0x000146DC File Offset: 0x000128DC
238 [CLSCompliant(false)]
239 public override void WriteValue(uint value)
240 {
241 base.WriteValue(value);
242 }
243
244 // Token: 0x0600083D RID: 2109 RVA: 0x000146F0 File Offset: 0x000128F0
245 public override void WriteValue(long value)
246 {
247 base.WriteValue(value);
248 }
249
250 // Token: 0x0600083E RID: 2110 RVA: 0x00014704 File Offset: 0x00012904
251 [CLSCompliant(false)]
252 public override void WriteValue(ulong value)
253 {
254 base.WriteValue(value);
255 }
256
257 // Token: 0x0600083F RID: 2111 RVA: 0x00014718 File Offset: 0x00012918
258 public override void WriteValue(float value)
259 {
260 base.WriteValue(value);
261 }
262
263 // Token: 0x06000840 RID: 2112 RVA: 0x0001472C File Offset: 0x0001292C
264 public override void WriteValue(double value)
265 {
266 base.WriteValue(value);
267 }
268
269 // Token: 0x06000841 RID: 2113 RVA: 0x00014740 File Offset: 0x00012940
270 public override void WriteValue(bool value)
271 {
272 base.WriteValue(value);
273 }
274
275 // Token: 0x06000842 RID: 2114 RVA: 0x00014754 File Offset: 0x00012954
276 public override void WriteValue(short value)
277 {
278 base.WriteValue(value);
279 }
280
281 // Token: 0x06000843 RID: 2115 RVA: 0x00014768 File Offset: 0x00012968
282 [CLSCompliant(false)]
283 public override void WriteValue(ushort value)
284 {
285 base.WriteValue(value);
286 }
287
288 // Token: 0x06000844 RID: 2116 RVA: 0x0001477C File Offset: 0x0001297C
289 public override void WriteValue(char value)
290 {
291 base.WriteValue(value);
292 if (!true)
293 {
294 }
296 string text;
297 this.AddValue(text, JsonToken.String);
298 }
299
300 // Token: 0x06000845 RID: 2117 RVA: 0x000147A4 File Offset: 0x000129A4
301 public override void WriteValue(byte value)
302 {
303 base.WriteValue(value);
304 }
305
306 // Token: 0x06000846 RID: 2118 RVA: 0x000147B8 File Offset: 0x000129B8
307 [CLSCompliant(false)]
308 public override void WriteValue(sbyte value)
309 {
310 base.WriteValue(value);
311 }
312
313 // Token: 0x06000847 RID: 2119 RVA: 0x000147CC File Offset: 0x000129CC
314 public override void WriteValue(decimal value)
315 {
316 base.WriteValue(value);
317 }
318
319 // Token: 0x06000848 RID: 2120 RVA: 0x000147E0 File Offset: 0x000129E0
320 public override void WriteValue(DateTime value)
321 {
322 base.WriteValue(value);
324 if (!true)
325 {
326 }
328 }
329
330 // Token: 0x06000849 RID: 2121 RVA: 0x00014808 File Offset: 0x00012A08
331 public override void WriteValue(DateTimeOffset value)
332 {
333 base.WriteValue(value);
334 }
335
336 // Token: 0x0600084A RID: 2122 RVA: 0x0001481C File Offset: 0x00012A1C
337 public override void WriteValue(byte[] value)
338 {
339 base.WriteValue(value);
340 this.AddValue(value, JsonToken.Bytes);
341 }
342
343 // Token: 0x0600084B RID: 2123 RVA: 0x0001483C File Offset: 0x00012A3C
344 public override void WriteValue(TimeSpan value)
345 {
346 base.WriteValue(value);
347 }
348
349 // Token: 0x0600084C RID: 2124 RVA: 0x00014850 File Offset: 0x00012A50
350 public override void WriteValue(Guid value)
351 {
352 base.WriteValue(value);
353 }
354
355 // Token: 0x0600084D RID: 2125 RVA: 0x00014864 File Offset: 0x00012A64
356 public override void WriteValue(Uri value)
357 {
358 base.WriteValue(value);
359 this.AddValue(value, JsonToken.String);
360 }
361
362 // Token: 0x0600084E RID: 2126 RVA: 0x00014884 File Offset: 0x00012A84
363 internal override void WriteToken(JsonReader reader, bool writeChildren, bool writeDateConstructorAsDate, bool writeComments)
364 {
365 if (reader == null)
366 {
367 long num;
368 base.WriteToken(reader, num != 0L, writeDateConstructorAsDate, writeComments);
369 return;
370 }
371 if (this._parent != null)
372 {
373 JContainer parent = this._parent;
375 this._current = parent;
377 long num = 0L;
380 return;
381 }
382 JContainer token = this._token;
383 this._current = reader;
384 if (token != null || this._value != null)
385 {
386 return;
387 }
388 if (reader != null)
389 {
390 return;
391 }
392 }
393
394 // Token: 0x04000338 RID: 824
396
397 // Token: 0x04000339 RID: 825
399
400 // Token: 0x0400033A RID: 826
401 private JValue _value;
402
403 // Token: 0x0400033B RID: 827
405 }
406}
class f__AnonymousType0<< Count > j__TPar
DateTimeZoneHandling _dateTimeZoneHandling
void AddAndSkipParentCheck(JToken token)
override void WriteRaw(string json)
override void WriteValue(object value)
override void WriteValue(double value)
override void WriteValue(Uri value)
override void WriteValue(char value)
override void WriteValue(decimal value)
override void WriteValue(DateTimeOffset value)
override void WriteToken(JsonReader reader, bool writeChildren, bool writeDateConstructorAsDate, bool writeComments)
override void WriteValue(byte value)
override void WriteEnd(JsonToken token)
override void WritePropertyName(string name)
override void WriteValue(float value)
override void WriteStartConstructor(string name)
override void WriteValue(sbyte value)
void AddValue(object value, JsonToken token)
override void WriteValue(byte[] value)
override void WriteValue(ushort value)
JTokenWriter(JContainer container)
override void WriteComment(string text)
override void WriteValue(bool value)
override void WriteValue(short value)
override void WriteValue(uint value)
override void WriteValue(int value)
override void WriteValue(string value)
void AddValue(JValue value, JsonToken token)
override void WriteValue(TimeSpan value)
override void WriteValue(ulong value)
override void WriteValue(DateTime value)
override void WriteValue(long value)
override void WriteValue(Guid value)
void AddParent(JContainer container)
static JValue CreateNull()
Definition JValue.cs:184
static JValue CreateComment(string value)
Definition JValue.cs:172
static DateTime EnsureDateTime(DateTime value, DateTimeZoneHandling timeZone)
static void ArgumentNotNull(object value, string parameterName)
static CultureInfo InvariantCulture