Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XPathPrecedingIterator.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
XPathPrecedingIterator
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
)
16
{
17
XPathPrecedingDocOrderIterator
xPathPrecedingDocOrderIterator
=
default
(
XPathPrecedingDocOrderIterator
);
18
xPathPrecedingDocOrderIterator
.
Create
(context,
filter
);
19
_stack
.
Reset
();
20
while
(
xPathPrecedingDocOrderIterator
.MoveNext())
21
{
22
_stack
.
Push
(
xPathPrecedingDocOrderIterator
.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.XPathPrecedingDocOrderIterator.Create
void Create(XPathNavigator input, XmlNavigatorFilter filter)
Definition
XPathPrecedingDocOrderIterator.cs:17
System.Xml.Xsl.Runtime.XPathPrecedingDocOrderIterator
Definition
XPathPrecedingDocOrderIterator.cs:8
System.Xml.Xsl.Runtime.XPathPrecedingIterator._navCurrent
XPathNavigator _navCurrent
Definition
XPathPrecedingIterator.cs:11
System.Xml.Xsl.Runtime.XPathPrecedingIterator.Current
XPathNavigator Current
Definition
XPathPrecedingIterator.cs:13
System.Xml.Xsl.Runtime.XPathPrecedingIterator.Create
void Create(XPathNavigator context, XmlNavigatorFilter filter)
Definition
XPathPrecedingIterator.cs:15
System.Xml.Xsl.Runtime.XPathPrecedingIterator._stack
XmlNavigatorStack _stack
Definition
XPathPrecedingIterator.cs:9
System.Xml.Xsl.Runtime.XPathPrecedingIterator.MoveNext
bool MoveNext()
Definition
XPathPrecedingIterator.cs:26
System.Xml.Xsl.Runtime.XPathPrecedingIterator
Definition
XPathPrecedingIterator.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
XPathPrecedingIterator.cs
Generated by
1.10.0