Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ MatchNode()

override XPathNavigator MS.Internal.Xml.XPath.AttributeQuery.MatchNode ( XPathNavigator context)
inlinevirtual

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

Definition at line 51 of file AttributeQuery.cs.

52 {
53 if (context != null && context.NodeType == XPathNodeType.Attribute && matches(context))
54 {
55 XPathNavigator xPathNavigator = context.Clone();
56 if (xPathNavigator.MoveToParent())
57 {
58 return qyInput.MatchNode(xPathNavigator);
59 }
60 }
61 return null;
62 }
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.