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

◆ Advance()

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

Definition at line 67 of file FollSiblingQuery.cs.

68 {
69 while (true)
70 {
71 if (currentNode == null)
72 {
73 if (_nextInput == null)
74 {
76 }
77 if (_elementStk.Count == 0)
78 {
79 if (_nextInput == null)
80 {
81 break;
82 }
85 }
86 else
87 {
89 }
90 }
92 {
96 if (_nextInput != null)
97 {
99 }
100 }
101 while (currentNode.MoveToNext())
102 {
103 if (matches(currentNode))
104 {
105 position++;
106 return currentNode;
107 }
108 }
109 currentNode = null;
110 }
111 return null;
112 }
virtual bool matches(XPathNavigator e)
readonly ClonableStack< XPathNavigator > _elementStk
XPathNavigator Advance()
virtual bool IsDescendant([NotNullWhen(true)] XPathNavigator? nav)

References MS.Internal.Xml.XPath.FollSiblingQuery._elementStk, MS.Internal.Xml.XPath.FollSiblingQuery._nextInput, MS.Internal.Xml.XPath.Query.Advance(), System.Xml.XPath.XPathNavigator.Clone(), MS.Internal.Xml.XPath.BaseAxisQuery.currentNode, MS.Internal.Xml.XPath.FollSiblingQuery.FetchInput(), System.Xml.XPath.XPathNavigator.IsDescendant(), MS.Internal.Xml.XPath.BaseAxisQuery.matches(), System.Xml.XPath.XPathNavigator.MoveToNext(), MS.Internal.Xml.XPath.ClonableStack< T >.Pop(), MS.Internal.Xml.XPath.BaseAxisQuery.position, MS.Internal.Xml.XPath.ClonableStack< T >.Push(), and MS.Internal.Xml.XPath.BaseAxisQuery.qyInput.