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

◆ MatchNode()

override XPathNavigator MS.Internal.Xml.XPath.ChildrenQuery.MatchNode ( XPathNavigator context)
inlinesealedvirtual

Reimplemented from MS.Internal.Xml.XPath.Query.

Definition at line 57 of file ChildrenQuery.cs.

58 {
59 if (context != null && matches(context))
60 {
61 XPathNavigator xPathNavigator = context.Clone();
62 if (xPathNavigator.NodeType != XPathNodeType.Attribute && xPathNavigator.MoveToParent())
63 {
64 return qyInput.MatchNode(xPathNavigator);
65 }
66 return null;
67 }
68 return null;
69 }
virtual bool matches(XPathNavigator e)
virtual XPathNavigator MatchNode(XPathNavigator current)
Definition Query.cs:60

References System.Xml.XPath.XPathNavigator.Clone(), MS.Internal.Xml.XPath.BaseAxisQuery.matches(), MS.Internal.Xml.XPath.Query.MatchNode(), System.Xml.XPath.XPathNavigator.MoveToParent(), System.Xml.XPath.XPathNavigator.NodeType, and MS.Internal.Xml.XPath.BaseAxisQuery.qyInput.