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

◆ MatchNode()

override XPathNavigator MS.Internal.Xml.XPath.DescendantBaseQuery.MatchNode ( XPathNavigator context)
inlinevirtualinherited

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

Definition at line 26 of file DescendantBaseQuery.cs.

27 {
28 if (context != null)
29 {
30 if (!abbrAxis)
31 {
33 }
34 XPathNavigator xPathNavigator = null;
35 if (matches(context))
36 {
37 if (matchSelf && (xPathNavigator = qyInput.MatchNode(context)) != null)
38 {
39 return xPathNavigator;
40 }
41 XPathNavigator xPathNavigator2 = context.Clone();
42 while (xPathNavigator2.MoveToParent())
43 {
44 if ((xPathNavigator = qyInput.MatchNode(xPathNavigator2)) != null)
45 {
46 return xPathNavigator;
47 }
48 }
49 }
50 }
51 return null;
52 }
virtual bool matches(XPathNavigator e)
virtual XPathNavigator MatchNode(XPathNavigator current)
Definition Query.cs:60
static string Xp_InvalidPattern
Definition SR.cs:1248
Definition SR.cs:7
static XPathException Create(string res)

References MS.Internal.Xml.XPath.DescendantBaseQuery.abbrAxis, System.Xml.XPath.XPathNavigator.Clone(), System.Xml.XPath.XPathException.Create(), MS.Internal.Xml.XPath.BaseAxisQuery.matches(), MS.Internal.Xml.XPath.Query.MatchNode(), MS.Internal.Xml.XPath.DescendantBaseQuery.matchSelf, System.Xml.XPath.XPathNavigator.MoveToParent(), MS.Internal.Xml.XPath.BaseAxisQuery.qyInput, and System.SR.Xp_InvalidPattern.