Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MoveNext()

override bool MS.Internal.Xml.XPath.XPathDescendantIterator.MoveNext ( )
inline

Definition at line 30 of file XPathDescendantIterator.cs.

31 {
32 if (_level == -1)
33 {
34 return false;
35 }
36 if (first)
37 {
38 first = false;
39 if (matchSelf && Matches)
40 {
41 position = 1;
42 return true;
43 }
44 }
45 do
46 {
48 {
49 _level++;
50 continue;
51 }
52 while (true)
53 {
54 if (_level == 0)
55 {
56 _level = -1;
57 return false;
58 }
59 if (nav.MoveToNext())
60 {
61 break;
62 }
64 _level--;
65 }
66 }
67 while (!Matches);
68 position++;
69 return true;
70 }

References MS.Internal.Xml.XPath.XPathDescendantIterator._level, MS.Internal.Xml.XPath.XPathAxisIterator.first, MS.Internal.Xml.XPath.XPathAxisIterator.Matches, MS.Internal.Xml.XPath.XPathAxisIterator.matchSelf, System.Xml.XPath.XPathNavigator.MoveToFirstChild(), System.Xml.XPath.XPathNavigator.MoveToNext(), System.Xml.XPath.XPathNavigator.MoveToParent(), MS.Internal.Xml.XPath.XPathAxisIterator.nav, and MS.Internal.Xml.XPath.XPathAxisIterator.position.