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.
1
using
System
;
2
3
namespace
System.Xml.Linq
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
22
private
string
GetPrefixOfNamespace
(
XNamespace
ns,
bool
allowDefaultNamespace
)
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
;
48
bool
isNamespaceDeclaration
= next.
IsNamespaceDeclaration
;
49
if
(next.
name
.
_ns
.
_namespaceName
._stringLength != 0)
50
{
51
return
;
52
}
53
XNamespace
xnamespace
=
XNamespace
.
Get
(next.
value
);
54
XAttribute
lastAttr2
= e.
lastAttr
;
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
;
66
bool
isNamespaceDeclaration
= next.
IsNamespaceDeclaration
;
67
if
(next.
name
.
_ns
.
_namespaceName
._stringLength != 0)
68
{
69
return
;
70
}
71
XNamespace
xnamespace
=
XNamespace
.
Get
(next.
value
);
72
XAttribute
lastAttr2
= e.
lastAttr
;
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
87
private
void
WriteStartElement
(
XElement
e)
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 = 0
L
;
100
XName
name2
= next.
name
;
101
XNamespace
ns2
=
name2
._ns;
102
string
localName2
=
name2
._localName;
103
string
namespaceName2
=
ns2
.
_namespaceName
;
104
string
prefixOfNamespace2
= this.
GetPrefixOfNamespace
(ns2, num != 0
L
);
105
if
(
namespaceName2
._stringLength == 0)
106
{
107
bool
flag =
localName2
==
"xmlns"
;
108
}
109
string
value
= next.
value
;
110
XAttribute
lastAttr2
= e.
lastAttr
;
111
}
112
}
113
114
// Token: 0x04000024 RID: 36
115
private
XmlWriter
_writer
;
116
117
// Token: 0x04000025 RID: 37
118
private
NamespaceResolver
_resolver
;
119
}
120
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Xml.Linq.XAttribute.IsNamespaceDeclaration
bool IsNamespaceDeclaration
Definition
XAttribute.cs:40
System.Xml.Linq.XAttribute.next
XAttribute next
Definition
XAttribute.cs:155
System.Xml.Linq.XAttribute.name
XName name
Definition
XAttribute.cs:158
System.Xml.Linq.XAttribute.value
string value
Definition
XAttribute.cs:161
System.Xml.Linq.XAttribute
Definition
XAttribute.cs:8
System.Xml.Linq.XContainer.content
object content
Definition
XContainer.cs:271
System.Xml.Linq.XElement.name
XName name
Definition
XElement.cs:347
System.Xml.Linq.XElement.lastAttr
XAttribute lastAttr
Definition
XElement.cs:350
System.Xml.Linq.XElement
Definition
XElement.cs:15
System.Xml.Linq.XName._ns
XNamespace _ns
Definition
XName.cs:123
System.Xml.Linq.XName
Definition
XName.cs:10
System.Xml.Linq.XNamespace._namespaceName
string _namespaceName
Definition
XNamespace.cs:197
System.Xml.Linq.XNamespace.Get
static XNamespace Get(string namespaceName)
Definition
XNamespace.cs:77
System.Xml.Linq.XNamespace
Definition
XNamespace.cs:8
System.Xml.Linq.XObject.parent
XContainer parent
Definition
XObject.cs:190
System.Xml.XmlWriter
Definition
XmlWriter.cs:8
System.Xml.Linq
Definition
ElementWriter.cs:4
System.ExceptionArgument.text
@ text
System.ExceptionArgument.value
@ value
System.ExceptionArgument.name
@ name
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
System.Xml.Linq.ElementWriter.WriteEndElement
void WriteEndElement()
Definition
ElementWriter.cs:77
System.Xml.Linq.ElementWriter.PushAncestors
void PushAncestors(XElement e)
Definition
ElementWriter.cs:37
System.Xml.Linq.ElementWriter._resolver
NamespaceResolver _resolver
Definition
ElementWriter.cs:118
System.Xml.Linq.ElementWriter.WriteFullEndElement
void WriteFullEndElement()
Definition
ElementWriter.cs:82
System.Xml.Linq.ElementWriter.ElementWriter
ElementWriter(XmlWriter writer)
Definition
ElementWriter.cs:9
System.Xml.Linq.ElementWriter.PushElement
void PushElement(XElement e)
Definition
ElementWriter.cs:58
System.Xml.Linq.ElementWriter.GetPrefixOfNamespace
string GetPrefixOfNamespace(XNamespace ns, bool allowDefaultNamespace)
Definition
ElementWriter.cs:22
System.Xml.Linq.ElementWriter.WriteStartElement
void WriteStartElement(XElement e)
Definition
ElementWriter.cs:87
System.Xml.Linq.ElementWriter.WriteElement
void WriteElement(XElement e)
Definition
ElementWriter.cs:15
System.Xml.Linq.ElementWriter._writer
XmlWriter _writer
Definition
ElementWriter.cs:115
System.Xml.Linq.ElementWriter
Definition
ElementWriter.cs:7
System.Xml.Linq.NamespaceResolver
Definition
NamespaceResolver.cs:7
source
System.Xml.Linq
System
Xml
Linq
ElementWriter.cs
Generated by
1.10.0