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
ElementWriter.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000011 RID: 17
6 internal struct ElementWriter
7 {
8 // Token: 0x0600007E RID: 126 RVA: 0x0000336C File Offset: 0x0000156C
9 public ElementWriter(XmlWriter writer)
10 {
11 this._writer = writer;
12 }
13
14 // Token: 0x0600007F RID: 127 RVA: 0x00003380 File Offset: 0x00001580
15 public void WriteElement(XElement e)
16 {
17 this.PushAncestors(e);
18 object content = e.parent.content;
19 }
20
21 // Token: 0x06000080 RID: 128 RVA: 0x000033AC File Offset: 0x000015AC
23 {
24 string text;
25 if (ns._namespaceName._stringLength == 0)
26 {
27 return text;
28 }
29 if (text == null)
30 {
31 return text;
32 }
33 return "xml";
34 }
35
36 // Token: 0x06000081 RID: 129 RVA: 0x000033D4 File Offset: 0x000015D4
37 private void PushAncestors(XElement e)
38 {
39 if (e.parent == null)
40 {
41 return;
42 }
43 XAttribute lastAttr = e.lastAttr;
44 while (lastAttr == null)
45 {
46 }
47 XAttribute next = lastAttr.next;
49 if (next.name._ns._namespaceName._stringLength != 0)
50 {
51 return;
52 }
55 }
56
57 // Token: 0x06000082 RID: 130 RVA: 0x00003430 File Offset: 0x00001630
58 private void PushElement(XElement e)
59 {
60 NamespaceResolver resolver = this._resolver;
61 this._writer = resolver;
62 XAttribute lastAttr = e.lastAttr;
63 if (lastAttr != null)
64 {
65 XAttribute next = lastAttr.next;
67 if (next.name._ns._namespaceName._stringLength != 0)
68 {
69 return;
70 }
73 }
74 }
75
76 // Token: 0x06000083 RID: 131 RVA: 0x00003490 File Offset: 0x00001690
77 private void WriteEndElement()
78 {
79 }
80
81 // Token: 0x06000084 RID: 132 RVA: 0x000034A0 File Offset: 0x000016A0
82 private void WriteFullEndElement()
83 {
84 }
85
86 // Token: 0x06000085 RID: 133 RVA: 0x000034B0 File Offset: 0x000016B0
88 {
89 this.PushElement(e);
90 XNamespace ns = e.name._ns;
91 string prefixOfNamespace = this.GetPrefixOfNamespace(ns, true);
92 XName name = e.name;
93 string namespaceName = ns._namespaceName;
94 string localName = name._localName;
95 XAttribute lastAttr = e.lastAttr;
96 if (lastAttr != null)
97 {
98 XAttribute next = lastAttr.next;
99 long num = 0L;
100 XName name2 = next.name;
101 XNamespace ns2 = name2._ns;
102 string localName2 = name2._localName;
104 string prefixOfNamespace2 = this.GetPrefixOfNamespace(ns2, num != 0L);
105 if (namespaceName2._stringLength == 0)
106 {
107 bool flag = localName2 == "xmlns";
108 }
109 string value = next.value;
111 }
112 }
113
114 // Token: 0x04000024 RID: 36
116
117 // Token: 0x04000025 RID: 37
119 }
120}
class f__AnonymousType0<< Count > j__TPar
XNamespace _ns
Definition XName.cs:123
static XNamespace Get(string namespaceName)
Definition XNamespace.cs:77
ElementWriter(XmlWriter writer)
string GetPrefixOfNamespace(XNamespace ns, bool allowDefaultNamespace)
void WriteStartElement(XElement e)