Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AncestorIterator.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
AncestorIterator
8
{
9
private
XmlNavigatorFilter
_filter
;
10
11
private
XPathNavigator
_navCurrent
;
12
13
private
bool
_haveCurrent
;
14
15
public
XPathNavigator
Current
=>
_navCurrent
;
16
17
public
void
Create
(
XPathNavigator
context,
XmlNavigatorFilter
filter
,
bool
orSelf
)
18
{
19
_filter
=
filter
;
20
_navCurrent
=
XmlQueryRuntime
.
SyncToNavigator
(
_navCurrent
, context);
21
_haveCurrent
=
orSelf
&& !
_filter
.
IsFiltered
(
_navCurrent
);
22
}
23
24
public
bool
MoveNext
()
25
{
26
if
(
_haveCurrent
)
27
{
28
_haveCurrent
=
false
;
29
return
true
;
30
}
31
while
(
_navCurrent
.
MoveToParent
())
32
{
33
if
(!
_filter
.
IsFiltered
(
_navCurrent
))
34
{
35
return
true
;
36
}
37
}
38
return
false
;
39
}
40
}
System.Xml.XPath.XPathNavigator.MoveToParent
bool MoveToParent()
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.Xsl.Runtime.XmlNavigatorFilter.IsFiltered
bool IsFiltered(XPathNavigator navigator)
System.Xml.Xsl.Runtime.XmlNavigatorFilter
Definition
XmlNavigatorFilter.cs:8
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
Definition
Extensions.cs:5
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.Xml.Xsl.Runtime.AncestorIterator.Current
XPathNavigator Current
Definition
AncestorIterator.cs:15
System.Xml.Xsl.Runtime.AncestorIterator._filter
XmlNavigatorFilter _filter
Definition
AncestorIterator.cs:9
System.Xml.Xsl.Runtime.AncestorIterator._haveCurrent
bool _haveCurrent
Definition
AncestorIterator.cs:13
System.Xml.Xsl.Runtime.AncestorIterator._navCurrent
XPathNavigator _navCurrent
Definition
AncestorIterator.cs:11
System.Xml.Xsl.Runtime.AncestorIterator.Create
void Create(XPathNavigator context, XmlNavigatorFilter filter, bool orSelf)
Definition
AncestorIterator.cs:17
System.Xml.Xsl.Runtime.AncestorIterator.MoveNext
bool MoveNext()
Definition
AncestorIterator.cs:24
System.Xml.Xsl.Runtime.AncestorIterator
Definition
AncestorIterator.cs:8
source
System.Private.Xml
System.Xml.Xsl.Runtime
AncestorIterator.cs
Generated by
1.10.0