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
TimeSpanParse.cs
Go to the documentation of this file.
1using System;
3using System.Text;
4
6{
7 // Token: 0x0200059C RID: 1436
8 internal static class TimeSpanParse
9 {
10 // Token: 0x06002B34 RID: 11060 RVA: 0x0005E9A8 File Offset: 0x0005CBA8
11 internal static long Pow10(int pow)
12 {
13 return 0L;
14 }
15
16 // Token: 0x06002B35 RID: 11061 RVA: 0x0005E9B8 File Offset: 0x0005CBB8
18 {
19 /*
20An exception occurred when decompiling this method (06002B35)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Globalization.TimeSpanParse::TryTimeToTicks(System.Boolean,System.Globalization.TimeSpanParse/TimeSpanToken,System.Globalization.TimeSpanParse/TimeSpanToken,System.Globalization.TimeSpanParse/TimeSpanToken,System.Globalization.TimeSpanParse/TimeSpanToken,System.Globalization.TimeSpanParse/TimeSpanToken,System.Int64)
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 IL_004A:
27 stloc:int32(var_10_4F, ldc.i4:int32(38528))
28 stfld:TTT(TimeSpanToken::_ttt, ldloc:TimeSpanToken[exp:valuetype System.Globalization.TimeSpanParse/TimeSpanToken&](fraction), ldloc:int32[exp:TTT](var_10_4F))
29}
30
31 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
32 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
33 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
34 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
35 --- End of inner exception stack trace ---
36 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
37 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
38*/;
39 }
40
41 // Token: 0x06002B36 RID: 11062 RVA: 0x0005EA20 File Offset: 0x0005CC20
43 {
44 return 1;
45 }
46
47 // Token: 0x06002B37 RID: 11063 RVA: 0x0005EA30 File Offset: 0x0005CC30
52
53 // Token: 0x06002B38 RID: 11064 RVA: 0x0005EA40 File Offset: 0x0005CC40
62
63 // Token: 0x06002B39 RID: 11065 RVA: 0x0005EA6C File Offset: 0x0005CC6C
65 {
66 bool flag;
67 return flag;
68 }
69
70 // Token: 0x06002B3A RID: 11066 RVA: 0x0005EA90 File Offset: 0x0005CC90
72 {
73 int num = 1;
74 if (num == 0)
75 {
76 }
77 int value = num.m_value;
78 bool flag;
79 return flag;
80 }
81
82 // Token: 0x06002B3B RID: 11067 RVA: 0x0005EAD0 File Offset: 0x0005CCD0
84 {
85 int num = 1;
86 if (num == 0)
87 {
88 }
89 int value = num.m_value;
90 bool flag;
91 return flag;
92 }
93
94 // Token: 0x06002B3C RID: 11068 RVA: 0x0005EB88 File Offset: 0x0005CD88
96 {
97 if (!true)
98 {
99 }
100 bool flag;
101 return flag;
102 }
103
104 // Token: 0x06002B3D RID: 11069 RVA: 0x0005EBF4 File Offset: 0x0005CDF4
106 {
107 if (!true)
108 {
109 }
110 bool flag;
111 return flag;
112 }
113
114 // Token: 0x06002B3E RID: 11070 RVA: 0x0005EC1C File Offset: 0x0005CE1C
116 {
117 if (!true)
118 {
119 }
120 bool flag;
121 return flag;
122 }
123
124 // Token: 0x06002B3F RID: 11071 RVA: 0x0005EC44 File Offset: 0x0005CE44
126 {
127 if (formatProvider == null)
128 {
129 }
130 bool flag;
131 return flag;
132 }
133
134 // Token: 0x06002B40 RID: 11072 RVA: 0x0005EC60 File Offset: 0x0005CE60
136 {
137 if (!true)
138 {
139 }
140 if (!true)
141 {
142 }
143 if (43155456 == 0)
144 {
145 }
146 bool flag;
147 return flag;
148 }
149
150 // Token: 0x06002B41 RID: 11073 RVA: 0x0005ECD0 File Offset: 0x0005CED0
151 private static bool ParseExactDigits(TimeSpanParse.TimeSpanTokenizer tokenizer, int minDigitLength, [Out] int result)
152 {
153 bool flag;
154 return flag;
155 }
156
157 // Token: 0x06002B42 RID: 11074 RVA: 0x0005ECE0 File Offset: 0x0005CEE0
158 private static bool ParseExactDigits(TimeSpanParse.TimeSpanTokenizer tokenizer, int minDigitLength, int maxDigitLength, [Out] int zeroes, [Out] int result)
159 {
160 /*
161An exception occurred when decompiling this method (06002B42)
162
163ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Globalization.TimeSpanParse::ParseExactDigits(System.Globalization.TimeSpanParse/TimeSpanTokenizer,System.Int32,System.Int32,System.Int32,System.Int32)
164
165 ---> System.Exception: Basic block has to end with unconditional control flow.
166{
167 Block_0:
168 stloc:int64(var_3_05, ldc.i4:int64(0))
169 stloc:int64(var_4_07, ldc.i4:int64(0))
170 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](maxDigitLength), ldloc:int64[exp:int32](var_3_05))
171 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](zeroes), ldloc:int64[exp:int32](var_4_07))
172}
173
174 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
175 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
176 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
177 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
178 --- End of inner exception stack trace ---
179 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
180 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
181*/;
182 }
183
184 // Token: 0x06002B43 RID: 11075 RVA: 0x0005ED04 File Offset: 0x0005CF04
188
189 // Token: 0x06002B44 RID: 11076 RVA: 0x0005ED18 File Offset: 0x0005CF18
191 {
192 bool flag;
193 return flag;
194 }
195
196 // Token: 0x0200059D RID: 1437
197 private enum ParseFailureKind : byte
198 {
199 // Token: 0x040017C4 RID: 6084
200 None,
201 // Token: 0x040017C5 RID: 6085
203 // Token: 0x040017C6 RID: 6086
204 Format,
205 // Token: 0x040017C7 RID: 6087
207 // Token: 0x040017C8 RID: 6088
209 }
210
211 // Token: 0x0200059E RID: 1438
212 [Flags]
213 private enum TimeSpanStandardStyles : byte
214 {
215 // Token: 0x040017CA RID: 6090
216 None = 0,
217 // Token: 0x040017CB RID: 6091
218 Invariant = 1,
219 // Token: 0x040017CC RID: 6092
220 Localized = 2,
221 // Token: 0x040017CD RID: 6093
222 RequireFull = 4,
223 // Token: 0x040017CE RID: 6094
224 Any = 3
225 }
226
227 // Token: 0x0200059F RID: 1439
228 private enum TTT : byte
229 {
230 // Token: 0x040017D0 RID: 6096
231 None,
232 // Token: 0x040017D1 RID: 6097
233 End,
234 // Token: 0x040017D2 RID: 6098
235 Num,
236 // Token: 0x040017D3 RID: 6099
237 Sep,
238 // Token: 0x040017D4 RID: 6100
240 }
241
242 // Token: 0x020005A0 RID: 1440
243 [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
244 private ref struct TimeSpanToken
245 {
246 // Token: 0x06002B45 RID: 11077 RVA: 0x0005ED28 File Offset: 0x0005CF28
248 {
249 this._ttt = type;
250 }
251
252 // Token: 0x06002B46 RID: 11078 RVA: 0x0005ED3C File Offset: 0x0005CF3C
254 {
257 }
258
259 // Token: 0x06002B47 RID: 11079 RVA: 0x0005ED58 File Offset: 0x0005CF58
261 {
264 }
265
266 // Token: 0x06002B48 RID: 11080 RVA: 0x0005ED74 File Offset: 0x0005CF74
273
274 // Token: 0x06002B49 RID: 11081 RVA: 0x0005ED98 File Offset: 0x0005CF98
275 public bool IsInvalidFraction()
276 {
277 /*
278An exception occurred when decompiling this method (06002B49)
279
280ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Globalization.TimeSpanParse/TimeSpanToken::IsInvalidFraction()
281
282 ---> System.Exception: Basic block has to end with unconditional control flow.
283{
284 Block_1:
285 stloc:int64(var_4_1A, call:int64(TimeSpanParse::Pow10, ldloc:int64[exp:int32](var_3_10)))
286}
287
288 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
289 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
290 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
291 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
292 --- End of inner exception stack trace ---
293 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
294 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
295*/;
296 }
297
298 // Token: 0x040017D5 RID: 6101
300
301 // Token: 0x040017D6 RID: 6102
302 internal int _num;
303
304 // Token: 0x040017D7 RID: 6103
305 internal int _zeroes;
306
307 // Token: 0x040017D8 RID: 6104
309 }
310
311 // Token: 0x020005A1 RID: 1441
312 [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
313 private ref struct TimeSpanTokenizer
314 {
315 // Token: 0x06002B4A RID: 11082 RVA: 0x0005EDC8 File Offset: 0x0005CFC8
320
321 // Token: 0x06002B4B RID: 11083 RVA: 0x0005EDDC File Offset: 0x0005CFDC
322 internal TimeSpanTokenizer(ReadOnlySpan<char> input, int startPosition)
323 {
325 }
326
327 // Token: 0x06002B4C RID: 11084 RVA: 0x0005EDF0 File Offset: 0x0005CFF0
329 {
330 /*
331An exception occurred when decompiling this method (06002B4C)
332
333ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.TimeSpanParse/TimeSpanToken System.Globalization.TimeSpanParse/TimeSpanTokenizer::GetNextToken()
334
335 ---> System.Exception: Basic block has to end with unconditional control flow.
336{
337 Block_0:
338 stloc:int32(var_1_06, ldfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this)))
339 stloc:int64(var_2_08, ldc.i4:int64(0))
340 stfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this), ldloc:int32(var_1_06))
341 stfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this), ldloc:int64[exp:int32](var_2_08))
342 stloc:int32(var_6_20, ldc.i4:int32(1))
343 call:void(ThrowHelper::ThrowArgumentOutOfRangeException)
344 stloc:int32(var_8_2B, ldc.i4:int32(3))
345 stfld:TTT(TimeSpanToken::_ttt, ldloc:TimeSpanToken[exp:valuetype System.Globalization.TimeSpanParse/TimeSpanToken&](var_0), ldloc:int32[exp:TTT](var_8_2B))
346 stfld:valuetype System.ReadOnlySpan`1<char>(TimeSpanToken::_sep, ldloc:TimeSpanToken[exp:valuetype System.Globalization.TimeSpanParse/TimeSpanToken&](var_0), ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&[exp:valuetype System.ReadOnlySpan`1<char>](this))
347 stfld:int32(ReadOnlySpan`1::_length, ldfld:valuetype System.ReadOnlySpan`1<char>[exp:valuetype System.ReadOnlySpan`1&](TimeSpanToken::_sep, ldloc:TimeSpanToken[exp:valuetype System.Globalization.TimeSpanParse/TimeSpanToken&](var_0)), ldloc:int32(var_6_20))
348 stfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this), ldloc:int32(var_8_2B))
349 stloc:int32(var_11_58, ldc.i4:int32(2))
350 stfld:TTT(TimeSpanToken::_ttt, ldloc:TimeSpanToken[exp:valuetype System.Globalization.TimeSpanParse/TimeSpanToken&](var_0), ldloc:int32[exp:TTT](var_11_58))
351}
352
353 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
354 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
355 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
356 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
357 --- End of inner exception stack trace ---
358 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
359 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
360*/;
361 }
362
363 // Token: 0x1700065D RID: 1629
364 // (get) Token: 0x06002B4D RID: 11085 RVA: 0x0005EE60 File Offset: 0x0005D060
365 internal bool EOL
366 {
367 get
368 {
369 /*
370An exception occurred when decompiling this method (06002B4D)
371
372ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Globalization.TimeSpanParse/TimeSpanTokenizer::get_EOL()
373
374 ---> System.Exception: Basic block has to end with unconditional control flow.
375{
376 Block_0:
377 stloc:int32(var_1_08, ldfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this)))
378}
379
380 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
381 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
382 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
383 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
384 --- End of inner exception stack trace ---
385 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
386 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
387*/;
388 }
389 }
390
391 // Token: 0x06002B4E RID: 11086 RVA: 0x0005EE78 File Offset: 0x0005D078
392 internal void BackOne()
393 {
394 int pos = this._pos;
395 this._pos = pos;
396 }
397
398 // Token: 0x1700065E RID: 1630
399 // (get) Token: 0x06002B4F RID: 11087 RVA: 0x0005EE94 File Offset: 0x0005D094
400 internal char NextChar
401 {
402 get
403 {
404 /*
405An exception occurred when decompiling this method (06002B4F)
406
407ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char System.Globalization.TimeSpanParse/TimeSpanTokenizer::get_NextChar()
408
409 ---> System.Exception: Basic block has to end with unconditional control flow.
410{
411 Block_0:
412 stloc:int32(var_0_06, ldfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this)))
413 stfld:int32(TimeSpanTokenizer::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanTokenizer&(this), ldloc:int32(var_0_06))
414}
415
416 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
417 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
418 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
419 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
420 --- End of inner exception stack trace ---
421 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
422 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
423*/;
424 }
425 }
426
427 // Token: 0x040017D9 RID: 6105
429
430 // Token: 0x040017DA RID: 6106
431 private int _pos;
432 }
433
434 // Token: 0x020005A2 RID: 1442
435 [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
436 private ref struct TimeSpanRawInfo
437 {
438 // Token: 0x1700065F RID: 1631
439 // (get) Token: 0x06002B50 RID: 11088 RVA: 0x0005EEB0 File Offset: 0x0005D0B0
441 {
442 get
443 {
444 if (!true)
445 {
446 }
447 return 1;
448 }
449 }
450
451 // Token: 0x17000660 RID: 1632
452 // (get) Token: 0x06002B51 RID: 11089 RVA: 0x0005EEC4 File Offset: 0x0005D0C4
454 {
455 get
456 {
457 if (!true)
458 {
459 }
460 return 1;
461 }
462 }
463
464 // Token: 0x17000661 RID: 1633
465 // (get) Token: 0x06002B52 RID: 11090 RVA: 0x0005EED8 File Offset: 0x0005D0D8
467 {
468 get
469 {
470 /*
471An exception occurred when decompiling this method (06002B52)
472
473ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.TimeSpanFormat/FormatLiterals System.Globalization.TimeSpanParse/TimeSpanRawInfo::get_PositiveLocalized()
474
475 ---> System.Exception: Basic block has to end with unconditional control flow.
476{
477 IL_002F:
478 stloc:string[](var_4_3A, ldfld:string[](FormatLiterals::_literals, ldfld:FormatLiterals[exp:valuetype System.Globalization.TimeSpanFormat/FormatLiterals&](TimeSpanRawInfo::_posLoc, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanRawInfo&(this))))
479 stloc:string(var_5_47, ldfld:string(FormatLiterals::AppCompatLiteral, ldfld:FormatLiterals[exp:valuetype System.Globalization.TimeSpanFormat/FormatLiterals&](TimeSpanRawInfo::_posLoc, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanRawInfo&(this))))
480 stfld:string[](FormatLiterals::_literals, ldloc:FormatLiterals[exp:valuetype System.Globalization.TimeSpanFormat/FormatLiterals&](var_0), ldloc:string[](var_4_3A))
481 stfld:string(FormatLiterals::AppCompatLiteral, ldloc:FormatLiterals[exp:valuetype System.Globalization.TimeSpanFormat/FormatLiterals&](var_0), ldloc:string(var_5_47))
482}
483
484 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
485 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
486 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
487 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
488 --- End of inner exception stack trace ---
489 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
490 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
491*/;
492 }
493 }
494
495 // Token: 0x17000662 RID: 1634
496 // (get) Token: 0x06002B53 RID: 11091 RVA: 0x0005EF40 File Offset: 0x0005D140
498 {
499 get
500 {
501 /*
502An exception occurred when decompiling this method (06002B53)
503
504ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Globalization.TimeSpanFormat/FormatLiterals System.Globalization.TimeSpanParse/TimeSpanRawInfo::get_NegativeLocalized()
505
506 ---> System.Exception: Basic block has to end with unconditional control flow.
507{
508 IL_0023:
509 stloc:string[](var_4_2E, ldfld:string[](FormatLiterals::_literals, ldfld:FormatLiterals[exp:valuetype System.Globalization.TimeSpanFormat/FormatLiterals&](TimeSpanRawInfo::_negLoc, ldloc:valuetype System.Globalization.TimeSpanParse/TimeSpanRawInfo&(this))))
510 stfld:string[](FormatLiterals::_literals, ldloc:FormatLiterals[exp:valuetype System.Globalization.TimeSpanFormat/FormatLiterals&](var_0), ldloc:string[](var_4_2E))
511}
512
513 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
514 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
515 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
516 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
517 --- End of inner exception stack trace ---
518 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
519 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
520*/;
521 }
522 }
523
524 // Token: 0x06002B54 RID: 11092 RVA: 0x0005EF84 File Offset: 0x0005D184
526 {
527 int sepCount = this._sepCount;
528 int numCount = this._numCount;
529 string[] literals = pattern._literals;
531 if (this._literals0._length != 0)
532 {
533 bool flag;
534 return flag;
535 }
536 string[] literals3 = pattern._literals;
538 if (this._literals1._length != 0)
539 {
540 bool flag2;
541 return flag2;
542 }
543 string[] literals5 = pattern._literals;
545 if (this._literals2._length != 0)
546 {
547 bool flag3;
548 return flag3;
549 }
551 int length = this._literals3._length;
552 if (length != 0)
553 {
554 bool flag4;
555 return flag4;
556 }
557 string[] literals8 = pattern._literals;
559 int length2 = this._literals4._length;
560 if (length != 0)
561 {
562 }
563 bool flag5;
564 return length2 == 0 || flag5;
565 }
566
567 // Token: 0x06002B55 RID: 11093 RVA: 0x0005F048 File Offset: 0x0005D248
569 {
570 int sepCount = this._sepCount;
571 int numCount = this._numCount;
572 string[] literals = pattern._literals;
574 if (this._literals0._length != 0)
575 {
576 bool flag;
577 return flag;
578 }
579 string[] literals3 = pattern._literals;
581 if (this._literals1._length != 0)
582 {
583 bool flag2;
584 return flag2;
585 }
587 int length = this._literals2._length;
588 if (length != 0)
589 {
590 bool flag3;
591 return flag3;
592 }
593 string[] literals6 = pattern._literals;
595 int length2 = this._literals3._length;
596 if (length != 0)
597 {
598 }
599 if (length2 != 0)
600 {
601 bool flag4;
602 return flag4;
603 }
604 }
605
606 // Token: 0x06002B56 RID: 11094 RVA: 0x0005F0EC File Offset: 0x0005D2EC
608 {
609 int sepCount = this._sepCount;
610 int numCount = this._numCount;
611 string[] literals = pattern._literals;
613 if (this._literals0._length != 0)
614 {
615 bool flag;
616 return flag;
617 }
618 string[] literals3 = pattern._literals;
620 if (this._literals1._length != 0)
621 {
622 bool flag2;
623 return flag2;
624 }
625 string[] literals5 = pattern._literals;
627 if (this._literals2._length != 0)
628 {
629 bool flag3;
630 return flag3;
631 }
632 string[] literals7 = pattern._literals;
634 if (this._literals3._length != 0)
635 {
636 bool flag4;
637 return flag4;
638 }
639 string[] literals9 = pattern._literals;
641 int length = this._literals4._length;
642 if (length != 0)
643 {
644 bool flag5;
645 return flag5;
646 }
647 string[] literals11 = pattern._literals;
649 int length2 = this._literals5._length;
650 if (length != 0)
651 {
652 }
653 bool flag6;
654 return length2 == 0 || flag6;
655 }
656
657 // Token: 0x06002B57 RID: 11095 RVA: 0x0005F1D8 File Offset: 0x0005D3D8
659 {
660 int sepCount = this._sepCount;
661 int numCount = this._numCount;
662 string[] literals = pattern._literals;
664 int length = this._literals0._length;
665 if (length != 0)
666 {
667 bool flag;
668 return flag;
669 }
670 string[] literals3 = pattern._literals;
672 int length2 = this._literals1._length;
673 if (length != 0)
674 {
675 }
676 bool flag2;
677 return length2 == 0 || flag2;
678 }
679
680 // Token: 0x06002B58 RID: 11096 RVA: 0x0005F244 File Offset: 0x0005D444
682 {
683 int sepCount = this._sepCount;
684 int numCount = this._numCount;
685 string[] literals = pattern._literals;
687 if (this._literals0._length != 0)
688 {
689 bool flag;
690 return flag;
691 }
692 string[] literals3 = pattern._literals;
694 int length = this._literals1._length;
695 if (length != 0)
696 {
697 bool flag2;
698 return flag2;
699 }
700 string[] literals5 = pattern._literals;
701 if (length != 0)
702 {
703 }
704 bool flag3;
705 return (ref this) == null || flag3;
706 }
707
708 // Token: 0x06002B59 RID: 11097 RVA: 0x0005F2B8 File Offset: 0x0005D4B8
710 {
711 int sepCount = this._sepCount;
712 int numCount = this._numCount;
713 string[] literals = pattern._literals;
715 if (this._literals0._length != 0)
716 {
717 bool flag;
718 return flag;
719 }
720 string[] literals3 = pattern._literals;
722 if (this._literals1._length != 0)
723 {
724 bool flag2;
725 return flag2;
726 }
727 string[] literals5 = pattern._literals;
729 int length = this._literals2._length;
730 if (length != 0)
731 {
732 bool flag3;
733 return flag3;
734 }
735 string[] literals7 = pattern._literals;
737 int length2 = this._literals3._length;
738 if (length != 0)
739 {
740 }
741 bool flag4;
742 return length2 == 0 || flag4;
743 }
744
745 // Token: 0x06002B5A RID: 11098 RVA: 0x0005F364 File Offset: 0x0005D564
747 {
748 int sepCount = this._sepCount;
749 int numCount = this._numCount;
750 string[] literals = pattern._literals;
752 if (this._literals0._length != 0)
753 {
754 int dd = pattern.dd;
755 bool flag;
756 return flag;
757 }
758 string[] literals3 = pattern._literals;
760 if (this._literals1._length != 0)
761 {
762 bool flag2;
763 return flag2;
764 }
765 string[] literals5 = pattern._literals;
767 int length = this._literals2._length;
768 if (length != 0)
769 {
770 bool flag3;
771 return flag3;
772 }
773 string[] literals7 = pattern._literals;
775 int length2 = this._literals3._length;
776 if (length != 0)
777 {
778 }
779 bool flag4;
780 return length2 == 0 || flag4;
781 }
782
783 // Token: 0x06002B5B RID: 11099 RVA: 0x0005F418 File Offset: 0x0005D618
785 {
786 int sepCount = this._sepCount;
787 int numCount = this._numCount;
788 string[] literals = pattern._literals;
790 if (this._literals0._length != 0)
791 {
792 bool flag;
793 return flag;
794 }
795 string[] literals3 = pattern._literals;
797 if (this._literals1._length != 0)
798 {
799 bool flag2;
800 return flag2;
801 }
802 string[] literals5 = pattern._literals;
804 if (this._literals2._length != 0)
805 {
806 bool flag3;
807 return flag3;
808 }
809 string[] literals7 = pattern._literals;
811 int length = this._literals3._length;
812 if (length != 0)
813 {
814 bool flag4;
815 return flag4;
816 }
817 string[] literals9 = pattern._literals;
819 int length2 = this._literals4._length;
820 if (length != 0)
821 {
822 }
823 bool flag5;
824 return length2 == 0 || flag5;
825 }
826
827 // Token: 0x06002B5C RID: 11100 RVA: 0x0005F4E4 File Offset: 0x0005D6E4
829 {
830 int sepCount = this._sepCount;
831 int numCount = this._numCount;
832 string[] literals = pattern._literals;
834 if (this._literals0._length != 0)
835 {
836 bool flag;
837 return flag;
838 }
839 string[] literals3 = pattern._literals;
841 if (this._literals1._length != 0)
842 {
843 bool flag2;
844 return flag2;
845 }
846 string[] literals5 = pattern._literals;
848 if (this._literals2._length != 0)
849 {
850 bool flag3;
851 return flag3;
852 }
853 string[] literals7 = pattern._literals;
855 int length = this._literals3._length;
856 if (length != 0)
857 {
858 bool flag4;
859 return flag4;
860 }
861 string[] literals9 = pattern._literals;
863 int length2 = this._literals4._length;
864 if (length != 0)
865 {
866 }
867 bool flag5;
868 return length2 == 0 || flag5;
869 }
870
871 // Token: 0x06002B5D RID: 11101 RVA: 0x0005F5B0 File Offset: 0x0005D7B0
873 {
874 string fullTimeSpanPositivePattern = dtfi.FullTimeSpanPositivePattern;
876 string text;
878 }
879
880 // Token: 0x06002B5E RID: 11102 RVA: 0x0005F5D4 File Offset: 0x0005D7D4
882 {
883 if (this._tokenCount == 0)
884 {
885 }
887 int num = tok._num;
888 bool flag;
889 return flag;
890 }
891
892 // Token: 0x06002B5F RID: 11103 RVA: 0x0005F614 File Offset: 0x0005D814
894 {
895 int sepCount = this._sepCount;
896 int tokenCount = this._tokenCount;
897 return "String was not recognized as a valid TimeSpan." != null;
898 }
899
900 // Token: 0x06002B60 RID: 11104 RVA: 0x0005F67C File Offset: 0x0005D87C
902 {
903 int numCount = this._numCount;
904 int tokenCount = this._tokenCount;
905 return "String was not recognized as a valid TimeSpan." != null;
906 }
907
908 // Token: 0x040017DB RID: 6107
910
911 // Token: 0x040017DC RID: 6108
912 internal int _tokenCount;
913
914 // Token: 0x040017DD RID: 6109
915 internal int _sepCount;
916
917 // Token: 0x040017DE RID: 6110
918 internal int _numCount;
919
920 // Token: 0x040017DF RID: 6111
922
923 // Token: 0x040017E0 RID: 6112
925
926 // Token: 0x040017E1 RID: 6113
927 private bool _posLocInit;
928
929 // Token: 0x040017E2 RID: 6114
930 private bool _negLocInit;
931
932 // Token: 0x040017E3 RID: 6115
933 private string _fullPosPattern;
934
935 // Token: 0x040017E4 RID: 6116
936 private string _fullNegPattern;
937
938 // Token: 0x040017E5 RID: 6117
940
941 // Token: 0x040017E6 RID: 6118
943
944 // Token: 0x040017E7 RID: 6119
946
947 // Token: 0x040017E8 RID: 6120
949
950 // Token: 0x040017E9 RID: 6121
952
953 // Token: 0x040017EA RID: 6122
955
956 // Token: 0x040017EB RID: 6123
958
959 // Token: 0x040017EC RID: 6124
961
962 // Token: 0x040017ED RID: 6125
964
965 // Token: 0x040017EE RID: 6126
967
968 // Token: 0x040017EF RID: 6127
970 }
971
972 // Token: 0x020005A3 RID: 1443
973 private struct TimeSpanResult
974 {
975 // Token: 0x06002B61 RID: 11105 RVA: 0x0005F704 File Offset: 0x0005D904
977 {
978 }
979
980 // Token: 0x06002B62 RID: 11106 RVA: 0x0005F714 File Offset: 0x0005D914
981 internal bool SetFailure(TimeSpanParse.ParseFailureKind kind, string resourceKey, [Optional] object messageArgument, [Optional] string argumentName)
982 {
983 /*
984An exception occurred when decompiling this method (06002B62)
985
986ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Globalization.TimeSpanParse/TimeSpanResult::SetFailure(System.Globalization.TimeSpanParse/ParseFailureKind,System.String,System.Object,System.String)
987
988 ---> System.Exception: Basic block has to end with unconditional control flow.
989{
990 IL_000A:
991 stloc:string(var_1_10, call:string(SR::GetResourceString, ldloc:string(resourceKey)))
992}
993
994 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
995 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
996 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
997 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
998 --- End of inner exception stack trace ---
999 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
1000 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
1001*/;
1002 }
1003
1004 // Token: 0x040017F0 RID: 6128
1006
1007 // Token: 0x040017F1 RID: 6129
1009 }
1010
1011 // Token: 0x020005A4 RID: 1444
1012 private ref struct StringParser
1013 {
1014 // Token: 0x06002B63 RID: 11107 RVA: 0x0005F734 File Offset: 0x0005D934
1015 internal void NextChar()
1016 {
1017 int pos = this._pos;
1018 this._pos = pos;
1019 }
1020
1021 // Token: 0x06002B64 RID: 11108 RVA: 0x0005F75C File Offset: 0x0005D95C
1022 internal char NextNonDigit()
1023 {
1024 /*
1025An exception occurred when decompiling this method (06002B64)
1026
1027ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Char System.Globalization.TimeSpanParse/StringParser::NextNonDigit()
1028
1029 ---> System.Exception: Basic block has to end with unconditional control flow.
1030{
1031 Block_0:
1032 stloc:int32(var_0_06, ldfld:int32(StringParser::_pos, ldloc:valuetype System.Globalization.TimeSpanParse/StringParser&(this)))
1033}
1034
1035 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
1036 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
1037 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
1038 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
1039 --- End of inner exception stack trace ---
1040 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
1041 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
1042*/;
1043 }
1044
1045 // Token: 0x06002B65 RID: 11109 RVA: 0x0005F774 File Offset: 0x0005D974
1047 {
1048 int num = 1;
1049 this._str = input;
1050 this._pos = num;
1051 this._pos = num;
1052 return "String was not recognized as a valid TimeSpan." != null;
1053 }
1054
1055 // Token: 0x06002B66 RID: 11110 RVA: 0x0005F84C File Offset: 0x0005DA4C
1056 internal bool ParseInt(int max, [Out] int i, TimeSpanParse.TimeSpanResult result)
1057 {
1058 char ch = this._ch;
1059 int pos = this._pos;
1060 i.m_value = (int)ch;
1061 int pos2 = this._pos;
1062 this._pos = pos2;
1063 return "String was not recognized as a valid TimeSpan." != null;
1064 }
1065
1066 // Token: 0x06002B67 RID: 11111 RVA: 0x0005F890 File Offset: 0x0005DA90
1067 internal bool ParseTime([Out] long time, TimeSpanParse.TimeSpanResult result)
1068 {
1069 bool flag;
1070 time.m_value = (flag ? 1L : 0L);
1071 char ch = this._ch;
1072 int pos = this._pos;
1073 this._pos = pos;
1074 bool flag2;
1075 return flag2;
1076 }
1077
1078 // Token: 0x06002B68 RID: 11112 RVA: 0x0005F944 File Offset: 0x0005DB44
1079 internal void SkipBlanks()
1080 {
1081 char ch = this._ch;
1082 int pos = this._pos;
1083 this._pos = pos;
1084 }
1085
1086 // Token: 0x040017F2 RID: 6130
1088
1089 // Token: 0x040017F3 RID: 6131
1090 private char _ch;
1091
1092 // Token: 0x040017F4 RID: 6132
1093 private int _pos;
1094
1095 // Token: 0x040017F5 RID: 6133
1096 private int _len;
1097 }
1098 }
1099}
class f__AnonymousType0<< Count > j__TPar
static DateTimeFormatInfo GetInstance(IFormatProvider provider)
static TimeSpan Parse(ReadOnlySpan< char > input, IFormatProvider formatProvider)
static bool ParseExactLiteral(TimeSpanParse.TimeSpanTokenizer tokenizer, StringBuilder enquotedString)
static bool ProcessTerminal_HM(TimeSpanParse.TimeSpanRawInfo raw, TimeSpanParse.TimeSpanStandardStyles style, TimeSpanParse.TimeSpanResult result)
static bool TryParseTimeSpan(ReadOnlySpan< char > input, TimeSpanParse.TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanParse.TimeSpanResult result)
static bool TryParseExact(ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider formatProvider, TimeSpanStyles styles, [Out] TimeSpan result)
static bool ProcessTerminal_HM_S_D(TimeSpanParse.TimeSpanRawInfo raw, TimeSpanParse.TimeSpanStandardStyles style, TimeSpanParse.TimeSpanResult result)
static bool ParseExactDigits(TimeSpanParse.TimeSpanTokenizer tokenizer, int minDigitLength, [Out] int result)
static bool TryParseExactTimeSpan(ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider formatProvider, TimeSpanStyles styles, TimeSpanParse.TimeSpanResult result)
static bool ProcessTerminal_DHMSF(TimeSpanParse.TimeSpanRawInfo raw, TimeSpanParse.TimeSpanStandardStyles style, TimeSpanParse.TimeSpanResult result)
static bool TryTimeToTicks(bool positive, TimeSpanParse.TimeSpanToken days, TimeSpanParse.TimeSpanToken hours, TimeSpanParse.TimeSpanToken minutes, TimeSpanParse.TimeSpanToken seconds, TimeSpanParse.TimeSpanToken fraction, [Out] long result)
static bool ProcessTerminalState(TimeSpanParse.TimeSpanRawInfo raw, TimeSpanParse.TimeSpanStandardStyles style, TimeSpanParse.TimeSpanResult result)
static bool ParseExactDigits(TimeSpanParse.TimeSpanTokenizer tokenizer, int minDigitLength, int maxDigitLength, [Out] int zeroes, [Out] int result)
static bool TryParseByFormat(ReadOnlySpan< char > input, ReadOnlySpan< char > format, TimeSpanStyles styles, TimeSpanParse.TimeSpanResult result)
static bool TryParseTimeSpanConstant(ReadOnlySpan< char > input, TimeSpanParse.TimeSpanResult result)
static bool ProcessTerminal_HMS_F_D(TimeSpanParse.TimeSpanRawInfo raw, TimeSpanParse.TimeSpanStandardStyles style, TimeSpanParse.TimeSpanResult result)
static bool ProcessTerminal_D(TimeSpanParse.TimeSpanRawInfo raw, TimeSpanParse.TimeSpanStandardStyles style, TimeSpanParse.TimeSpanResult result)
bool ParseTime([Out] long time, TimeSpanParse.TimeSpanResult result)
bool TryParse(ReadOnlySpan< char > input, TimeSpanParse.TimeSpanResult result)
bool ParseInt(int max, [Out] int i, TimeSpanParse.TimeSpanResult result)
bool FullDHMSMatch(TimeSpanFormat.FormatLiterals pattern)
bool ProcessToken(TimeSpanParse.TimeSpanToken tok, TimeSpanParse.TimeSpanResult result)
bool AddSep(ReadOnlySpan< char > sep, TimeSpanParse.TimeSpanResult result)
bool FullHMMatch(TimeSpanFormat.FormatLiterals pattern)
bool AddNum(TimeSpanParse.TimeSpanToken num, TimeSpanParse.TimeSpanResult result)
bool FullDHMMatch(TimeSpanFormat.FormatLiterals pattern)
bool FullMatch(TimeSpanFormat.FormatLiterals pattern)
bool FullHMSFMatch(TimeSpanFormat.FormatLiterals pattern)
bool FullHMSMatch(TimeSpanFormat.FormatLiterals pattern)
bool FullAppCompatMatch(TimeSpanFormat.FormatLiterals pattern)
bool FullDMatch(TimeSpanFormat.FormatLiterals pattern)
bool PartialAppCompatMatch(TimeSpanFormat.FormatLiterals pattern)
bool SetFailure(TimeSpanParse.ParseFailureKind kind, string resourceKey, [Optional] object messageArgument, [Optional] string argumentName)
TimeSpanToken(int number, int leadingZeroes)
TimeSpanToken(TimeSpanParse.TTT type, int number, int leadingZeroes, ReadOnlySpan< char > separator)
TimeSpanTokenizer(ReadOnlySpan< char > input, int startPosition)
readonly int _length