Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XPathAncestorIterator.cs
Go to the documentation of this file.
1
using
System.Xml.XPath
;
2
3
namespace
MS.Internal.Xml.XPath
;
4
5
internal
sealed
class
XPathAncestorIterator
:
XPathAxisIterator
6
{
7
public
XPathAncestorIterator
(
XPathNavigator
nav
,
XPathNodeType
type
,
bool
matchSelf
)
8
: base(
nav
,
type
,
matchSelf
)
9
{
10
}
11
12
public
XPathAncestorIterator
(
XPathNavigator
nav
,
string
name
,
string
namespaceURI,
bool
matchSelf
)
13
: base(
nav
,
name
, namespaceURI,
matchSelf
)
14
{
15
}
16
17
public
XPathAncestorIterator
(
XPathAncestorIterator
other)
18
: base(other)
19
{
20
}
21
22
public
override
bool
MoveNext
()
23
{
24
if
(
first
)
25
{
26
first
=
false
;
27
if
(
matchSelf
&&
Matches
)
28
{
29
position
= 1;
30
return
true
;
31
}
32
}
33
while
(
nav
.
MoveToParent
())
34
{
35
if
(
Matches
)
36
{
37
position
++;
38
return
true
;
39
}
40
}
41
return
false
;
42
}
43
44
public
override
XPathNodeIterator
Clone
()
45
{
46
return
new
XPathAncestorIterator
(
this
);
47
}
48
}
MS.Internal.Xml.XPath.XPathAncestorIterator.MoveNext
override bool MoveNext()
Definition
XPathAncestorIterator.cs:22
MS.Internal.Xml.XPath.XPathAncestorIterator.Clone
override XPathNodeIterator Clone()
Definition
XPathAncestorIterator.cs:44
MS.Internal.Xml.XPath.XPathAncestorIterator.XPathAncestorIterator
XPathAncestorIterator(XPathAncestorIterator other)
Definition
XPathAncestorIterator.cs:17
MS.Internal.Xml.XPath.XPathAncestorIterator.XPathAncestorIterator
XPathAncestorIterator(XPathNavigator nav, string name, string namespaceURI, bool matchSelf)
Definition
XPathAncestorIterator.cs:12
MS.Internal.Xml.XPath.XPathAncestorIterator.XPathAncestorIterator
XPathAncestorIterator(XPathNavigator nav, XPathNodeType type, bool matchSelf)
Definition
XPathAncestorIterator.cs:7
MS.Internal.Xml.XPath.XPathAncestorIterator
Definition
XPathAncestorIterator.cs:6
MS.Internal.Xml.XPath.XPathAxisIterator.position
int position
Definition
XPathAxisIterator.cs:16
MS.Internal.Xml.XPath.XPathAxisIterator.name
string name
Definition
XPathAxisIterator.cs:12
MS.Internal.Xml.XPath.XPathAxisIterator.nav
XPathNavigator nav
Definition
XPathAxisIterator.cs:8
MS.Internal.Xml.XPath.XPathAxisIterator.Matches
virtual bool Matches
Definition
XPathAxisIterator.cs:27
MS.Internal.Xml.XPath.XPathAxisIterator.type
XPathNodeType type
Definition
XPathAxisIterator.cs:10
MS.Internal.Xml.XPath.XPathAxisIterator.first
bool first
Definition
XPathAxisIterator.cs:20
MS.Internal.Xml.XPath.XPathAxisIterator.matchSelf
bool matchSelf
Definition
XPathAxisIterator.cs:18
MS.Internal.Xml.XPath.XPathAxisIterator
Definition
XPathAxisIterator.cs:7
System.Xml.XPath.XPathNavigator.MoveToParent
bool MoveToParent()
System.Xml.XPath.XPathNavigator
Definition
XPathNavigator.cs:15
System.Xml.XPath.XPathNodeIterator
Definition
XPathNodeIterator.cs:8
MS.Internal.Xml.XPath
Definition
AbsoluteQuery.cs:3
System.Xml.XPath.XPathNodeType
XPathNodeType
Definition
XPathNodeType.cs:4
System.Xml.XPath
Definition
Extensions.cs:5
source
System.Private.Xml
MS.Internal.Xml.XPath
XPathAncestorIterator.cs
Generated by
1.10.0