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

◆ Advance()

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

Definition at line 26 of file ChildrenQuery.cs.

27 {
28 while (!_iterator.MoveNext())
29 {
30 XPathNavigator xPathNavigator = qyInput.Advance();
31 if (xPathNavigator == null)
32 {
33 return null;
34 }
35 if (base.NameTest)
36 {
37 if (base.TypeTest == XPathNodeType.ProcessingInstruction)
38 {
39 _iterator = new IteratorFilter(xPathNavigator.SelectChildren(base.TypeTest), base.Name);
40 }
41 else
42 {
43 _iterator = xPathNavigator.SelectChildren(base.Name, base.Namespace);
44 }
45 }
46 else
47 {
48 _iterator = xPathNavigator.SelectChildren(base.TypeTest);
49 }
50 position = 0;
51 }
52 position++;
54 return currentNode;
55 }
XPathNavigator Advance()
virtual XPathNodeIterator SelectChildren(XPathNodeType type)

References MS.Internal.Xml.XPath.ChildrenQuery._iterator, MS.Internal.Xml.XPath.Query.Advance(), System.Xml.XPath.XPathNodeIterator.Current, MS.Internal.Xml.XPath.BaseAxisQuery.currentNode, System.Xml.XPath.XPathNodeIterator.MoveNext(), MS.Internal.Xml.XPath.BaseAxisQuery.position, MS.Internal.Xml.XPath.BaseAxisQuery.qyInput, and System.Xml.XPath.XPathNavigator.SelectChildren().