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
RegexNode.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020000BD RID: 189
8 internal sealed class RegexNode
9 {
10 // Token: 0x06000400 RID: 1024 RVA: 0x000107EC File Offset: 0x0000E9EC
11 public RegexNode(int type, RegexOptions options)
12 {
13 this.NType = type;
15 }
16
17 // Token: 0x06000401 RID: 1025 RVA: 0x00010810 File Offset: 0x0000EA10
18 public RegexNode(int type, RegexOptions options, char ch)
19 {
20 this.NType = type;
22 this.Ch = ch;
23 }
24
25 // Token: 0x06000402 RID: 1026 RVA: 0x00010838 File Offset: 0x0000EA38
26 public RegexNode(int type, RegexOptions options, string str)
27 {
28 this.NType = type;
30 this.Str = str;
31 }
32
33 // Token: 0x06000403 RID: 1027 RVA: 0x00010860 File Offset: 0x0000EA60
34 public RegexNode(int type, RegexOptions options, int m)
35 {
36 this.NType = type;
38 this.M = m;
39 }
40
41 // Token: 0x06000404 RID: 1028 RVA: 0x00010888 File Offset: 0x0000EA88
42 public RegexNode(int type, RegexOptions options, int m, int n)
43 {
44 this.NType = type;
45 this.N = n;
47 this.M = m;
48 }
49
50 // Token: 0x06000405 RID: 1029 RVA: 0x000108B8 File Offset: 0x0000EAB8
51 public bool UseOptionR()
52 {
53 /*
54An exception occurred when decompiling this method (06000405)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Text.RegularExpressions.RegexNode::UseOptionR()
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 Block_0:
61 stloc:RegexOptions(var_0_06, ldfld:RegexOptions(RegexNode::Options, ldloc:RegexNode(this)))
62}
63
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 1852
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
73
74 // Token: 0x06000406 RID: 1030 RVA: 0x000108CC File Offset: 0x0000EACC
76 {
78 int ntype = this.NType;
79 List<RegexNode> children = this.Children;
80 if (children != null)
81 {
82 int size = children._size;
83 }
84 return this;
85 }
86
87 // Token: 0x06000407 RID: 1031 RVA: 0x000108FC File Offset: 0x0000EAFC
88 private void MakeRep(int type, int min, int max)
89 {
90 int ntype = this.NType;
91 this.M = min;
94 }
95
96 // Token: 0x06000408 RID: 1032 RVA: 0x00010928 File Offset: 0x0000EB28
97 private RegexNode Reduce()
98 {
99 int ntype = this.NType;
100 return this;
101 }
102
103 // Token: 0x06000409 RID: 1033 RVA: 0x0001097C File Offset: 0x0000EB7C
105 {
106 List<RegexNode> children = this.Children;
107 if (children == null || children._size == 0)
108 {
110 }
112 return regexNode;
113 }
114
115 // Token: 0x0600040A RID: 1034 RVA: 0x000109A8 File Offset: 0x0000EBA8
117 {
118 int ntype = this.NType;
119 long num = 0L;
120 return this.Child((int)num);
121 }
122
123 // Token: 0x0600040B RID: 1035 RVA: 0x000109CC File Offset: 0x0000EBCC
125 {
126 /*
127An exception occurred when decompiling this method (0600040B)
128
129ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexNode::ReduceRep()
130
131 ---> System.Exception: Basic block has to end with unconditional control flow.
132{
133 IL_006E:
134 stloc:RegexOptions(var_10_74, ldfld:RegexOptions(RegexNode::Options, ldloc:RegexNode(this)))
135}
136
137 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
138 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
139 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
140 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
141 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
142 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
143 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
144 --- End of inner exception stack trace ---
145 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
146 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
147*/;
148 }
149
150 // Token: 0x0600040C RID: 1036 RVA: 0x00010A50 File Offset: 0x0000EC50
152 {
153 int num = 1;
154 string str = this.Str;
155 if (num == 0)
156 {
157 }
158 bool flag = RegexCharClass.IsEmpty(str);
159 int num2 = 22;
161 string str2 = this.Str;
162 if (num2 == 0)
163 {
164 }
166 char c = RegexCharClass.SingletonChar(this.Str);
167 int ntype = this.NType;
168 this.Ch = c;
169 string str3 = this.Str;
170 if (ntype == 0)
171 {
172 }
174 int ntype2 = this.NType;
175 this.Ch = c2;
177 return this;
178 }
179
180 // Token: 0x0600040D RID: 1037 RVA: 0x00002050 File Offset: 0x00000250
182 {
183 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
184 }
185
186 // Token: 0x0600040E RID: 1038 RVA: 0x00002050 File Offset: 0x00000250
188 {
189 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
190 }
191
192 // Token: 0x0600040F RID: 1039 RVA: 0x00010ADC File Offset: 0x0000ECDC
193 public RegexNode MakeQuantifier(bool lazy, int min, int max)
194 {
195 /*
196An exception occurred when decompiling this method (0600040F)
197
198ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexNode::MakeQuantifier(System.Boolean,System.Int32,System.Int32)
199
200 ---> System.Exception: Basic block has to end with unconditional control flow.
201{
202 Block_0:
203 stloc:int32(var_0_06, ldfld:int32(RegexNode::NType, ldloc:RegexNode(this)))
204 stfld:int32(RegexNode::M, ldloc:RegexNode(this), ldloc:int32(min))
205 stfld:RegexOptions(RegexNode::Options, ldloc:RegexNode(this), ldloc:int32[exp:RegexOptions](max))
206 stloc:RegexOptions(var_1_1B, ldfld:RegexOptions(RegexNode::Options, ldloc:RegexNode(this)))
207}
208
209 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
210 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
211 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
212 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
213 --- End of inner exception stack trace ---
214 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
215 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
216*/;
217 }
218
219 // Token: 0x06000410 RID: 1040 RVA: 0x00002050 File Offset: 0x00000250
221 {
222 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
223 }
224
225 // Token: 0x06000411 RID: 1041 RVA: 0x00010B04 File Offset: 0x0000ED04
226 public RegexNode Child(int i)
227 {
228 /*
229An exception occurred when decompiling this method (06000411)
230
231ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.RegularExpressions.RegexNode System.Text.RegularExpressions.RegexNode::Child(System.Int32)
232
233 ---> System.Exception: Basic block has to end with unconditional control flow.
234{
235 Block_0:
236 stloc:class [mscorlib]System.Collections.Generic.List`1<class System.Text.RegularExpressions.RegexNode>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class System.Text.RegularExpressions.RegexNode>(RegexNode::Children, ldloc:RegexNode(this)))
237}
238
239 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
240 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
241 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
242 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
243 --- End of inner exception stack trace ---
244 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
245 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
246*/;
247 }
248
249 // Token: 0x06000412 RID: 1042 RVA: 0x00010B18 File Offset: 0x0000ED18
250 public int ChildCount()
251 {
252 List<RegexNode> children = this.Children;
253 if (children != null)
254 {
255 return children._size;
256 }
257 }
258
259 // Token: 0x06000413 RID: 1043 RVA: 0x00010B38 File Offset: 0x0000ED38
260 public int Type()
261 {
262 return this.NType;
263 }
264
265 // Token: 0x04000339 RID: 825
266 public int NType;
267
268 // Token: 0x0400033A RID: 826
270
271 // Token: 0x0400033B RID: 827
272 public string Str;
273
274 // Token: 0x0400033C RID: 828
275 public char Ch;
276
277 // Token: 0x0400033D RID: 829
278 public int M;
279
280 // Token: 0x0400033E RID: 830
281 public int N;
282
283 // Token: 0x0400033F RID: 831
285
286 // Token: 0x04000340 RID: 832
288 }
289}
class f__AnonymousType0<< Count > j__TPar
RegexNode(int type, RegexOptions options, string str)
Definition RegexNode.cs:26
RegexNode(int type, RegexOptions options, int m)
Definition RegexNode.cs:34
RegexNode(int type, RegexOptions options, int m, int n)
Definition RegexNode.cs:42
RegexNode(int type, RegexOptions options, char ch)
Definition RegexNode.cs:18
RegexNode StripEnation(int emptyType)
Definition RegexNode.cs:104
RegexNode MakeQuantifier(bool lazy, int min, int max)
Definition RegexNode.cs:193
void AddChild(RegexNode newChild)
Definition RegexNode.cs:220
void MakeRep(int type, int min, int max)
Definition RegexNode.cs:88
RegexNode(int type, RegexOptions options)
Definition RegexNode.cs:11