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
JPath.cs
Go to the documentation of this file.
1using System;
8
10{
11 // Token: 0x020000EC RID: 236
12 [Preserve]
13 internal class JPath
14 {
15 // Token: 0x170001C0 RID: 448
16 // (get) Token: 0x060009BF RID: 2495 RVA: 0x00017984 File Offset: 0x00015B84
17 // (set) Token: 0x060009C0 RID: 2496 RVA: 0x00017998 File Offset: 0x00015B98
19 {
21 get
22 {
23 return this.<Filters>k__BackingField;
24 }
26 private set
27 {
29 }
30 }
31
32 // Token: 0x060009C1 RID: 2497 RVA: 0x000179AC File Offset: 0x00015BAC
33 public JPath(string expression)
34 {
37 this.ParseMain();
38 }
39
40 // Token: 0x060009C2 RID: 2498 RVA: 0x000179D4 File Offset: 0x00015BD4
41 private void ParseMain()
42 {
43 int currentIndex = this._currentIndex;
44 this.EatWhitespace();
45 string expression = this._expression;
47 int stringLength = expression._stringLength;
48 char c = expression[currentIndex2];
49 string expression2 = this._expression;
50 int stringLength2 = expression2._stringLength;
52 char c2 = expression2[currentIndex2];
54 this._currentIndex = currentIndex;
56 long num = 0L;
57 bool flag = this.ParsePath(list, currentIndex, num != 0L);
59 this.EatWhitespace();
60 string expression3 = this._expression;
62 int stringLength3 = expression3._stringLength;
63 }
64
65 // Token: 0x060009C3 RID: 2499 RVA: 0x0000212A File Offset: 0x0000032A
67 {
68 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
69 }
70
71 // Token: 0x060009C4 RID: 2500 RVA: 0x00017A90 File Offset: 0x00015C90
77
78 // Token: 0x060009C5 RID: 2501 RVA: 0x00017AA8 File Offset: 0x00015CA8
80 {
81 int currentIndex = this._currentIndex;
82 string expression = this._expression;
83 int stringLength = expression._stringLength;
84 long num = 0L;
85 long num2 = 0L;
86 char c = expression[currentIndex];
88 this.EatWhitespace();
90 if (stringLength == 0)
91 {
92 }
93 long num3 = 0L;
94 if (stringLength == 0)
95 {
98 int stringLength2 = this._expression._stringLength;
99 if (stringLength2 == 0 || stringLength2 != 0)
100 {
101 int currentIndex5 = this._currentIndex;
102 string text = this._expression.Substring(currentIndex, 42240400);
105 if (num2 == 0L)
106 {
107 goto IL_00CE;
108 }
109 }
110 int currentIndex6 = this._currentIndex;
111 if (num == 0L)
112 {
113 }
114 string expression2 = this._expression;
116 string text2;
118 int currentIndex7 = this._currentIndex;
119 IL_00CE:
120 int currentIndex8 = this._currentIndex;
122 this.EatWhitespace();
123 int currentIndex9 = this._currentIndex;
124 int stringLength3 = this._expression._stringLength;
125 long num6 = 0L;
126 if (stringLength3 != 0)
127 {
128 }
129 if (num6 == 0L)
130 {
131 goto IL_0160;
132 }
134 string text3;
136 int stringLength4 = text3._stringLength;
138 string text4;
140 if (!false)
141 {
142 goto IL_0160;
143 }
145 string text5;
147 }
148 string text7;
149 string text6 = "Unexpected character while parsing path indexer: " + text7;
150 IL_0160:
151 return "Array index expected.";
152 }
153
154 // Token: 0x060009C6 RID: 2502 RVA: 0x00017C1C File Offset: 0x00015E1C
155 private void EatWhitespace()
156 {
157 string expression = this._expression;
158 int currentIndex = this._currentIndex;
159 int stringLength = expression._stringLength;
160 char c = expression[currentIndex];
161 int currentIndex2 = this._currentIndex;
162 string expression2 = this._expression;
163 this._currentIndex = currentIndex;
164 }
165
166 // Token: 0x060009C7 RID: 2503 RVA: 0x00017C60 File Offset: 0x00015E60
168 {
169 /*
170An exception occurred when decompiling this method (060009C7)
171
172ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.Linq.JsonPath.PathFilter Newtonsoft.Json.Linq.JsonPath.JPath::ParseQuery(System.Char)
173
174 ---> System.Exception: Basic block has to end with unconditional control flow.
175{
176 Block_0:
177 stloc:int32(var_0_06, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
178 stfld:int32(JPath::_currentIndex, ldloc:JPath(this), ldloc:int32(var_0_06))
179 call:void(JPath::EnsureLength, ldloc:JPath(this), ldstr:string("Path ended with open indexer."))
180 stloc:string(var_1_1F, ldfld:string(JPath::_expression, ldloc:JPath(this)))
181 stloc:int32(var_2_26, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
182 stloc:char(var_3_2E, callgetter:char(string::get_Chars, ldloc:string(var_1_1F), ldloc:int32(var_2_26)))
183 stloc:int32(var_4_35, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
184 stfld:int32(JPath::_currentIndex, ldloc:JPath(this), ldloc:int32(var_4_35))
185 stloc:QueryExpression(var_5_45, call:QueryExpression(JPath::ParseExpression, ldloc:JPath(this)))
186 stloc:int32(var_6_4D, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
187 stfld:int32(JPath::_currentIndex, ldloc:JPath(this), ldloc:int32(var_6_4D))
188 call:void(JPath::EnsureLength, ldloc:JPath(this), ldstr:string("Path ended with open indexer."))
189 call:void(JPath::EatWhitespace, ldloc:JPath(this))
190 stloc:string(var_7_6E, ldfld:string(JPath::_expression, ldloc:JPath(this)))
191 stloc:int32(var_8_76, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
192 stloc:char(var_9_81, callgetter:char(string::get_Chars, ldloc:string(var_7_6E), ldloc:int32(var_8_76)))
193 stloc:string(var_12_8D, call:string(char::ToString, ldloc:char[exp:char&](var_11)))
194 stloc:string(var_13_9B, call:string(string::Concat, ldstr:string("Unexpected character while parsing path indexer: "), ldloc:string(var_12_8D)))
195}
196
197 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
198 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
199 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
200 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
201 --- End of inner exception stack trace ---
202 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
203 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
204*/;
205 }
206
207 // Token: 0x060009C8 RID: 2504 RVA: 0x00017D0C File Offset: 0x00015F0C
209 {
210 string expression = this._expression;
211 int currentIndex = this._currentIndex;
212 int stringLength = expression._stringLength;
213 long num = 0L;
214 this.EatWhitespace();
215 string expression2 = this._expression;
216 int currentIndex2 = this._currentIndex;
217 char c = expression2[currentIndex2];
218 int currentIndex3 = this._currentIndex;
220 int currentIndex4 = this._currentIndex;
221 this.EatWhitespace();
222 this.EnsureLength("Path ended with open query.");
223 string expression3 = this._expression;
224 int currentIndex5 = this._currentIndex;
225 char c2 = expression3[currentIndex5];
226 string expression4 = this._expression;
227 int currentIndex6 = this._currentIndex;
228 char c3 = expression4[currentIndex6];
229 string expression5 = this._expression;
230 int currentIndex7 = this._currentIndex;
231 char c4 = expression5[currentIndex7];
232 string expression6 = this._expression;
233 int currentIndex8 = this._currentIndex;
234 char c5 = expression6[currentIndex8];
235 string expression7 = this._expression;
236 int currentIndex9 = this._currentIndex;
237 char c6 = expression7[currentIndex9];
238 bool flag = this.Match("&&");
239 if (num != 0L)
240 {
241 }
242 if (num != 0L)
243 {
245 this.EatWhitespace();
246 this.EnsureLength("Path ended with open query.");
247 object obj = this.ParseValue();
248 this.EatWhitespace();
249 this.EnsureLength("Path ended with open query.");
250 }
252 int currentIndex10 = this._currentIndex;
253 string expression8 = this._expression;
254 list._syncRoot = 1073741824;
255 string expression9 = this._expression;
256 int currentIndex11 = this._currentIndex;
257 char c7 = expression9[currentIndex11];
258 bool flag2 = this.Match("||");
259 string expression10 = this._expression;
260 int currentIndex12 = this._currentIndex;
261 int stringLength2 = expression10._stringLength;
262 return 1073741824;
263 }
264
265 // Token: 0x060009C9 RID: 2505 RVA: 0x00017EDC File Offset: 0x000160DC
266 private object ParseValue()
267 {
268 /*
269An exception occurred when decompiling this method (060009C9)
270
271ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object Newtonsoft.Json.Linq.JsonPath.JPath::ParseValue()
272
273 ---> System.Exception: Basic block has to end with unconditional control flow.
274{
275 Block_0:
276 stloc:string(var_1_08, ldfld:string(JPath::_expression, ldloc:JPath(this)))
277 stloc:int32(var_2_0F, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
278 stloc:char(var_3_17, callgetter:char(string::get_Chars, ldloc:string(var_1_08), ldloc:int32(var_2_0F)))
279 stloc:string(var_4_1E, call:string(JPath::ReadQuotedString, ldloc:JPath(this)))
280 stloc:bool(var_6_2B, call:bool(JPath::Match, ldloc:JPath(this), ldstr:string("true")))
281 stloc:int32(var_8_33, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
282 stloc:string(var_9_3B, ldfld:string(JPath::_expression, ldloc:JPath(this)))
283 stfld:int32(JPath::_currentIndex, ldloc:JPath(this), ldloc:string[exp:int32](var_4_1E))
284 stloc:int32(var_10_4C, ldfld:int32(string::_stringLength, ldloc:string(var_9_3B)))
285 stloc:int32(var_13_54, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
286 stloc:string(var_14_5C, ldfld:string(JPath::_expression, ldloc:JPath(this)))
287 stfld:int32(JPath::_currentIndex, ldloc:JPath(this), ldloc:char[exp:int32](var_11))
288 stloc:int32(var_15_6D, ldfld:int32(string::_stringLength, ldloc:string(var_14_5C)))
289 stloc:CultureInfo(var_19_7A, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
290}
291
292 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
293 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
294 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
295 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
296 --- End of inner exception stack trace ---
297 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
298 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
299*/;
300 }
301
302 // Token: 0x060009CA RID: 2506 RVA: 0x00017F68 File Offset: 0x00016168
303 private string ReadQuotedString()
304 {
305 long num = 0L;
306 int currentIndex = this._currentIndex;
307 string expression = this._expression;
308 this._currentIndex = (int)num;
309 int stringLength = expression._stringLength;
310 char c = expression[(int)num];
311 int currentIndex2 = this._currentIndex;
312 int currentIndex3 = this._currentIndex;
313 this._currentIndex = (int)num;
314 int num2 = 39;
316 int currentIndex4 = this._currentIndex;
317 string expression2 = this._expression;
318 int currentIndex5 = this._currentIndex;
319 char c2 = expression2[currentIndex5];
320 int num3 = 92;
321 int currentIndex6 = this._currentIndex;
323 return this._expression;
324 }
325
326 // Token: 0x060009CB RID: 2507 RVA: 0x00018024 File Offset: 0x00016224
327 private bool Match(string s)
328 {
329 /*
330An exception occurred when decompiling this method (060009CB)
331
332ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.Linq.JsonPath.JPath::Match(System.String)
333
334 ---> System.Exception: Basic block has to end with unconditional control flow.
335{
336 Block_0:
337 stloc:int32(var_0_06, ldfld:int32(string::_stringLength, ldloc:string(s)))
338 stloc:int32(var_1_0D, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
339 stloc:int64(var_2_0F, ldc.i4:int64(0))
340 stloc:char(var_3_17, callgetter:char(string::get_Chars, ldloc:string(s), ldloc:int64[exp:int32](var_2_0F)))
341 stloc:string(var_4_1E, ldfld:string(JPath::_expression, ldloc:JPath(this)))
342 stloc:int32(var_5_27, ldfld:int32(string::_stringLength, ldloc:string(var_4_1E)))
343 stloc:char(var_6_31, callgetter:char(string::get_Chars, ldloc:string(var_4_1E), ldloc:int64[exp:int32](var_2_0F)))
344 stloc:int32(var_7_39, ldfld:int32(string::_stringLength, ldloc:string(s)))
345 stfld:int32(JPath::_currentIndex, ldloc:JPath(this), ldloc:int32(var_1_0D))
346}
347
348 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
349 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
350 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
351 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
352 --- End of inner exception stack trace ---
353 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
354 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
355*/;
356 }
357
358 // Token: 0x060009CC RID: 2508 RVA: 0x00018078 File Offset: 0x00016278
360 {
361 string expression = this._expression;
362 int currentIndex = this._currentIndex;
363 int stringLength = expression._stringLength;
364 bool flag = this.Match("==");
365 bool flag2 = this.Match("!=");
366 bool flag3 = this.Match("<>");
367 bool flag4 = this.Match("<=");
368 bool flag5 = this.Match("<");
369 bool flag6 = this.Match(">=");
370 bool flag7 = this.Match(">");
371 return "Could not read query operator.";
372 }
373
374 // Token: 0x060009CD RID: 2509 RVA: 0x0001810C File Offset: 0x0001630C
376 {
377 /*
378An exception occurred when decompiling this method (060009CD)
379
380ICSharpCode.Decompiler.DecompilerException: Error decompiling Newtonsoft.Json.Linq.JsonPath.PathFilter Newtonsoft.Json.Linq.JsonPath.JPath::ParseQuotedField(System.Char)
381
382 ---> System.Exception: Basic block has to end with unconditional control flow.
383{
384 IL_007F:
385 stloc:string(var_12_85, ldfld:string(JPath::_expression, ldloc:JPath(this)))
386 stloc:int32(var_13_8D, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
387 stloc:int32(var_14_96, ldfld:int32(string::_stringLength, ldloc:string(var_12_85)))
388 stloc:string(var_15_9E, ldfld:string(JPath::_expression, ldloc:JPath(this)))
389 stloc:int32(var_16_A6, ldfld:int32(JPath::_currentIndex, ldloc:JPath(this)))
390 stloc:string(var_17_B6, call:string(char::ToString, callgetter:char[exp:char&](string::get_Chars, ldloc:string(var_15_9E), ldloc:int32(var_16_A6))))
391 stloc:string(var_18_C4, call:string(string::Concat, ldstr:string("Unexpected character while parsing path indexer: "), ldloc:string(var_17_B6)))
392}
393
394 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
395 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
396 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
397 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
398 --- End of inner exception stack trace ---
399 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
400 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
401*/;
402 }
403
404 // Token: 0x060009CE RID: 2510 RVA: 0x000181E0 File Offset: 0x000163E0
405 private void EnsureLength(string message)
406 {
407 string expression = this._expression;
408 int currentIndex = this._currentIndex;
409 int stringLength = expression._stringLength;
410 }
411
412 // Token: 0x060009CF RID: 2511 RVA: 0x00018204 File Offset: 0x00016404
417
418 // Token: 0x060009D0 RID: 2512 RVA: 0x00018220 File Offset: 0x00016420
420 {
421 if (filters == null || filters != null)
422 {
423 }
424 throw new ArrayTypeMismatchException();
425 }
426
427 // Token: 0x040003CD RID: 973
428 private readonly string _expression;
429
430 // Token: 0x040003CE RID: 974
433
434 // Token: 0x040003CF RID: 975
435 private int _currentIndex;
436 }
437}
class f__AnonymousType0<< Count > j__TPar
IEnumerable< JToken > Evaluate(JToken t, bool errorWhenNoMatch)
Definition JPath.cs:413
List< PathFilter > Filters
Definition JPath.cs:19
PathFilter ParseQuotedField(char indexerCloseChar)
Definition JPath.cs:375
PathFilter ParseQuery(char indexerCloseChar)
Definition JPath.cs:167
static IEnumerable< JToken > Evaluate(List< PathFilter > filters, JToken t, bool errorWhenNoMatch)
Definition JPath.cs:419
PathFilter ParseArrayIndexer(char indexerCloseChar)
Definition JPath.cs:79
JPath(string expression)
Definition JPath.cs:33
void EnsureLength(string message)
Definition JPath.cs:405
List< PathFilter >< Filters > k__BackingField
Definition JPath.cs:432
bool ParsePath(List< PathFilter > filters, int currentPartStartIndex, bool query)
Definition JPath.cs:66
PathFilter ParseIndexer(char indexerOpenChar)
Definition JPath.cs:72
QueryExpression ParseExpression()
Definition JPath.cs:208
static void ArgumentNotNull(object value, string parameterName)
static int ToInt32(object value)
Definition Convert.cs:1412
static CultureInfo InvariantCulture