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
JConstructor.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x020000CB RID: 203
10 [Preserve]
11 public class JConstructor : JContainer
12 {
13 // Token: 0x1700015B RID: 347
14 // (get) Token: 0x0600072C RID: 1836 RVA: 0x000128CC File Offset: 0x00010ACC
15 protected override IList<JToken> ChildrenTokens
16 {
17 get
18 {
19 /*
20An exception occurred when decompiling this method (0600072C)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IList`1<Newtonsoft.Json.Linq.JToken> Newtonsoft.Json.Linq.JConstructor::get_ChildrenTokens()
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 Block_0:
27 stloc:class [mscorlib]System.Collections.Generic.List`1<class Newtonsoft.Json.Linq.JToken>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Newtonsoft.Json.Linq.JToken>(JConstructor::_values, ldloc:JConstructor(this)))
28}
29
30 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
31 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
32 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
33 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
34 --- End of inner exception stack trace ---
35 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
36 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
37*/;
38 }
39 }
40
41 // Token: 0x0600072D RID: 1837 RVA: 0x000128E0 File Offset: 0x00010AE0
42 internal override int IndexOfItem(JToken item)
43 {
45 int num;
46 return num;
47 }
48
49 // Token: 0x0600072E RID: 1838 RVA: 0x000128F8 File Offset: 0x00010AF8
50 internal override void MergeItem(object content, JsonMergeSettings settings)
51 {
52 if (content != null)
53 {
54 }
55 }
56
57 // Token: 0x1700015C RID: 348
58 // (get) Token: 0x0600072F RID: 1839 RVA: 0x0001290C File Offset: 0x00010B0C
59 // (set) Token: 0x06000730 RID: 1840 RVA: 0x00012920 File Offset: 0x00010B20
60 public string Name
61 {
62 get
63 {
64 return this._name;
65 }
66 set
67 {
69 }
70 }
71
72 // Token: 0x1700015D RID: 349
73 // (get) Token: 0x06000731 RID: 1841 RVA: 0x00012934 File Offset: 0x00010B34
74 public override JTokenType Type
75 {
76 get
77 {
78 return JTokenType.Constructor;
79 }
80 }
81
82 // Token: 0x06000732 RID: 1842 RVA: 0x00012944 File Offset: 0x00010B44
83 public JConstructor()
84 {
85 }
86
87 // Token: 0x06000733 RID: 1843 RVA: 0x00012958 File Offset: 0x00010B58
89 : base(other)
90 {
91 string name = other._name;
93 }
94
95 // Token: 0x06000734 RID: 1844 RVA: 0x0001297C File Offset: 0x00010B7C
96 public JConstructor(string name, params object[] content)
97 {
98 }
99
100 // Token: 0x06000735 RID: 1845 RVA: 0x0001298C File Offset: 0x00010B8C
101 public JConstructor(string name, object content)
102 {
103 }
104
105 // Token: 0x06000736 RID: 1846 RVA: 0x0001299C File Offset: 0x00010B9C
106 public JConstructor(string name)
107 {
108 do
109 {
110 base..ctor();
111 if (name == null)
112 {
113 return;
114 }
115 }
116 while (name._stringLength == 0);
118 }
119
120 // Token: 0x06000737 RID: 1847 RVA: 0x000129C4 File Offset: 0x00010BC4
121 internal override bool DeepEquals(JToken node)
122 {
123 if (node != null)
124 {
125 string name = this._name;
126 bool flag;
127 return flag;
128 }
129 }
130
131 // Token: 0x06000738 RID: 1848 RVA: 0x0000212A File Offset: 0x0000032A
132 internal override JToken CloneToken()
133 {
134 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
135 }
136
137 // Token: 0x06000739 RID: 1849 RVA: 0x000129E0 File Offset: 0x00010BE0
138 public override void WriteTo(JsonWriter writer, params JsonConverter[] converters)
139 {
140 string name = this._name;
141 }
142
143 // Token: 0x1700015E RID: 350
144 public override JToken this[object key]
145 {
146 get
147 {
148 /*
149An exception occurred when decompiling this method (0600073A)
150
151ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.Linq.JToken Newtonsoft.Json.Linq.JConstructor::get_Item(System.Object)
152
153 ---> System.Exception: Basic block has to end with unconditional control flow.
154{
155 IL_000E:
156 stloc:CultureInfo(var_1_15, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
157 stloc:string(var_2_1C, call:string(MiscellaneousUtils::ToString, ldloc:object(key)))
158 stloc:string(var_3_29, call:string(StringUtils::FormatWith, ldstr:string("Accessed JConstructor values with invalid key value: {0}. Argument position index expected."), ldloc:CultureInfo[exp:IFormatProvider](var_1_15), ldloc:string[exp:object](var_2_1C)))
159}
160
161 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
162 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
163 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
164 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
165 --- End of inner exception stack trace ---
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 92
167 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
168*/;
169 }
170 set
171 {
172 /*
173An exception occurred when decompiling this method (0600073B)
174
175ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Newtonsoft.Json.Linq.JConstructor::set_Item(System.Object,Newtonsoft.Json.Linq.JToken)
176
177 ---> System.Exception: Basic block has to end with unconditional control flow.
178{
179 IL_000F:
180 stloc:CultureInfo(var_1_16, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
181 stloc:string(var_2_1D, call:string(MiscellaneousUtils::ToString, ldloc:object(key)))
182 stloc:string(var_3_2A, call:string(StringUtils::FormatWith, ldstr:string("Set JConstructor values with invalid key value: {0}. Argument position index expected."), ldloc:CultureInfo[exp:IFormatProvider](var_1_16), ldloc:string[exp:object](var_2_1D)))
183}
184
185 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
186 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
187 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
188 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
189 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
190 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
191 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
192 --- End of inner exception stack trace ---
193 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
194 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
195*/;
196 }
197 }
198
199 // Token: 0x0600073C RID: 1852 RVA: 0x00012A94 File Offset: 0x00010C94
200 internal override int GetDeepHashCode()
201 {
202 string name = this._name;
203 return base.ContentsHashCode();
204 }
205
206 // Token: 0x0600073D RID: 1853 RVA: 0x00012AB0 File Offset: 0x00010CB0
207 public new static JConstructor Load(JsonReader reader)
208 {
210 return jconstructor;
211 }
212
213 // Token: 0x0600073E RID: 1854 RVA: 0x00012AC0 File Offset: 0x00010CC0
214 public new static JConstructor Load(JsonReader reader, JsonLoadSettings settings)
215 {
216 bool flag;
217 if (flag)
218 {
219 }
221 throw new InvalidCastException();
222 }
223
224 // Token: 0x04000319 RID: 793
225 private string _name;
226
227 // Token: 0x0400031A RID: 794
229 }
230}
class f__AnonymousType0<< Count > j__TPar
static new JConstructor Load(JsonReader reader, JsonLoadSettings settings)
override IList< JToken > ChildrenTokens
override void MergeItem(object content, JsonMergeSettings settings)
JConstructor(string name, params object[] content)
readonly List< JToken > _values
JConstructor(string name, object content)
override int IndexOfItem(JToken item)
override void WriteTo(JsonWriter writer, params JsonConverter[] converters)
JConstructor(JConstructor other)
static new JConstructor Load(JsonReader reader)
override bool DeepEquals(JToken node)
static CultureInfo InvariantCulture