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

◆ matches()

virtual bool MS.Internal.Xml.XPath.BaseAxisQuery.matches ( XPathNavigator e)
inlinevirtualinherited

Reimplemented in MS.Internal.Xml.XPath.NamespaceQuery.

Definition at line 102 of file BaseAxisQuery.cs.

103 {
104 if (TypeTest == e.NodeType || TypeTest == XPathNodeType.All || (TypeTest == XPathNodeType.Text && (e.NodeType == XPathNodeType.Whitespace || e.NodeType == XPathNodeType.SignificantWhitespace)))
105 {
106 if (!NameTest)
107 {
108 return true;
109 }
110 if ((_name.Equals(e.LocalName) || _name.Length == 0) && _nsUri.Equals(e.NamespaceURI))
111 {
112 return true;
113 }
114 }
115 return false;
116 }

References MS.Internal.Xml.XPath.BaseAxisQuery._name, MS.Internal.Xml.XPath.BaseAxisQuery._nsUri, System.Xml.XPath.XPathNavigator.LocalName, System.Xml.XPath.XPathNavigator.NamespaceURI, MS.Internal.Xml.XPath.BaseAxisQuery.NameTest, System.Xml.XPath.XPathNavigator.NodeType, and MS.Internal.Xml.XPath.BaseAxisQuery.TypeTest.

Referenced by MS.Internal.Xml.XPath.AttributeQuery.Advance(), MS.Internal.Xml.XPath.CacheChildrenQuery.Advance(), MS.Internal.Xml.XPath.DescendantOverDescendantQuery.Advance(), MS.Internal.Xml.XPath.FollSiblingQuery.Advance(), MS.Internal.Xml.XPath.PrecedingQuery.Advance(), MS.Internal.Xml.XPath.XPathSelfQuery.Advance(), MS.Internal.Xml.XPath.ParentQuery.Evaluate(), MS.Internal.Xml.XPath.PreSiblingQuery.Evaluate(), MS.Internal.Xml.XPath.XPathAncestorQuery.Evaluate(), MS.Internal.Xml.XPath.AttributeQuery.MatchNode(), MS.Internal.Xml.XPath.ChildrenQuery.MatchNode(), and MS.Internal.Xml.XPath.DescendantBaseQuery.MatchNode().