Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AncestorDocOrderIterator.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
AncestorDocOrderIterator
8
{
9
private
XmlNavigatorStack
_stack
;
10
11
private
XPathNavigator
_navCurrent
;
12
13
public
XPathNavigator
Current
=>
_navCurrent
;
14
15
public
void
Create
(
XPathNavigator
context,
XmlNavigatorFilter
filter
,
bool
orSelf
)
16
{
17
AncestorIterator
ancestorIterator
=
default
(
AncestorIterator
);
18
ancestorIterator
.
Create
(context,
filter
,
orSelf
);
19
_stack
.
Reset
();
20
while
(
ancestorIterator
.MoveNext())
21
{
22
_stack
.
Push
(
ancestorIterator
.Current.Clone());
23
}
24
}
25
26
public
bool
MoveNext
()
27
{
28
if
(
_stack
.
IsEmpty
)
29
{
30
return
false
;
31
}
32
_navCurrent
=
_stack
.
Pop
();
33
return
true
;
34
}
35
}
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.Xsl.Runtime.XmlNavigatorFilter
Definition
XmlNavigatorFilter.cs:8
System.ComponentModel.EditorBrowsableState
EditorBrowsableState
Definition
EditorBrowsableState.cs:4
System.ComponentModel
Definition
ColumnAttribute.cs:3
System.Xml.XPath
Definition
Extensions.cs:5
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.Xml.Xsl.Runtime.AncestorDocOrderIterator.Create
void Create(XPathNavigator context, XmlNavigatorFilter filter, bool orSelf)
Definition
AncestorDocOrderIterator.cs:15
System.Xml.Xsl.Runtime.AncestorDocOrderIterator.MoveNext
bool MoveNext()
Definition
AncestorDocOrderIterator.cs:26
System.Xml.Xsl.Runtime.AncestorDocOrderIterator._navCurrent
XPathNavigator _navCurrent
Definition
AncestorDocOrderIterator.cs:11
System.Xml.Xsl.Runtime.AncestorDocOrderIterator.Current
XPathNavigator Current
Definition
AncestorDocOrderIterator.cs:13
System.Xml.Xsl.Runtime.AncestorDocOrderIterator._stack
XmlNavigatorStack _stack
Definition
AncestorDocOrderIterator.cs:9
System.Xml.Xsl.Runtime.AncestorDocOrderIterator
Definition
AncestorDocOrderIterator.cs:8
System.Xml.Xsl.Runtime.AncestorIterator.Create
void Create(XPathNavigator context, XmlNavigatorFilter filter, bool orSelf)
Definition
AncestorIterator.cs:17
System.Xml.Xsl.Runtime.AncestorIterator
Definition
AncestorIterator.cs:8
System.Xml.Xsl.Runtime.XmlNavigatorStack.IsEmpty
bool IsEmpty
Definition
XmlNavigatorStack.cs:11
System.Xml.Xsl.Runtime.XmlNavigatorStack.Push
void Push(XPathNavigator nav)
Definition
XmlNavigatorStack.cs:13
System.Xml.Xsl.Runtime.XmlNavigatorStack.Pop
XPathNavigator Pop()
Definition
XmlNavigatorStack.cs:28
System.Xml.Xsl.Runtime.XmlNavigatorStack.Reset
void Reset()
Definition
XmlNavigatorStack.cs:38
System.Xml.Xsl.Runtime.XmlNavigatorStack
Definition
XmlNavigatorStack.cs:6
source
System.Private.Xml
System.Xml.Xsl.Runtime
AncestorDocOrderIterator.cs
Generated by
1.10.0