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

◆ Advance()

override XPathNavigator MS.Internal.Xml.XPath.DescendantOverDescendantQuery.Advance ( )
inline

Definition at line 26 of file DescendantOverDescendantQuery.cs.

27 {
28 while (true)
29 {
30 if (_level == 0)
31 {
33 position = 0;
34 if (currentNode == null)
35 {
36 return null;
37 }
39 {
40 break;
41 }
43 if (!MoveToFirstChild())
44 {
45 continue;
46 }
47 }
48 else if (!MoveUpUntilNext())
49 {
50 continue;
51 }
52 do
53 {
55 {
56 position++;
57 return currentNode;
58 }
59 }
60 while (MoveToFirstChild());
61 }
62 position = 1;
63 return currentNode;
64 }
virtual bool matches(XPathNavigator e)
XPathNavigator Advance()

References MS.Internal.Xml.XPath.DescendantOverDescendantQuery._level, MS.Internal.Xml.XPath.Query.Advance(), System.Xml.XPath.XPathNavigator.Clone(), MS.Internal.Xml.XPath.BaseAxisQuery.currentNode, MS.Internal.Xml.XPath.BaseAxisQuery.matches(), MS.Internal.Xml.XPath.DescendantBaseQuery.matchSelf, MS.Internal.Xml.XPath.DescendantOverDescendantQuery.MoveToFirstChild(), MS.Internal.Xml.XPath.DescendantOverDescendantQuery.MoveUpUntilNext(), MS.Internal.Xml.XPath.BaseAxisQuery.position, and MS.Internal.Xml.XPath.BaseAxisQuery.qyInput.