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
JsonPosition.cs
Go to the documentation of this file.
1using System;
4using System.Text;
8
9namespace Newtonsoft.Json
10{
11 // Token: 0x02000018 RID: 24
12 [Preserve]
13 internal struct JsonPosition
14 {
15 // Token: 0x0600003C RID: 60 RVA: 0x000025FC File Offset: 0x000007FC
17 {
18 this.Type = type;
19 if (!true)
20 {
21 }
22 this.HasIndex = true;
23 }
24
25 // Token: 0x0600003D RID: 61 RVA: 0x0000261C File Offset: 0x0000081C
26 internal int CalculateLength()
27 {
28 int num;
29 return num;
30 }
31
32 // Token: 0x0600003E RID: 62 RVA: 0x0000262C File Offset: 0x0000082C
33 internal void WriteTo(StringBuilder sb)
34 {
35 int num = 91;
36 StringBuilder stringBuilder = sb.Append((char)num);
37 int position = this.Position;
38 StringBuilder stringBuilder2 = sb.Append(position);
39 int num2 = 93;
41 }
42
43 // Token: 0x0600003F RID: 63 RVA: 0x0000212A File Offset: 0x0000032A
44 internal static bool TypeHasIndex(JsonContainerType type)
45 {
46 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
47 }
48
49 // Token: 0x06000040 RID: 64 RVA: 0x000026A4 File Offset: 0x000008A4
50 internal static string BuildPath(List<JsonPosition> positions, JsonPosition? currentPosition)
51 {
52 int size = positions._size;
53 int size2 = positions._size;
54 throw new OutOfMemoryException();
55 }
56
57 // Token: 0x06000041 RID: 65 RVA: 0x000026D8 File Offset: 0x000008D8
58 internal static string FormatMessage(IJsonLineInfo lineInfo, string path, string message)
59 {
60 int num = 1;
61 string newLine = Environment.NewLine;
62 string text = path.Trim();
63 int num2 = 46;
64 bool flag = text.EndsWith((char)num2);
65 string text2 = text + "." + " ";
66 if (num == 0)
67 {
68 }
70 string text3;
71 return text2 + text3;
72 }
73
74 // Token: 0x06000042 RID: 66 RVA: 0x00002760 File Offset: 0x00000960
75 // Note: this type is marked as 'beforefieldinit'.
76 static JsonPosition()
77 {
78 }
79
80 // Token: 0x0400002E RID: 46
81 private static readonly char[] SpecialCharacters;
82
83 // Token: 0x0400002F RID: 47
85
86 // Token: 0x04000030 RID: 48
87 internal int Position;
88
89 // Token: 0x04000031 RID: 49
90 internal string PropertyName;
91
92 // Token: 0x04000032 RID: 50
93 internal bool HasIndex;
94 }
95}
class f__AnonymousType0<< Count > j__TPar
static string NewLine
static CultureInfo InvariantCulture
StringBuilder Append(char value, int repeatCount)
void WriteTo(StringBuilder sb)
JsonPosition(JsonContainerType type)
static bool TypeHasIndex(JsonContainerType type)
static readonly char[] SpecialCharacters
static string FormatMessage(IJsonLineInfo lineInfo, string path, string message)
static string BuildPath(List< JsonPosition > positions, JsonPosition? currentPosition)