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

◆ MoveFirst()

static bool System.Xml.Xsl.Runtime.XPathFollowingIterator.MoveFirst ( XmlNavigatorFilter filter,
XPathNavigator nav )
inlinestaticpackage

Definition at line 38 of file XPathFollowingIterator.cs.

39 {
40 if (nav.NodeType == XPathNodeType.Attribute || nav.NodeType == XPathNodeType.Namespace)
41 {
42 if (!nav.MoveToParent())
43 {
44 return false;
45 }
46 if (!filter.MoveToFollowing(nav, null))
47 {
48 return false;
49 }
50 }
51 else
52 {
53 if (!nav.MoveToNonDescendant())
54 {
55 return false;
56 }
57 if (filter.IsFiltered(nav) && !filter.MoveToFollowing(nav, null))
58 {
59 return false;
60 }
61 }
62 return true;
63 }

References System.Xml.Dictionary, System.Xml.XPath.XPathNavigator.MoveToNonDescendant(), System.Xml.XPath.XPathNavigator.MoveToParent(), and System.Xml.XPath.XPathNavigator.NodeType.

Referenced by System.Xml.Xsl.Runtime.XPathFollowingMergeIterator.MoveFirst(), and System.Xml.Xsl.Runtime.XPathFollowingIterator.MoveNext().