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
QueryOutputWriter.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml
5{
6 // Token: 0x02000025 RID: 37
8 {
9 // Token: 0x060000B7 RID: 183 RVA: 0x00003A68 File Offset: 0x00001C68
11 {
12 this.wrapped = writer;
13 string docTypeSystem = settings.docTypeSystem;
14 this.systemId = docTypeSystem;
15 string docTypePublic = settings.docTypePublic;
16 this.publicId = docTypePublic;
17 if (settings.outputMethod == XmlOutputMethod.Xml)
18 {
19 if (docTypeSystem != null)
20 {
21 this.outputDocType = 257 != 0;
22 }
23 if (settings.autoXmlDecl)
24 {
25 XmlStandalone standalone = settings.standalone;
26 this.checkWellFormedDoc = standalone != XmlStandalone.Omit;
27 }
28 int size = settings.cdataSections._size;
29 List<XmlQualifiedName> cdataSections = settings.cdataSections;
31 return;
32 }
33 }
34
35 // Token: 0x17000033 RID: 51
36 // (set) Token: 0x060000B8 RID: 184 RVA: 0x00003B34 File Offset: 0x00001D34
38 {
39 set
40 {
43 }
44 }
45
46 // Token: 0x060000B9 RID: 185 RVA: 0x00003B50 File Offset: 0x00001D50
47 internal override void WriteXmlDeclaration(XmlStandalone standalone)
48 {
50 }
51
52 // Token: 0x060000BA RID: 186 RVA: 0x00003B64 File Offset: 0x00001D64
53 internal override void WriteXmlDeclaration(string xmldecl)
54 {
56 }
57
58 // Token: 0x060000BB RID: 187 RVA: 0x00003B78 File Offset: 0x00001D78
59 public override void WriteDocType(string name, string pubid, string sysid, string subset)
60 {
61 if (this.publicId != null || this.systemId != null)
62 {
63 return;
64 }
66 }
67
68 // Token: 0x060000BC RID: 188 RVA: 0x00003BA0 File Offset: 0x00001DA0
69 public override void WriteStartElement(string prefix, string localName, string ns)
70 {
71 while (this.checkWellFormedDoc)
72 {
73 int num = this.depth;
74 if (num != 0 || !this.hasDocElem)
75 {
76 int num2 = 1;
77 this.depth = num;
78 this.hasDocElem = num2 != 0;
79 break;
80 }
81 }
82 if (this.outputDocType)
83 {
84 int stringLength = prefix._stringLength;
86 if (stringLength != 0)
87 {
88 string text = prefix + ":" + localName;
89 }
90 string text2 = this.systemId;
91 string text3 = this.publicId;
92 }
94 if (this.lookupCDataElems != null)
95 {
96 this.qnameCData.Init(localName, ns);
98 BitStack bitStack = this.bitsCData;
100 uint curr = bitStack.curr;
101 bitStack.PushCurr();
102 uint curr2 = bitStack.curr;
104 }
105 }
106
107 // Token: 0x060000BD RID: 189 RVA: 0x00003C68 File Offset: 0x00001E68
108 internal override void WriteEndElement(string prefix, string localName, string ns)
109 {
111 if (this.checkWellFormedDoc)
112 {
113 int num = this.depth;
114 this.depth = num;
115 }
116 if (this.lookupCDataElems != null)
117 {
118 BitStack bitStack = this.bitsCData;
119 uint curr = bitStack.curr;
120 bitStack.curr = curr;
121 int stackPos = bitStack.stackPos;
122 uint[] bitStack2 = bitStack.bitStack;
123 bitStack.stackPos = stackPos;
124 bitStack.curr = (uint)stackPos;
125 }
126 }
127
128 // Token: 0x060000BE RID: 190 RVA: 0x00003CD0 File Offset: 0x00001ED0
129 internal override void WriteFullEndElement(string prefix, string localName, string ns)
130 {
132 if (this.checkWellFormedDoc)
133 {
134 int num = this.depth;
135 this.depth = num;
136 }
137 if (this.lookupCDataElems != null)
138 {
139 BitStack bitStack = this.bitsCData;
140 uint curr = bitStack.curr;
141 bitStack.curr = curr;
142 int stackPos = bitStack.stackPos;
143 uint[] bitStack2 = bitStack.bitStack;
144 bitStack.stackPos = stackPos;
145 bitStack.curr = (uint)stackPos;
146 }
147 }
148
149 // Token: 0x060000BF RID: 191 RVA: 0x00003D38 File Offset: 0x00001F38
150 internal override void StartElementContent()
151 {
153 }
154
155 // Token: 0x060000C0 RID: 192 RVA: 0x00003D4C File Offset: 0x00001F4C
156 public override void WriteStartAttribute(string prefix, string localName, string ns)
157 {
159 this.inAttr = true;
160 }
161
162 // Token: 0x060000C1 RID: 193 RVA: 0x00003D68 File Offset: 0x00001F68
163 public override void WriteEndAttribute()
164 {
166 }
167
168 // Token: 0x060000C2 RID: 194 RVA: 0x00003D7C File Offset: 0x00001F7C
169 internal override void WriteNamespaceDeclaration(string prefix, string ns)
170 {
172 }
173
174 // Token: 0x17000034 RID: 52
175 // (get) Token: 0x060000C3 RID: 195 RVA: 0x00003D90 File Offset: 0x00001F90
177 {
178 get
179 {
180 /*
181An exception occurred when decompiling this method (060000C3)
182
183ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.QueryOutputWriter::get_SupportsNamespaceDeclarationInChunks()
184
185 ---> System.Exception: Basic block has to end with unconditional control flow.
186{
187 Block_0:
188 stloc:XmlRawWriter(var_0_06, ldfld:XmlRawWriter(QueryOutputWriter::wrapped, ldloc:QueryOutputWriter(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
202 // Token: 0x060000C4 RID: 196 RVA: 0x00003DA4 File Offset: 0x00001FA4
203 internal override void WriteStartNamespaceDeclaration(string prefix)
204 {
206 }
207
208 // Token: 0x060000C5 RID: 197 RVA: 0x00003DB8 File Offset: 0x00001FB8
209 internal override void WriteEndNamespaceDeclaration()
210 {
212 }
213
214 // Token: 0x060000C6 RID: 198 RVA: 0x00003DCC File Offset: 0x00001FCC
215 public override void WriteCData(string text)
216 {
218 }
219
220 // Token: 0x060000C7 RID: 199 RVA: 0x00003DE0 File Offset: 0x00001FE0
221 public override void WriteComment(string text)
222 {
224 }
225
226 // Token: 0x060000C8 RID: 200 RVA: 0x00003DF4 File Offset: 0x00001FF4
227 public override void WriteProcessingInstruction(string name, string text)
228 {
230 }
231
232 // Token: 0x060000C9 RID: 201 RVA: 0x00003E08 File Offset: 0x00002008
233 public override void WriteWhitespace(string ws)
234 {
235 if (this.inAttr)
236 {
238 return;
239 }
240 }
241
242 // Token: 0x060000CA RID: 202 RVA: 0x00003E28 File Offset: 0x00002028
243 public override void WriteString(string text)
244 {
245 if (this.inAttr)
246 {
248 return;
249 }
250 }
251
252 // Token: 0x060000CB RID: 203 RVA: 0x00003E48 File Offset: 0x00002048
253 public override void WriteChars(char[] buffer, int index, int count)
254 {
255 if (this.inAttr)
256 {
258 return;
259 }
260 }
261
262 // Token: 0x060000CC RID: 204 RVA: 0x00003E68 File Offset: 0x00002068
263 public override void WriteEntityRef(string name)
264 {
266 }
267
268 // Token: 0x060000CD RID: 205 RVA: 0x00003E7C File Offset: 0x0000207C
269 public override void WriteCharEntity(char ch)
270 {
272 }
273
274 // Token: 0x060000CE RID: 206 RVA: 0x00003E90 File Offset: 0x00002090
275 public override void WriteSurrogateCharEntity(char lowChar, char highChar)
276 {
278 }
279
280 // Token: 0x060000CF RID: 207 RVA: 0x00003EA4 File Offset: 0x000020A4
281 public override void WriteRaw(char[] buffer, int index, int count)
282 {
283 if (this.inAttr)
284 {
286 return;
287 }
288 }
289
290 // Token: 0x060000D0 RID: 208 RVA: 0x00003EC4 File Offset: 0x000020C4
291 public override void WriteRaw(string data)
292 {
293 if (this.inAttr)
294 {
296 return;
297 }
298 }
299
300 // Token: 0x060000D1 RID: 209 RVA: 0x00003EE4 File Offset: 0x000020E4
301 public override void Close()
302 {
303 do
304 {
306 }
307 while (this.checkWellFormedDoc && !this.hasDocElem);
308 }
309
310 // Token: 0x060000D2 RID: 210 RVA: 0x00003F08 File Offset: 0x00002108
311 public override void Flush()
312 {
314 }
315
316 // Token: 0x060000D3 RID: 211 RVA: 0x00003F1C File Offset: 0x0000211C
317 private bool StartCDataSection()
318 {
319 if (this.lookupCDataElems != null)
320 {
321 uint curr = this.bitsCData.curr;
322 }
323 this.inCDataSection = true;
324 return true;
325 }
326
327 // Token: 0x060000D4 RID: 212 RVA: 0x00003F48 File Offset: 0x00002148
328 private void EndCDataSection()
329 {
330 }
331
332 // Token: 0x04000051 RID: 81
334
335 // Token: 0x04000052 RID: 82
336 private bool inCDataSection;
337
338 // Token: 0x04000053 RID: 83
340
341 // Token: 0x04000054 RID: 84
343
344 // Token: 0x04000055 RID: 85
346
347 // Token: 0x04000056 RID: 86
348 private bool outputDocType;
349
350 // Token: 0x04000057 RID: 87
351 private bool checkWellFormedDoc;
352
353 // Token: 0x04000058 RID: 88
354 private bool hasDocElem;
355
356 // Token: 0x04000059 RID: 89
357 private bool inAttr;
358
359 // Token: 0x0400005A RID: 90
360 private string systemId;
361
362 // Token: 0x0400005B RID: 91
363 private string publicId;
364
365 // Token: 0x0400005C RID: 92
366 private int depth;
367 }
368}
class f__AnonymousType0<< Count > j__TPar
QueryOutputWriter(XmlRawWriter writer, XmlWriterSettings settings)
override void WriteFullEndElement(string prefix, string localName, string ns)
override void WriteNamespaceDeclaration(string prefix, string ns)
override void WriteSurrogateCharEntity(char lowChar, char highChar)
override bool SupportsNamespaceDeclarationInChunks
override void WriteWhitespace(string ws)
override void WriteCharEntity(char ch)
override void WriteRaw(string data)
override void WriteProcessingInstruction(string name, string text)
override void WriteEntityRef(string name)
override void WriteStartNamespaceDeclaration(string prefix)
override void WriteXmlDeclaration(XmlStandalone standalone)
override void WriteStartAttribute(string prefix, string localName, string ns)
Dictionary< XmlQualifiedName, int > lookupCDataElems
override void WriteStartElement(string prefix, string localName, string ns)
override IXmlNamespaceResolver NamespaceResolver
override void WriteString(string text)
override void WriteChars(char[] buffer, int index, int count)
override void WriteDocType(string name, string pubid, string sysid, string subset)
override void WriteRaw(char[] buffer, int index, int count)
override void WriteXmlDeclaration(string xmldecl)
override void WriteComment(string text)
override void WriteEndElement(string prefix, string localName, string ns)
override void WriteCData(string text)
override void WriteEndNamespaceDeclaration()
void Init(string name, string ns)
List< XmlQualifiedName > cdataSections