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

◆ MoveToNonDescendant()

bool System.Xml.XPath.XPathNavigator.MoveToNonDescendant ( )
inlinepackageinherited

Definition at line 1691 of file XPathNavigator.cs.

1692 {
1693 if (NodeType == XPathNodeType.Root)
1694 {
1695 return false;
1696 }
1697 if (MoveToNext())
1698 {
1699 return true;
1700 }
1701 XPathNavigator xPathNavigator = Clone();
1702 if (!MoveToParent())
1703 {
1704 return false;
1705 }
1706 XPathNodeType nodeType = xPathNavigator.NodeType;
1707 if ((uint)(nodeType - 2) <= 1u && MoveToFirstChild())
1708 {
1709 return true;
1710 }
1711 while (!MoveToNext())
1712 {
1713 if (!MoveToParent())
1714 {
1716 return false;
1717 }
1718 }
1719 return true;
1720 }
bool MoveTo(XPathNavigator other)

References System.Xml.XPath.XPathNavigator.Clone(), System.Xml.XPath.XPathNavigator.MoveTo(), System.Xml.XPath.XPathNavigator.MoveToFirstChild(), System.Xml.XPath.XPathNavigator.MoveToNext(), System.Xml.XPath.XPathNavigator.MoveToParent(), and System.Xml.XPath.XPathNavigator.NodeType.

Referenced by MS.Internal.Xml.Cache.XPathDocumentElementDescendantIterator.XPathDocumentElementDescendantIterator(), MS.Internal.Xml.Cache.XPathDocumentKindDescendantIterator.XPathDocumentKindDescendantIterator(), System.Xml.Xsl.Runtime.DescendantIterator.Create(), System.Xml.Xsl.Runtime.XPathFollowingIterator.MoveFirst(), System.Xml.Xsl.Runtime.DescendantMergeIterator.MoveNext(), System.Xml.XPath.XPathNavigator.MoveToFollowing(), and System.Xml.XPath.XPathNavigator.MoveToFollowing().