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
RegexFCD.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020000B9 RID: 185
8 [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
9 internal ref struct RegexFCD
10 {
11 // Token: 0x060003BA RID: 954 RVA: 0x0000E5EC File Offset: 0x0000C7EC
13 {
14 }
15
16 // Token: 0x060003BB RID: 955 RVA: 0x0000E5FC File Offset: 0x0000C7FC
18 {
19 /*
20An exception occurred when decompiling this method (060003BB)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Nullable`1<System.Text.RegularExpressions.RegexPrefix> System.Text.RegularExpressions.RegexFCD::FirstChars(System.Text.RegularExpressions.RegexTree)
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 IL_000D:
27 stloc:CultureInfo(var_3_14, callgetter:CultureInfo(CultureInfo::get_CurrentCulture))
28 stloc:CultureInfo(var_4_1A, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
29 stloc:string(var_5_24, call:string(RegexFC::GetFirstChars, ldloc:RegexFC(var_1), ldloc:CultureInfo(var_4_1A)))
30 stloc:bool(var_6_2C, ldfld:bool(RegexFC::<CaseInsensitive>k__BackingField, ldloc:RegexFC(var_1)))
31}
32
33 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
34 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
35 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
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 88
37 --- End of inner exception stack trace ---
38 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
39 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
40*/;
41 }
42
43 // Token: 0x060003BC RID: 956 RVA: 0x0000E638 File Offset: 0x0000C838
44 public static RegexPrefix Prefix(RegexTree tree)
45 {
46 /*
47An exception occurred when decompiling this method (060003BC)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Text.RegularExpressions.RegexPrefix System.Text.RegularExpressions.RegexFCD::Prefix(System.Text.RegularExpressions.RegexTree)
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 IL_002B:
54 stloc:int32(var_9_32, ldfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_8)))
55}
56
57 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
58 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
59 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
60 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
61 --- End of inner exception stack trace ---
62 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
63 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
64*/;
65 }
66
67 // Token: 0x060003BD RID: 957 RVA: 0x0000E678 File Offset: 0x0000C878
68 public static int Anchors(RegexTree tree)
69 {
71 List<RegexNode> children = regexNode.Children;
72 long num;
73 if (children != null)
74 {
75 int size = children._size;
76 num = 0L;
77 }
78 if (regexNode != null)
79 {
81 if (children2 != null)
82 {
83 int size2 = children2._size;
84 }
86 int num2;
87 return num2;
88 }
89 }
90
91 // Token: 0x060003BE RID: 958 RVA: 0x0000E6C4 File Offset: 0x0000C8C4
92 private static int AnchorFromType(int type)
93 {
94 return 8;
95 }
96
97 // Token: 0x060003BF RID: 959 RVA: 0x0000E6EC File Offset: 0x0000C8EC
98 private void PushInt(int i)
99 {
101 }
102
103 // Token: 0x060003C0 RID: 960 RVA: 0x00002050 File Offset: 0x00000250
104 private bool IntIsEmpty()
105 {
106 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
107 }
108
109 // Token: 0x060003C1 RID: 961 RVA: 0x0000E708 File Offset: 0x0000C908
110 private int PopInt()
111 {
112 /*
113An exception occurred when decompiling this method (060003C1)
114
115ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Text.RegularExpressions.RegexFCD::PopInt()
116
117 ---> System.Exception: Basic block has to end with unconditional control flow.
118{
119 Block_0:
120 stloc:valuetype System.Collections.Generic.ValueListBuilder`1<int32>(var_1_08, ldfld:valuetype System.Collections.Generic.ValueListBuilder`1<int32>(RegexFCD::_intStack, ldloc:valuetype System.Text.RegularExpressions.RegexFCD&(this)))
121}
122
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 1852
124 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
125 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
126 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
127 --- End of inner exception stack trace ---
128 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
129 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
130*/;
131 }
132
133 // Token: 0x060003C2 RID: 962 RVA: 0x0000E720 File Offset: 0x0000C920
134 private void PushFC(RegexFC fc)
135 {
136 }
137
138 // Token: 0x060003C3 RID: 963 RVA: 0x00002050 File Offset: 0x00000250
139 private bool FCIsEmpty()
140 {
141 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
142 }
143
144 // Token: 0x060003C4 RID: 964 RVA: 0x0000E730 File Offset: 0x0000C930
145 private RegexFC PopFC()
146 {
147 return this.TopFC();
148 }
149
150 // Token: 0x060003C5 RID: 965 RVA: 0x00002050 File Offset: 0x00000250
151 private RegexFC TopFC()
152 {
153 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
154 }
155
156 // Token: 0x060003C6 RID: 966 RVA: 0x0000E744 File Offset: 0x0000C944
157 public void Dispose()
158 {
159 }
160
161 // Token: 0x060003C7 RID: 967 RVA: 0x0000E754 File Offset: 0x0000C954
163 {
164 RegexNode root;
165 long num;
166 do
167 {
168 root = tree.Root;
169 num = 0L;
170 List<RegexNode> children = root.Children;
171 if (children == null)
172 {
173 break;
174 }
175 int size = children._size;
176 if (this._skipAllChildren)
177 {
178 goto IL_0050;
179 }
180 int ntype = root.NType;
181 if (!this._skipchild)
182 {
183 goto IL_007C;
184 }
185 }
186 while (root.Children != null);
187 int ntype2 = root.NType;
188 long num2 = 0L;
189 this.CalculateFC(ntype2, root, (int)num2);
190 IL_0050:
191 RegexNode next = root.Next;
192 global::System.Collections.Generic.ValueListBuilder<int> intStack = this._intStack;
193 int ntype3 = next.NType;
194 this.CalculateFC(ntype2, next, (int)num);
195 if (!this._failed)
196 {
197 }
198 IL_007C:
200 this.PushInt((int)num);
201 return this.PopFC();
202 }
203
204 // Token: 0x060003C8 RID: 968 RVA: 0x0000E7F8 File Offset: 0x0000C9F8
205 private void SkipChild()
206 {
207 this._skipchild = true;
208 }
209
210 // Token: 0x060003C9 RID: 969 RVA: 0x0000E80C File Offset: 0x0000CA0C
211 private void CalculateFC(int NodeType, RegexNode node, int CurIndex)
212 {
213 }
214
215 // Token: 0x04000328 RID: 808
217
218 // Token: 0x04000329 RID: 809
219 private global::System.Collections.Generic.ValueListBuilder<int> _intStack;
220
221 // Token: 0x0400032A RID: 810
222 private bool _skipAllChildren;
223
224 // Token: 0x0400032B RID: 811
225 private bool _skipchild;
226
227 // Token: 0x0400032C RID: 812
228 private bool _failed;
229 }
230}
class f__AnonymousType0<< Count > j__TPar
static RegexPrefix Prefix(RegexTree tree)
Definition RegexFCD.cs:44
readonly List< RegexFC > _fcStack
Definition RegexFCD.cs:216
static int Anchors(RegexTree tree)
Definition RegexFCD.cs:68
global::System.Collections.Generic.ValueListBuilder< int > _intStack
Definition RegexFCD.cs:219
void CalculateFC(int NodeType, RegexNode node, int CurIndex)
Definition RegexFCD.cs:211
RegexFC RegexFCFromRegexTree(RegexTree tree)
Definition RegexFCD.cs:162
static ? RegexPrefix FirstChars(RegexTree t)
Definition RegexFCD.cs:17
static int AnchorFromType(int type)
Definition RegexFCD.cs:92