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
XmlDeclaration.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml
5{
6 // Token: 0x02000069 RID: 105
8 {
9 // Token: 0x060004B2 RID: 1202 RVA: 0x000119B4 File Offset: 0x0000FBB4
10 protected internal XmlDeclaration(string version, string encoding, string standalone, XmlDocument doc)
11 : base(doc)
12 {
13 bool flag = this.IsValidXmlVersion(version);
14 if (standalone != null)
15 {
16 int stringLength = standalone._stringLength;
17 bool flag2 = standalone != "yes";
18 bool flag3 = standalone != "no";
19 }
20 if (encoding == null)
21 {
22 }
25 }
26
27 // Token: 0x17000104 RID: 260
28 // (get) Token: 0x060004B3 RID: 1203 RVA: 0x00011A18 File Offset: 0x0000FC18
29 // (set) Token: 0x060004B4 RID: 1204 RVA: 0x00011A2C File Offset: 0x0000FC2C
30 public string Version
31 {
32 get
33 {
34 return this.version;
35 }
36 internal set
37 {
39 }
40 }
41
42 // Token: 0x17000105 RID: 261
43 // (get) Token: 0x060004B5 RID: 1205 RVA: 0x00011A40 File Offset: 0x0000FC40
44 // (set) Token: 0x060004B6 RID: 1206 RVA: 0x00011A54 File Offset: 0x0000FC54
45 public string Encoding
46 {
47 get
48 {
49 return this.encoding;
50 }
51 set
52 {
53 if (value == null)
54 {
55 }
56 }
57 }
58
59 // Token: 0x17000106 RID: 262
60 // (get) Token: 0x060004B7 RID: 1207 RVA: 0x00011A64 File Offset: 0x0000FC64
61 // (set) Token: 0x060004B8 RID: 1208 RVA: 0x00011A78 File Offset: 0x0000FC78
62 public string Standalone
63 {
64 get
65 {
66 return this.standalone;
67 }
68 set
69 {
70 if (value != null)
71 {
72 if (value._stringLength != 0)
73 {
74 bool flag = value == "yes";
75 bool flag2 = value == "no";
76 }
78 return;
79 }
80 }
81 }
82
83 // Token: 0x17000107 RID: 263
84 // (get) Token: 0x060004B9 RID: 1209 RVA: 0x00003FFD File Offset: 0x000021FD
85 // (set) Token: 0x060004BA RID: 1210 RVA: 0x00011AB8 File Offset: 0x0000FCB8
86 public override string Value
87 {
88 get
89 {
90 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
91 }
92 set
93 {
94 }
95 }
96
97 // Token: 0x17000108 RID: 264
98 // (get) Token: 0x060004BB RID: 1211 RVA: 0x00011AC8 File Offset: 0x0000FCC8
99 // (set) Token: 0x060004BC RID: 1212 RVA: 0x00011B18 File Offset: 0x0000FD18
100 public override string InnerText
101 {
102 get
103 {
104 /*
105An exception occurred when decompiling this method (060004BB)
106
107ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Xml.XmlDeclaration::get_InnerText()
108
109 ---> System.Exception: Basic block has to end with unconditional control flow.
110{
111 Block_0:
112 stloc:string(var_0_06, ldfld:string(XmlDeclaration::version, ldloc:XmlDeclaration(this)))
113 stloc:string(var_1_17, call:string(string::Concat, ldstr:string("version=\""), ldloc:string(var_0_06), ldstr:string("\"")))
114 stloc:int32(var_2_23, ldfld:int32(string::_stringLength, ldfld:string(XmlDeclaration::encoding, ldloc:XmlDeclaration(this))))
115 stloc:string(var_4_2A, ldfld:string(XmlDeclaration::encoding, ldloc:XmlDeclaration(this)))
116 stloc:int32(var_7_37, ldfld:int32(string::_stringLength, ldfld:string(XmlDeclaration::standalone, ldloc:XmlDeclaration(this))))
117 stloc:string(var_9_3F, ldfld:string(XmlDeclaration::standalone, ldloc:XmlDeclaration(this)))
118}
119
120 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
121 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
122 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
123 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
124 --- End of inner exception stack trace ---
125 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
126 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
127*/;
128 }
129 set
130 {
131 string text = this.version;
132 string text2 = this.encoding;
133 string text3 = this.standalone;
134 if (value != null)
135 {
136 }
138 if (value != null)
139 {
141 }
142 }
143 }
144
145 // Token: 0x17000109 RID: 265
146 // (get) Token: 0x060004BD RID: 1213 RVA: 0x00011B7C File Offset: 0x0000FD7C
147 public override string Name
148 {
149 get
150 {
151 return "xml";
152 }
153 }
154
155 // Token: 0x1700010A RID: 266
156 // (get) Token: 0x060004BE RID: 1214 RVA: 0x00003FFD File Offset: 0x000021FD
157 public override string LocalName
158 {
159 get
160 {
161 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
162 }
163 }
164
165 // Token: 0x1700010B RID: 267
166 // (get) Token: 0x060004BF RID: 1215 RVA: 0x00011B90 File Offset: 0x0000FD90
167 public override XmlNodeType NodeType
168 {
169 get
170 {
171 return XmlNodeType.XmlDeclaration;
172 }
173 }
174
175 // Token: 0x060004C0 RID: 1216 RVA: 0x00011BA0 File Offset: 0x0000FDA0
176 public override XmlNode CloneNode(bool deep)
177 {
178 /*
179An exception occurred when decompiling this method (060004C0)
180
181ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Xml.XmlNode System.Xml.XmlDeclaration::CloneNode(System.Boolean)
182
183 ---> System.Exception: Basic block has to end with unconditional control flow.
184{
185 Block_0:
186 stloc:string(var_0_06, ldfld:string(XmlDeclaration::version, ldloc:XmlDeclaration(this)))
187 stloc:string(var_1_0D, ldfld:string(XmlDeclaration::encoding, ldloc:XmlDeclaration(this)))
188 stloc:string(var_2_14, ldfld:string(XmlDeclaration::standalone, ldloc:XmlDeclaration(this)))
189}
190
191 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
192 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
193 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
194 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
195 --- End of inner exception stack trace ---
196 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
197 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
198*/;
199 }
200
201 // Token: 0x060004C1 RID: 1217 RVA: 0x00011BC4 File Offset: 0x0000FDC4
202 private bool IsValidXmlVersion(string ver)
203 {
204 int stringLength = ver._stringLength;
205 long num = 0L;
206 char c = ver[(int)num];
207 int num2 = 1;
208 long num3 = 0L;
209 char c2 = ver[num2];
210 int stringLength2 = ver._stringLength;
211 int num4 = 2;
212 return XmlCharType.IsOnlyDigits(ver, num4, (int)num3);
213 }
214
215 // Token: 0x04000294 RID: 660
216 private string version;
217
218 // Token: 0x04000295 RID: 661
219 private string encoding;
220
221 // Token: 0x04000296 RID: 662
222 private string standalone;
223 }
224}
class f__AnonymousType0<< Count > j__TPar
override XmlNode CloneNode(bool deep)
bool IsValidXmlVersion(string ver)
XmlDeclaration(string version, string encoding, string standalone, XmlDocument doc)
override XmlNodeType NodeType
static bool IsOnlyDigits(string str, int startPos, int len)