Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
NodeKindContentIterator.cs
Go to the documentation of this file.
1
using
System.ComponentModel
;
2
using
System.Xml.XPath
;
3
4
namespace
System.Xml.Xsl.Runtime
;
5
6
[
EditorBrowsable
(
EditorBrowsableState
.Never)]
7
public
struct
NodeKindContentIterator
8
{
9
private
XPathNodeType
_nodeType
;
10
11
private
XPathNavigator
_navCurrent
;
12
13
private
bool
_needFirst
;
14
15
public
XPathNavigator
Current
=>
_navCurrent
;
16
17
public
void
Create
(
XPathNavigator
context,
XPathNodeType
nodeType)
18
{
19
_navCurrent
=
XmlQueryRuntime
.
SyncToNavigator
(
_navCurrent
, context);
20
_nodeType
= nodeType;
21
_needFirst
=
true
;
22
}
23
24
public
bool
MoveNext
()
25
{
26
if
(
_needFirst
)
27
{
28
_needFirst
= !
_navCurrent
.
MoveToChild
(
_nodeType
);
29
return
!
_needFirst
;
30
}
31
return
_navCurrent
.
MoveToNext
(
_nodeType
);
32
}
33
}
System.Xml.XPath.XPathNavigator.MoveToNext
bool MoveToNext()
System.Xml.XPath.XPathNavigator.MoveToChild
virtual bool MoveToChild(string localName, string namespaceURI)
Definition
XPathNavigator.cs:959
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.Xsl.Runtime.XmlQueryRuntime.SyncToNavigator
static XPathNavigator SyncToNavigator(XPathNavigator navigatorThis, XPathNavigator navigatorThat)
Definition
XmlQueryRuntime.cs:707
System.Xml.Xsl.Runtime.XmlQueryRuntime
Definition
XmlQueryRuntime.cs:16
System.ComponentModel.EditorBrowsableState
EditorBrowsableState
Definition
EditorBrowsableState.cs:4
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Xml.XPath.XPathNodeType
XPathNodeType
Definition
XPathNodeType.cs:4
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.Xml.Xsl.Runtime.NodeKindContentIterator._needFirst
bool _needFirst
Definition
NodeKindContentIterator.cs:13
System.Xml.Xsl.Runtime.NodeKindContentIterator.Current
XPathNavigator Current
Definition
NodeKindContentIterator.cs:15
System.Xml.Xsl.Runtime.NodeKindContentIterator._navCurrent
XPathNavigator _navCurrent
Definition
NodeKindContentIterator.cs:11
System.Xml.Xsl.Runtime.NodeKindContentIterator.MoveNext
bool MoveNext()
Definition
NodeKindContentIterator.cs:24
System.Xml.Xsl.Runtime.NodeKindContentIterator._nodeType
XPathNodeType _nodeType
Definition
NodeKindContentIterator.cs:9
System.Xml.Xsl.Runtime.NodeKindContentIterator.Create
void Create(XPathNavigator context, XPathNodeType nodeType)
Definition
NodeKindContentIterator.cs:17
System.Xml.Xsl.Runtime.NodeKindContentIterator
Definition
NodeKindContentIterator.cs:8
source
System.Private.Xml
System.Xml.Xsl.Runtime
NodeKindContentIterator.cs
Generated by
1.10.0