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
JsonTextReader.cs
Go to the documentation of this file.
1using System;
3using System.IO;
6
7namespace Newtonsoft.Json
8{
9 // Token: 0x02000029 RID: 41
10 [Preserve]
12 {
13 // Token: 0x060000AC RID: 172 RVA: 0x00003000 File Offset: 0x00001200
15 {
16 do
17 {
18 base..ctor();
20 this.<CloseInput>k__BackingField = true;
21 }
22 while (reader == null);
23 this._reader = reader;
25 }
26
27 // Token: 0x17000038 RID: 56
28 // (get) Token: 0x060000AD RID: 173 RVA: 0x00003034 File Offset: 0x00001234
29 // (set) Token: 0x060000AE RID: 174 RVA: 0x00003048 File Offset: 0x00001248
31 {
32 get
33 {
34 return this._arrayPool;
35 }
36 set
37 {
38 while (value == null)
39 {
40 }
42 }
43 }
44
45 // Token: 0x060000AF RID: 175 RVA: 0x00003060 File Offset: 0x00001260
46 private void EnsureBufferNotEmpty()
47 {
49 }
50
51 // Token: 0x060000B0 RID: 176 RVA: 0x0000307C File Offset: 0x0000127C
52 private void OnNewLine(int pos)
53 {
54 int lineNumber = this._lineNumber;
56 this._isEndOfFile = lineNumber != 0;
57 }
58
59 // Token: 0x060000B1 RID: 177 RVA: 0x000030A0 File Offset: 0x000012A0
60 private void ParseString(char quote, ReadType readType)
61 {
62 int charPos = this._charPos;
63 this._charPos = charPos;
65 this.ReadStringIntoBuffer(quote);
66 if (this._currentPosition != null)
67 {
68 return;
69 }
70 bool <SupportMultipleContent>k__BackingField = this.<SupportMultipleContent>k__BackingField;
71 int num = 12;
74 if (hasIndex)
75 {
76 int position = this._currentPosition.Position;
78 }
79 }
80
81 // Token: 0x060000B2 RID: 178 RVA: 0x0000322C File Offset: 0x0000142C
82 private static void BlockCopyChars(char[] src, int srcOffset, char[] dst, int dstOffset, int count)
83 {
85 }
86
87 // Token: 0x060000B3 RID: 179 RVA: 0x00003244 File Offset: 0x00001444
88 private void ShiftBufferIfNeeded()
89 {
90 char[] chars = this._chars;
91 int charPos = this._charPos;
92 int charsUsed = this._charsUsed;
93 int charPos2 = this._charPos;
94 char[] chars2 = this._chars;
95 int lineStartPos = this._lineStartPos;
97 }
98
99 // Token: 0x060000B4 RID: 180 RVA: 0x00003284 File Offset: 0x00001484
100 private int ReadData(bool append)
101 {
102 long num = 0L;
103 return this.ReadData(append, (int)num);
104 }
105
106 // Token: 0x060000B5 RID: 181 RVA: 0x0000329C File Offset: 0x0000149C
107 private int ReadData(bool append, int charsRequired)
108 {
109 /*
110An exception occurred when decompiling this method (060000B5)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Newtonsoft.Json.JsonTextReader::ReadData(System.Boolean,System.Int32)
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 IL_00EF:
117 stloc:char[](var_22_F5, ldfld:char[](JsonTextReader::_chars, ldloc:JsonTextReader(this)))
118}
119
120 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
121 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
122 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
123 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
124 --- End of inner exception stack trace ---
125 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
126 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
127*/;
128 }
129
130 // Token: 0x060000B6 RID: 182 RVA: 0x000033A0 File Offset: 0x000015A0
131 private bool EnsureChars(int relativePosition, bool append)
132 {
133 int charsUsed = this._charsUsed;
134 int lineStartPos = this._lineStartPos;
135 bool flag;
136 return flag;
137 }
138
139 // Token: 0x060000B7 RID: 183 RVA: 0x000033C0 File Offset: 0x000015C0
140 private bool ReadChars(int relativePosition, bool append)
141 {
142 /*
143An exception occurred when decompiling this method (060000B7)
144
145ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.JsonTextReader::ReadChars(System.Int32,System.Boolean)
146
147 ---> System.Exception: Basic block has to end with unconditional control flow.
148{
149 IL_000A:
150 brtrue(IL_0000, logicnot:bool(ldloc:int32[exp:bool](var_2)))
151}
152
153 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
154 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
155 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
156 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
157 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
158 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
159 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
160 --- End of inner exception stack trace ---
161 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
162 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
163*/;
164 }
165
166 // Token: 0x060000B8 RID: 184 RVA: 0x000033DC File Offset: 0x000015DC
167 public override bool Read()
168 {
169 if (this._chars == null)
170 {
172 int num = 1024;
173 char[] array = BufferUtils.RentBuffer(arrayPool, num);
175 }
176 JsonReader.State currentState = this._currentState;
177 return this.ParsePostValue();
178 }
179
180 // Token: 0x060000B9 RID: 185 RVA: 0x000034AC File Offset: 0x000016AC
181 public override int? ReadAsInt32()
182 {
183 if (this.ReadNumberValue(ReadType.ReadAsInt32) != null)
184 {
185 }
186 throw new InvalidCastException();
187 }
188
189 // Token: 0x060000BA RID: 186 RVA: 0x000034C8 File Offset: 0x000016C8
190 public override DateTime? ReadAsDateTime()
191 {
192 if (this.ReadStringValue(ReadType.ReadAsDateTime) != null)
193 {
194 }
195 throw new InvalidCastException();
196 }
197
198 // Token: 0x060000BB RID: 187 RVA: 0x000034E4 File Offset: 0x000016E4
199 public override string ReadAsString()
200 {
201 if (this.ReadStringValue(ReadType.ReadAsString) != null)
202 {
203 }
204 throw new InvalidCastException();
205 }
206
207 // Token: 0x060000BC RID: 188 RVA: 0x00003500 File Offset: 0x00001700
208 public override byte[] ReadAsBytes()
209 {
210 if (this._chars == null)
211 {
213 int num = 1024;
214 char[] array = BufferUtils.RentBuffer(arrayPool, num);
216 }
217 JsonReader.State currentState = this._currentState;
218 this._charPos = (int)currentState;
219 if (currentState == JsonReader.State.Start)
220 {
221 }
222 this._charPos = (int)currentState;
223 long num2 = 0L;
224 this.ProcessCarriageReturn(num2 != 0L);
225 this._charPos = (int)currentState;
226 base.ReadIntoWrappedTypeObject();
227 long num3 = 0L;
228 this.ParseComment(num3 != 0L);
229 this.ProcessValueComma();
230 bool flag = this.ReadNullChar();
231 int lineNumber = this._lineNumber;
232 this._charPos = (int)currentState;
233 this._lineStartPos = (int)currentState;
234 this._isEndOfFile = lineNumber != 0;
235 char[] chars = this._chars;
236 if (this != null)
237 {
238 if (this != null)
239 {
240 return base.ReadArrayIntoByteArray();
241 }
242 }
243 else
244 {
245 long num4 = 0L;
246 base.ReaderReadAndAssert();
248 int num5 = 17;
251 long num6;
252 if (currentPosition != null)
253 {
254 num6 = 0L;
255 }
256 bool <SupportMultipleContent>k__BackingField = this.<SupportMultipleContent>k__BackingField;
257 int num7 = 12;
261 }
262 throw new InvalidCastException();
263 }
264
265 // Token: 0x060000BD RID: 189 RVA: 0x0000362C File Offset: 0x0000182C
267 {
268 if (this._chars == null)
269 {
271 int num = 1024;
272 char[] array = BufferUtils.RentBuffer(arrayPool, num);
274 }
275 JsonReader.State currentState = this._currentState;
276 this._charPos = (int)currentState;
277 this._charPos = (int)currentState;
278 if (currentState == JsonReader.State.Start)
279 {
280 }
281 char[] chars = this._chars;
282 long num2 = 0L;
283 this.ProcessCarriageReturn(num2 != 0L);
284 long num3 = 0L;
285 this.ParseComment(num3 != 0L);
286 this.ProcessValueComma();
287 bool flag = this.ReadNullChar();
288 int lineNumber = this._lineNumber;
289 this._charPos = (int)currentState;
290 this._lineStartPos = (int)currentState;
291 this._isEndOfFile = lineNumber != 0;
293 object obj;
294 return obj;
295 }
296
297 // Token: 0x060000BE RID: 190 RVA: 0x00003758 File Offset: 0x00001958
299 {
300 if (!true)
301 {
302 }
305 return ex;
306 }
307
308 // Token: 0x060000BF RID: 191 RVA: 0x00003774 File Offset: 0x00001974
309 public override bool? ReadAsBoolean()
310 {
311 if (this._chars == null)
312 {
314 int num = 1024;
315 char[] array = BufferUtils.RentBuffer(arrayPool, num);
317 }
318 JsonReader.State currentState = this._currentState;
319 this._charPos = (int)currentState;
320 this._charPos = (int)currentState;
321 if (currentState == JsonReader.State.Start)
322 {
323 }
324 char[] chars = this._chars;
325 bool flag = this.ReadNullChar();
326 this.ProcessValueComma();
327 long num2 = 0L;
328 this.ProcessCarriageReturn(num2 != 0L);
329 int lineNumber = this._lineNumber;
330 this._charPos = (int)currentState;
331 this._lineStartPos = (int)currentState;
332 this._isEndOfFile = lineNumber != 0;
333 long num3 = 0L;
334 this.ParseComment(num3 != 0L);
335 if (lineNumber == 0)
336 {
337 }
339 if (lineNumber == 0)
340 {
341 }
344 int num4 = 10;
346 if (currentPosition != null)
347 {
348 }
349 bool <SupportMultipleContent>k__BackingField = this.<SupportMultipleContent>k__BackingField;
350 int num5 = 12;
352 this.HandleNull();
355 if (num5 == 0)
356 {
357 }
358 string text;
360 }
361
362 // Token: 0x060000C0 RID: 192 RVA: 0x00003894 File Offset: 0x00001A94
363 private void ProcessValueComma()
364 {
365 int charPos = this._charPos;
366 JsonReader.State currentState = this._currentState;
367 this._charPos = charPos;
368 base.SetStateBasedOnCurrent();
369 }
370
371 // Token: 0x060000C1 RID: 193 RVA: 0x000038C8 File Offset: 0x00001AC8
373 {
374 if (this._chars == null)
375 {
377 int num = 1024;
378 char[] array = BufferUtils.RentBuffer(arrayPool, num);
380 }
381 JsonReader.State currentState = this._currentState;
382 this._charPos = (int)currentState;
383 this._charPos = (int)currentState;
384 if (currentState == JsonReader.State.Start)
385 {
386 }
387 char[] chars = this._chars;
388 bool flag = this.ReadNullChar();
389 this.ProcessValueComma();
390 long num2 = 0L;
391 this.ProcessCarriageReturn(num2 != 0L);
392 int lineNumber = this._lineNumber;
393 this._charPos = (int)currentState;
394 this._lineStartPos = (int)currentState;
395 this._isEndOfFile = lineNumber != 0;
396 long num3 = 0L;
397 this.ParseComment(num3 != 0L);
398 this.ReadFinished();
399 this.HandleNull();
400 return this.ParseNumberNaN(readType);
401 }
402
403 // Token: 0x060000C2 RID: 194 RVA: 0x000039F0 File Offset: 0x00001BF0
405 {
406 if (this.ReadStringValue(ReadType.ReadAsDateTimeOffset) != null)
407 {
408 }
409 throw new InvalidCastException();
410 }
411
412 // Token: 0x060000C3 RID: 195 RVA: 0x00003A0C File Offset: 0x00001C0C
413 public override decimal? ReadAsDecimal()
414 {
415 if (this.ReadNumberValue(ReadType.ReadAsDecimal) != null)
416 {
417 }
418 throw new InvalidCastException();
419 }
420
421 // Token: 0x060000C4 RID: 196 RVA: 0x00003A28 File Offset: 0x00001C28
422 public override double? ReadAsDouble()
423 {
424 if (this.ReadNumberValue(ReadType.ReadAsDouble) != null)
425 {
426 }
427 throw new InvalidCastException();
428 }
429
430 // Token: 0x060000C5 RID: 197 RVA: 0x00003A44 File Offset: 0x00001C44
431 private void HandleNull()
432 {
433 int charsUsed = this._charsUsed;
434 int lineStartPos = this._lineStartPos;
435 int num = 1;
436 int num2 = 1;
437 bool flag = this.ReadChars(num, num2 != 0);
438 int charPos = this._charPos;
439 char[] chars = this._chars;
440 this.ParseNull();
441 }
442
443 // Token: 0x060000C6 RID: 198 RVA: 0x00003AB0 File Offset: 0x00001CB0
444 private void ReadFinished()
445 {
446 int charsUsed = this._charsUsed;
447 int lineStartPos = this._lineStartPos;
448 long num = 0L;
449 long num2 = 0L;
450 bool flag = this.ReadChars((int)num, num2 != 0L);
451 long num3 = 0L;
452 bool flag2 = this.EatWhitespace(num3 != 0L);
453 if (!this._isEndOfFile)
454 {
455 char[] chars = this._chars;
456 long num4 = 0L;
457 this.ParseComment(num4 != 0L);
458 }
459 }
460
461 // Token: 0x060000C7 RID: 199 RVA: 0x00003B20 File Offset: 0x00001D20
462 private bool ReadNullChar()
463 {
464 /*
465An exception occurred when decompiling this method (060000C7)
466
467ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.JsonTextReader::ReadNullChar()
468
469 ---> System.Exception: Basic block has to end with unconditional control flow.
470{
471 Block_0:
472 stloc:int32(var_5_21, ldc.i4:int32(1))
473 stfld:bool(JsonTextReader::_isEndOfFile, ldloc:JsonTextReader(this), ldloc:int32[exp:bool](var_5_21))
474 stfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this), ldloc:int32(var_4_1A))
475}
476
477 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
478 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
479 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
480 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
481 --- End of inner exception stack trace ---
482 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
483 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
484*/;
485 }
486
487 // Token: 0x060000C8 RID: 200 RVA: 0x00003B64 File Offset: 0x00001D64
488 private void EnsureBuffer()
489 {
490 if (this._chars == null)
491 {
492 char[] array = BufferUtils.RentBuffer(this._arrayPool, 1024);
494 }
495 }
496
497 // Token: 0x060000C9 RID: 201 RVA: 0x00003B94 File Offset: 0x00001D94
498 private void ReadStringIntoBuffer(char quote)
499 {
500 int charPos = this._charPos;
501 char[] chars = this._chars;
502 int num = 1;
503 this._charPos = charPos;
504 this.ProcessCarriageReturn(num != 0);
505 int charPos2 = this._charPos;
506 }
507
508 // Token: 0x060000CA RID: 202 RVA: 0x00003D64 File Offset: 0x00001F64
510 {
512 char[] chars = this._chars;
514 }
515
516 // Token: 0x060000CB RID: 203 RVA: 0x00003D88 File Offset: 0x00001F88
517 private char ParseUnicode()
518 {
519 int charsUsed = this._charsUsed;
520 int lineStartPos = this._lineStartPos;
521 int num = 4;
522 int num2 = 1;
523 bool flag = this.ReadChars(num, num2 != 0);
524 int charPos = this._charPos;
525 char c = Convert.ToChar(ConvertUtils.HexTextToInt(this._chars, charPos, num2));
526 int charPos2 = this._charPos;
528 return c;
529 }
530
531 // Token: 0x060000CC RID: 204 RVA: 0x00003DF0 File Offset: 0x00001FF0
532 private void ReadNumberIntoBuffer()
533 {
534 int num;
535 long num2;
536 do
537 {
538 int charPos = this._charPos;
539 char[] chars = this._chars;
540 int charsUsed = this._charsUsed;
541 this._charPos = charPos;
542 num = 1;
543 num2 = 0L;
544 }
545 while (this.ReadData(num != 0, (int)num2) != 0);
546 }
547
548 // Token: 0x060000CD RID: 205 RVA: 0x00003E4C File Offset: 0x0000204C
549 private void ClearRecentString()
550 {
551 }
552
553 // Token: 0x060000CE RID: 206 RVA: 0x00003E5C File Offset: 0x0000205C
554 private bool ParsePostValue()
555 {
556 int num = 1;
557 char[] chars = this._chars;
558 if (num == 0)
559 {
560 }
561 int charPos = this._charPos;
562 this._charPos = charPos;
563 bool flag;
564 return flag;
565 }
566
567 // Token: 0x060000CF RID: 207 RVA: 0x00003F20 File Offset: 0x00002120
568 private bool ParseObject()
569 {
570 int num = 1;
571 char[] chars = this._chars;
572 if (num == 0)
573 {
574 }
575 int charPos = this._charPos;
576 this._charPos = charPos;
577 bool flag;
578 return flag;
579 }
580
581 // Token: 0x060000D0 RID: 208 RVA: 0x00003FB8 File Offset: 0x000021B8
582 private bool ParseProperty()
583 {
584 char[] chars = this._chars;
585 this.ShiftBufferIfNeeded();
586 this.ShiftBufferIfNeeded();
588 long num = 0L;
589 if (this.NameTable != null)
590 {
594 string text;
595 if (text == null)
596 {
597 }
598 }
599 long num2 = 0L;
600 bool flag = this.EatWhitespace(num2 != 0L);
601 char[] chars2 = this._chars;
602 this._quoteChar = (char)num;
604 char[] chars3 = this._chars;
605 return "Invalid character after parsing property name. Expected ':' but got: {0}." != null;
606 }
607
608 // Token: 0x060000D1 RID: 209 RVA: 0x0000405C File Offset: 0x0000225C
609 private bool ValidIdentifierChar(char value)
610 {
611 if (!true)
612 {
613 }
614 bool flag = char.IsLetterOrDigit(value);
615 return true;
616 }
617
618 // Token: 0x060000D2 RID: 210 RVA: 0x00004078 File Offset: 0x00002278
620 {
621 int charPos = this._charPos;
622 char[] chars = this._chars;
623 int charPos2 = this._charPos;
625 }
626
627 // Token: 0x060000D3 RID: 211 RVA: 0x000040F4 File Offset: 0x000022F4
628 private bool ParseValue()
629 {
630 if (!true)
631 {
632 }
633 int charPos = this._charPos;
634 this._charPos = charPos;
635 bool flag;
636 return flag;
637 }
638
639 // Token: 0x060000D4 RID: 212 RVA: 0x00004220 File Offset: 0x00002420
640 private void ProcessLineFeed()
641 {
642 int charPos = this._charPos;
643 int lineNumber = this._lineNumber;
644 this._charPos = charPos;
645 this._lineNumber = charPos;
646 this._lineNumber = lineNumber;
647 }
648
649 // Token: 0x060000D5 RID: 213 RVA: 0x00004250 File Offset: 0x00002450
650 private void ProcessCarriageReturn(bool append)
651 {
652 int charsUsed = this._charsUsed;
653 int lineStartPos = this._lineStartPos;
654 int charPos = this._charPos;
655 char[] chars = this._chars;
656 this._charPos = charPos;
657 int lineNumber = this._lineNumber;
658 this._lineStartPos = charPos;
659 this._isEndOfFile = lineNumber != 0;
660 }
661
662 // Token: 0x060000D6 RID: 214 RVA: 0x00004298 File Offset: 0x00002498
663 private bool EatWhitespace(bool oneOrMore)
664 {
665 int num;
666 long num3;
667 long num4;
668 do
669 {
670 num = 1;
671 char[] chars = this._chars;
672 int lineNumber = this._lineNumber;
673 this._charPos = num;
674 this._lineStartPos = num;
675 this._isEndOfFile = lineNumber != 0;
676 long num2 = 0L;
677 this.ProcessCarriageReturn(num2 != 0L);
678 int charsUsed = this._charsUsed;
679 num3 = 0L;
680 num4 = 0L;
681 }
682 while (this.ReadData(num3 != 0L, (int)num4) != 0);
683 this._charPos = num;
684 if (num == 0)
685 {
686 }
687 int charPos = this._charPos;
688 this._charPos = charPos;
689 bool flag;
690 return flag;
691 }
692
693 // Token: 0x060000D7 RID: 215 RVA: 0x0000430C File Offset: 0x0000250C
694 private void ParseConstructor()
695 {
696 long num = 0L;
697 bool flag = this.EatWhitespace(num != 0L);
698 int charPos = this._charPos;
699 char[] chars = this._chars;
700 int charPos2 = this._charPos;
701 this._charPos = charPos;
702 }
703
704 // Token: 0x060000D8 RID: 216 RVA: 0x00004404 File Offset: 0x00002604
706 {
707 this.ShiftBufferIfNeeded();
708 char[] chars = this._chars;
710 if (this._currentPosition != null)
711 {
712 return;
713 }
714 bool <SupportMultipleContent>k__BackingField = this.<SupportMultipleContent>k__BackingField;
715 int num = 12;
718 if (hasIndex)
719 {
720 int position = this._currentPosition.Position;
722 }
723 int charPos = this._charPos;
724 char[] chars2 = this._chars;
725 if (charPos == 0)
726 {
727 }
729 }
730
731 // Token: 0x060000D9 RID: 217 RVA: 0x000046F8 File Offset: 0x000028F8
732 private void ParseComment(bool setToken)
733 {
734 int charsUsed = this._charsUsed;
735 int lineStartPos = this._lineStartPos;
736 int num = 1;
737 long num2 = 0L;
738 bool flag = this.ReadChars(num, num2 != 0L);
739 int charPos = this._charPos;
740 char[] chars = this._chars;
741 }
742
743 // Token: 0x060000DA RID: 218 RVA: 0x0000482C File Offset: 0x00002A2C
744 private void EndComment(bool setToken, int initialPosition, int endPosition)
745 {
746 char[] chars = this._chars;
747 int num = 5;
749 string text;
751 }
752
753 // Token: 0x060000DB RID: 219 RVA: 0x00004854 File Offset: 0x00002A54
754 private bool MatchValue(string value)
755 {
756 /*
757An exception occurred when decompiling this method (060000DB)
758
759ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.JsonTextReader::MatchValue(System.String)
760
761 ---> System.Exception: Basic block has to end with unconditional control flow.
762{
763 Block_0:
764 stloc:int32(var_0_06, ldfld:int32(string::_stringLength, ldloc:string(value)))
765 stloc:int32(var_1_0D, ldfld:int32(JsonTextReader::_charsUsed, ldloc:JsonTextReader(this)))
766 stloc:int32(var_2_14, ldfld:int32(JsonTextReader::_lineStartPos, ldloc:JsonTextReader(this)))
767 stloc:int32(var_4_1B, ldfld:int32(string::_stringLength, ldloc:string(value)))
768 stloc:int64(var_5_1E, ldc.i4:int64(0))
769 stloc:int32(var_6_26, ldfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this)))
770 stloc:char[](var_7_2E, ldfld:char[](JsonTextReader::_chars, ldloc:JsonTextReader(this)))
771 stloc:char(var_8_38, callgetter:char(string::get_Chars, ldloc:string(value), ldloc:int64[exp:int32](var_5_1E)))
772 stloc:int32(var_9_40, ldfld:int32(string::_stringLength, ldloc:string(value)))
773 stloc:int32(var_13_51, ldfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this)))
774 stfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this), ldloc:int32(var_13_51))
775 stloc:int32(var_14_61, ldfld:int32(JsonTextReader::_charsUsed, ldloc:JsonTextReader(this)))
776 stfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this), ldloc:int32(var_14_61))
777 stloc:JsonReaderException(var_15_71, call:JsonReaderException(JsonReader::CreateUnexpectedEndException, ldloc:JsonTextReader[exp:JsonReader](this)))
778}
779
780 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
781 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
782 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
783 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
784 --- End of inner exception stack trace ---
785 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
786 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
787*/;
788 }
789
790 // Token: 0x060000DC RID: 220 RVA: 0x000048D4 File Offset: 0x00002AD4
792 {
793 /*
794An exception occurred when decompiling this method (060000DC)
795
796ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.JsonTextReader::MatchValueWithTrailingSeparator(System.String)
797
798 ---> System.Exception: Basic block has to end with unconditional control flow.
799{
800 Block_0:
801 stloc:bool(var_0_07, call:bool(JsonTextReader::MatchValue, ldloc:JsonTextReader(this), ldloc:string(value)))
802 stloc:int32(var_1_0E, ldfld:int32(JsonTextReader::_charsUsed, ldloc:JsonTextReader(this)))
803 stloc:int32(var_2_15, ldfld:int32(JsonTextReader::_lineStartPos, ldloc:JsonTextReader(this)))
804 stloc:int64(var_3_17, ldc.i4:int64(0))
805 stloc:int64(var_4_19, ldc.i4:int64(0))
806 stloc:bool(var_5_24, call:bool(JsonTextReader::ReadChars, ldloc:JsonTextReader(this), ldloc:int64[exp:int32](var_3_17), ldloc:int64[exp:bool](var_4_19)))
807 stloc:int32(var_6_2C, ldfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this)))
808 stloc:char[](var_7_34, ldfld:char[](JsonTextReader::_chars, ldloc:JsonTextReader(this)))
809 stloc:bool(var_8_3D, call:bool(JsonTextReader::IsSeparator, ldloc:JsonTextReader(this), ldloc:int64[exp:char](var_3_17)))
810 stloc:char[](var_11_4B, ldfld:char[](JsonTextReader::_chars, ldloc:JsonTextReader(this)))
811}
812
813 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
814 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
815 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
816 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
817 --- End of inner exception stack trace ---
818 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
819 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
820*/;
821 }
822
823 // Token: 0x060000DD RID: 221 RVA: 0x00004930 File Offset: 0x00002B30
824 private bool IsSeparator(char c)
825 {
826 /*
827An exception occurred when decompiling this method (060000DD)
828
829ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.JsonTextReader::IsSeparator(System.Char)
830
831 ---> System.Exception: Basic block has to end with unconditional control flow.
832{
833 Block_0:
834 stloc:State(var_1_08, ldfld:State(JsonReader::_currentState, ldloc:JsonTextReader[exp:JsonReader](this)))
835 stloc:int32(var_2_0F, ldfld:int32(JsonTextReader::_charsUsed, ldloc:JsonTextReader(this)))
836 stloc:int32(var_3_16, ldfld:int32(JsonTextReader::_lineStartPos, ldloc:JsonTextReader(this)))
837 stloc:int32(var_4_18, ldc.i4:int32(1))
838 stloc:int64(var_5_1B, ldc.i4:int64(0))
839 stloc:bool(var_6_27, call:bool(JsonTextReader::ReadChars, ldloc:JsonTextReader(this), ldloc:int32(var_4_18), ldloc:int64[exp:bool](var_5_1B)))
840 stloc:int32(var_8_32, ldfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this)))
841 stloc:char[](var_9_3A, ldfld:char[](JsonTextReader::_chars, ldloc:JsonTextReader(this)))
842 stloc:bool(var_10_42, call:bool(char::IsWhiteSpace, ldloc:char(c)))
843}
844
845 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
846 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
847 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
848 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
849 --- End of inner exception stack trace ---
850 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
851 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
852*/;
853 }
854
855 // Token: 0x060000DE RID: 222 RVA: 0x00004988 File Offset: 0x00002B88
856 private void ParseTrue()
857 {
858 if (!true)
859 {
860 }
861 }
862
863 // Token: 0x060000DF RID: 223 RVA: 0x000049A4 File Offset: 0x00002BA4
864 private void ParseNull()
865 {
866 if (!true)
867 {
868 }
869 long num = 0L;
870 base.SetToken(JsonToken.Null, num, true);
871 }
872
873 // Token: 0x060000E0 RID: 224 RVA: 0x000049CC File Offset: 0x00002BCC
874 private void ParseUndefined()
875 {
876 if (!true)
877 {
878 }
879 long num = 0L;
880 base.SetToken(JsonToken.Undefined, num, true);
881 }
882
883 // Token: 0x060000E1 RID: 225 RVA: 0x000049F4 File Offset: 0x00002BF4
884 private void ParseFalse()
885 {
886 if (!true)
887 {
888 }
889 }
890
891 // Token: 0x060000E2 RID: 226 RVA: 0x00004A10 File Offset: 0x00002C10
893 {
894 if (!true)
895 {
896 }
897 if (readType != ReadType.Read || this._floatParseHandling == FloatParseHandling.Double)
898 {
899 }
900 return "Cannot read -Infinity value.";
901 }
902
903 // Token: 0x060000E3 RID: 227 RVA: 0x00004A3C File Offset: 0x00002C3C
905 {
906 if (!true)
907 {
908 }
909 if (readType != ReadType.Read || this._floatParseHandling == FloatParseHandling.Double)
910 {
911 }
912 return "Cannot read Infinity value.";
913 }
914
915 // Token: 0x060000E4 RID: 228 RVA: 0x00004A68 File Offset: 0x00002C68
917 {
918 if (!true)
919 {
920 }
921 if (readType != ReadType.Read || this._floatParseHandling == FloatParseHandling.Double)
922 {
923 }
924 return "Cannot read NaN value.";
925 }
926
927 // Token: 0x060000E5 RID: 229 RVA: 0x00004A94 File Offset: 0x00002C94
928 public override void Close()
929 {
930 char[] chars = this._chars;
931 int num = 7;
932 if (chars != null)
933 {
934 }
935 if (num == 0 || this != null)
936 {
937 }
938 }
939
940 // Token: 0x060000E6 RID: 230 RVA: 0x00004AB4 File Offset: 0x00002CB4
941 public bool HasLineInfo()
942 {
943 return true;
944 }
945
946 // Token: 0x17000039 RID: 57
947 // (get) Token: 0x060000E7 RID: 231 RVA: 0x00004AC4 File Offset: 0x00002CC4
948 public int LineNumber
949 {
950 get
951 {
952 if (this._currentState == JsonReader.State.Start)
953 {
954 int charPos = this._charPos;
955 int lineNumber = this._lineNumber;
956 }
957 return this._lineNumber;
958 }
959 }
960
961 // Token: 0x1700003A RID: 58
962 // (get) Token: 0x060000E8 RID: 232 RVA: 0x00004AF0 File Offset: 0x00002CF0
963 public int LinePosition
964 {
965 get
966 {
967 /*
968An exception occurred when decompiling this method (060000E8)
969
970ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Newtonsoft.Json.JsonTextReader::get_LinePosition()
971
972 ---> System.Exception: Basic block has to end with unconditional control flow.
973{
974 Block_0:
975 stloc:int32(var_0_06, ldfld:int32(JsonTextReader::_charPos, ldloc:JsonTextReader(this)))
976 stloc:int32(var_1_0D, ldfld:int32(JsonTextReader::_lineNumber, ldloc:JsonTextReader(this)))
977}
978
979 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
980 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
981 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
982 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
983 --- End of inner exception stack trace ---
984 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
985 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
986*/;
987 }
988 }
989
990 // Token: 0x040000A0 RID: 160
991 private const char UnicodeReplacementChar = '\ufffd';
992
993 // Token: 0x040000A1 RID: 161
995
996 // Token: 0x040000A2 RID: 162
998
999 // Token: 0x040000A3 RID: 163
1000 private char[] _chars;
1001
1002 // Token: 0x040000A4 RID: 164
1003 private int _charsUsed;
1004
1005 // Token: 0x040000A5 RID: 165
1006 private int _charPos;
1007
1008 // Token: 0x040000A6 RID: 166
1009 private int _lineStartPos;
1010
1011 // Token: 0x040000A7 RID: 167
1012 private int _lineNumber;
1013
1014 // Token: 0x040000A8 RID: 168
1015 private bool _isEndOfFile;
1016
1017 // Token: 0x040000A9 RID: 169
1019
1020 // Token: 0x040000AA RID: 170
1022
1023 // Token: 0x040000AB RID: 171
1025
1026 // Token: 0x040000AC RID: 172
1028 }
1029}
class f__AnonymousType0<< Count > j__TPar
JsonReader.State _currentState
bool< CloseInput > k__BackingField
bool? ReadBooleanString(string s)
JsonPosition _currentPosition
void ParseString(char quote, ReadType readType)
bool MatchValueWithTrailingSeparator(string value)
static void BlockCopyChars(char[] src, int srcOffset, char[] dst, int dstOffset, int count)
bool EatWhitespace(bool oneOrMore)
JsonTextReader(TextReader reader)
override? DateTimeOffset ReadAsDateTimeOffset()
override? DateTime ReadAsDateTime()
object ParseNumberPositiveInfinity(ReadType readType)
override? decimal ReadAsDecimal()
void ParseNumber(ReadType readType)
object ParseNumberNaN(ReadType readType)
JsonReaderException CreateUnexpectedCharacterException(char c)
bool ReadChars(int relativePosition, bool append)
void WriteCharToBuffer(char writeChar, int lastWritePosition, int writeToPosition)
object ParseNumberNegativeInfinity(ReadType readType)
bool EnsureChars(int relativePosition, bool append)
int ReadData(bool append, int charsRequired)
void ProcessCarriageReturn(bool append)
object ReadNumberValue(ReadType readType)
void EndComment(bool setToken, int initialPosition, int endPosition)
object ReadStringValue(ReadType readType)
void ReadStringIntoBuffer(char quote)
void ParseComment(bool setToken)
static char[] RentBuffer(IArrayPool< char > bufferPool, int minSize)
static int HexTextToInt(char[] text, int start, int end)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60
static bool ToBoolean(object value, IFormatProvider provider)
Definition Convert.cs:214
static char ToChar(object value, IFormatProvider provider)
Definition Convert.cs:309
static CultureInfo InvariantCulture