Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XPathFollowingIterator.cs
Go to the documentation of this file.
3
5
8{
10
12
13 private bool _needFirst;
14
16
23
24 public bool MoveNext()
25 {
26 if (_needFirst)
27 {
29 {
30 return false;
31 }
32 _needFirst = false;
33 return true;
34 }
36 }
37
39 {
40 if (nav.NodeType == XPathNodeType.Attribute || nav.NodeType == XPathNodeType.Namespace)
41 {
42 if (!nav.MoveToParent())
43 {
44 return false;
45 }
46 if (!filter.MoveToFollowing(nav, null))
47 {
48 return false;
49 }
50 }
51 else
52 {
53 if (!nav.MoveToNonDescendant())
54 {
55 return false;
56 }
57 if (filter.IsFiltered(nav) && !filter.MoveToFollowing(nav, null))
58 {
59 return false;
60 }
61 }
62 return true;
63 }
64}
bool MoveToFollowing(XPathNavigator navigator, XPathNavigator navigatorEnd)
static XPathNavigator SyncToNavigator(XPathNavigator navigatorThis, XPathNavigator navigatorThat)
static bool MoveFirst(XmlNavigatorFilter filter, XPathNavigator nav)
void Create(XPathNavigator input, XmlNavigatorFilter filter)