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
FileSystemEnumerableFactory.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200057A RID: 1402
8 internal static class FileSystemEnumerableFactory
9 {
10 // Token: 0x06002A23 RID: 10787 RVA: 0x0005B9E8 File Offset: 0x00059BE8
11 internal static void NormalizeInputs(string directory, string expression, EnumerationOptions options)
12 {
13 if (!true)
14 {
15 }
16 }
17
18 // Token: 0x06002A24 RID: 10788 RVA: 0x0005BA5C File Offset: 0x00059C5C
20 {
21 do
22 {
23 MatchCasing <MatchCasing>k__BackingField = options.<MatchCasing>k__BackingField;
24 if (<MatchCasing>k__BackingField == MatchCasing.PlatformDefault)
25 {
26 if (<MatchCasing>k__BackingField == MatchCasing.PlatformDefault)
27 {
28 }
29 if (!true)
30 {
31 }
32 if (!true)
33 {
34 bool flag;
35 return flag;
36 }
37 MatchCasing <MatchCasing>k__BackingField2 = options.<MatchCasing>k__BackingField;
38 }
39 }
40 while (options.<MatchType>k__BackingField != MatchType.Simple);
41 if (!true)
42 {
43 }
44 bool flag2;
45 return flag2;
46 }
47
48 // Token: 0x06002A25 RID: 10789 RVA: 0x0005BAA0 File Offset: 0x00059CA0
49 internal static IEnumerable<string> UserFiles(string directory, string expression, EnumerationOptions options)
50 {
51 /*
52An exception occurred when decompiling this method (06002A25)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<System.String> System.IO.Enumeration.FileSystemEnumerableFactory::UserFiles(System.String,System.String,System.IO.EnumerationOptions)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 brtrue(IL_0000, ldc.i4:bool(1))
60}
61
62 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
63 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
64 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
65 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
66 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
67 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
68 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
69 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
70 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
71 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
72 --- End of inner exception stack trace ---
73 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
74 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
75*/;
76 }
77
78 // Token: 0x06002A26 RID: 10790 RVA: 0x0005BAB8 File Offset: 0x00059CB8
79 internal static IEnumerable<string> UserDirectories(string directory, string expression, EnumerationOptions options)
80 {
81 /*
82An exception occurred when decompiling this method (06002A26)
83
84ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<System.String> System.IO.Enumeration.FileSystemEnumerableFactory::UserDirectories(System.String,System.String,System.IO.EnumerationOptions)
85
86 ---> System.Exception: Basic block has to end with unconditional control flow.
87{
88 Block_0:
89 brtrue(IL_0000, ldc.i4:bool(1))
90}
91
92 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
93 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
94 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
95 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
96 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
97 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
98 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
99 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
100 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
101 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
102 --- End of inner exception stack trace ---
103 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
104 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
105*/;
106 }
107
108 // Token: 0x06002A27 RID: 10791 RVA: 0x0005BAD0 File Offset: 0x00059CD0
109 internal static IEnumerable<string> UserEntries(string directory, string expression, EnumerationOptions options)
110 {
111 /*
112An exception occurred when decompiling this method (06002A27)
113
114ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<System.String> System.IO.Enumeration.FileSystemEnumerableFactory::UserEntries(System.String,System.String,System.IO.EnumerationOptions)
115
116 ---> System.Exception: Basic block has to end with unconditional control flow.
117{
118 Block_0:
119 brtrue(IL_0000, ldc.i4:bool(1))
120}
121
122 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
123 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
124 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
125 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
126 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
127 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
128 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
129 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
130 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
131 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
132 --- End of inner exception stack trace ---
133 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
134 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
135*/;
136 }
137
138 // Token: 0x06002A28 RID: 10792 RVA: 0x0005BAE8 File Offset: 0x00059CE8
139 // Note: this type is marked as 'beforefieldinit'.
141 {
142 }
143
144 // Token: 0x0400169D RID: 5789
145 private static readonly char[] s_unixEscapeChars;
146
147 // Token: 0x0200057B RID: 1403
149 private sealed class <>c__DisplayClass3_0
150 {
151 // Token: 0x06002A29 RID: 10793 RVA: 0x0005BAF8 File Offset: 0x00059CF8
153 {
154 }
155
156 // Token: 0x06002A2A RID: 10794 RVA: 0x0005BB0C File Offset: 0x00059D0C
158 {
159 bool <InitiallyDirectory>k__BackingField = entry._status.<InitiallyDirectory>k__BackingField;
160 if (<InitiallyDirectory>k__BackingField)
161 {
162 }
163 string text = this.expression;
164 ReadOnlySpan<char> fileName = entry.FileName;
166 if (!<InitiallyDirectory>k__BackingField)
167 {
168 }
169 bool flag;
170 return flag;
171 }
172
173 // Token: 0x0400169E RID: 5790
174 public string expression;
175
176 // Token: 0x0400169F RID: 5791
178 }
179
180 // Token: 0x0200057C RID: 1404
182 [Serializable]
183 private sealed class <>c
184 {
185 // Token: 0x06002A2B RID: 10795 RVA: 0x0005BB48 File Offset: 0x00059D48
186 // Note: this type is marked as 'beforefieldinit'.
187 static <>c()
188 {
189 }
190
191 // Token: 0x06002A2C RID: 10796 RVA: 0x0005BB58 File Offset: 0x00059D58
192 public <>c()
193 {
194 }
195
196 // Token: 0x06002A2D RID: 10797 RVA: 0x0005BB6C File Offset: 0x00059D6C
197 internal string <UserFiles>b__3_0(FileSystemEntry entry)
198 {
199 return entry.ToSpecifiedFullPath();
200 }
201
202 // Token: 0x06002A2E RID: 10798 RVA: 0x0005BB80 File Offset: 0x00059D80
203 internal string <UserDirectories>b__4_0(FileSystemEntry entry)
204 {
205 return entry.ToSpecifiedFullPath();
206 }
207
208 // Token: 0x06002A2F RID: 10799 RVA: 0x0005BB94 File Offset: 0x00059D94
209 internal string <UserEntries>b__5_0(FileSystemEntry entry)
210 {
211 return entry.ToSpecifiedFullPath();
212 }
213
214 // Token: 0x040016A0 RID: 5792
216
217 // Token: 0x040016A1 RID: 5793
218 public static FileSystemEnumerable<string>.FindTransform <>9__3_0;
219
220 // Token: 0x040016A2 RID: 5794
221 public static FileSystemEnumerable<string>.FindTransform <>9__4_0;
222
223 // Token: 0x040016A3 RID: 5795
224 public static FileSystemEnumerable<string>.FindTransform <>9__5_0;
225 }
226
227 // Token: 0x0200057D RID: 1405
229 private sealed class <>c__DisplayClass4_0
230 {
231 // Token: 0x06002A30 RID: 10800 RVA: 0x0005BBA8 File Offset: 0x00059DA8
233 {
234 }
235
236 // Token: 0x06002A31 RID: 10801 RVA: 0x0005BBBC File Offset: 0x00059DBC
237 internal bool <UserDirectories>b__1(FileSystemEntry entry)
238 {
239 bool <InitiallyDirectory>k__BackingField = entry._status.<InitiallyDirectory>k__BackingField;
240 if (<InitiallyDirectory>k__BackingField)
241 {
242 string text = this.expression;
243 ReadOnlySpan<char> fileName = entry.FileName;
244 EnumerationOptions enumerationOptions = this.options;
245 if (!<InitiallyDirectory>k__BackingField)
246 {
247 }
248 bool flag;
249 return flag;
250 }
251 }
252
253 // Token: 0x040016A4 RID: 5796
254 public string expression;
255
256 // Token: 0x040016A5 RID: 5797
257 public EnumerationOptions options;
258 }
259
260 // Token: 0x0200057E RID: 1406
262 private sealed class <>c__DisplayClass5_0
263 {
264 // Token: 0x06002A32 RID: 10802 RVA: 0x0005BBF8 File Offset: 0x00059DF8
266 {
267 }
268
269 // Token: 0x06002A33 RID: 10803 RVA: 0x0005BC0C File Offset: 0x00059E0C
270 internal bool <UserEntries>b__1(FileSystemEntry entry)
271 {
272 string text = this.expression;
273 ReadOnlySpan<char> fileName = entry.FileName;
274 EnumerationOptions enumerationOptions = this.options;
275 if (!true)
276 {
277 }
278 bool flag;
279 return flag;
280 }
281
282 // Token: 0x040016A6 RID: 5798
283 public string expression;
284
285 // Token: 0x040016A7 RID: 5799
286 public EnumerationOptions options;
287 }
288 }
289}
class f__AnonymousType0<< Count > j__TPar
static void NormalizeInputs(string directory, string expression, EnumerationOptions options)
static bool MatchesPattern(string expression, ReadOnlySpan< char > name, EnumerationOptions options)
static IEnumerable< string > UserDirectories(string directory, string expression, EnumerationOptions options)
static IEnumerable< string > UserFiles(string directory, string expression, EnumerationOptions options)
static IEnumerable< string > UserEntries(string directory, string expression, EnumerationOptions options)