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

◆ MoveToNext() [3/3]

override bool System.Xml.XPath.XNodeNavigator.MoveToNext ( XPathNodeType type)
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 482 of file XNodeNavigator.cs.

483 {
484 if (_source is XNode xNode)
485 {
486 XContainer parent = xNode.GetParent();
487 if (parent != null)
488 {
489 int num = GetElementContentMask(type);
490 if ((0x18u & (uint)num) != 0 && parent.GetParent() == null && parent is XDocument)
491 {
492 num &= -25;
493 }
494 XNode xNode2 = null;
496 while (true)
497 {
499 if (xNode2 == null)
500 {
501 break;
502 }
503 if (((1 << (int)xNode2.NodeType) & num) != 0 && (!(xNode3 is XText) || !(xNode2 is XText)))
504 {
505 _source = xNode2;
506 return true;
507 }
508 xNode3 = xNode2;
509 }
510 }
511 }
512 return false;
513 }
static int GetElementContentMask(XPathNodeType type)

References System.Xml.XPath.XNodeNavigator._source, System.Xml.Dictionary, System.Xml.XPath.XNodeNavigator.GetElementContentMask(), System.Xml.Linq.XNode.NextNode, and System.type.