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

◆ MoveToFollowing() [4/4]

virtual bool System.Xml.XPath.XPathNavigator.MoveToFollowing ( XPathNodeType type,
XPathNavigator? end )
inlinevirtualinherited

Definition at line 1044 of file XPathNavigator.cs.

1045 {
1046 XPathNavigator other = Clone();
1048 if (end != null)
1049 {
1050 XPathNodeType nodeType = end.NodeType;
1051 if ((uint)(nodeType - 2) <= 1u)
1052 {
1053 end = end.Clone();
1054 end.MoveToNonDescendant();
1055 }
1056 }
1057 XPathNodeType nodeType2 = NodeType;
1058 if ((uint)(nodeType2 - 2) <= 1u && !MoveToParent())
1059 {
1060 return false;
1061 }
1062 do
1063 {
1064 if (!MoveToFirstChild())
1065 {
1066 while (!MoveToNext())
1067 {
1068 if (!MoveToParent())
1069 {
1070 MoveTo(other);
1071 return false;
1072 }
1073 }
1074 }
1075 if (end != null && IsSamePosition(end))
1076 {
1077 MoveTo(other);
1078 return false;
1079 }
1080 }
1081 while (((1 << (int)NodeType) & contentKindMask) == 0);
1082 return true;
1083 }
static int GetContentKindMask(XPathNodeType type)
bool MoveTo(XPathNavigator other)
bool IsSamePosition(XPathNavigator other)

References System.Xml.XPath.XPathNavigator.Clone(), System.Xml.XPath.XPathNavigator.GetContentKindMask(), System.Xml.XPath.XPathNavigator.IsSamePosition(), System.Xml.XPath.XPathNavigator.MoveTo(), System.Xml.XPath.XPathNavigator.MoveToFirstChild(), System.Xml.XPath.XPathNavigator.MoveToNext(), System.Xml.XPath.XPathNavigator.MoveToNonDescendant(), System.Xml.XPath.XPathNavigator.MoveToParent(), System.Xml.XPath.XPathNavigator.NodeType, System.other, and System.type.