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

◆ GetNonDescendant()

static bool MS.Internal.Xml.Cache.XPathNodeHelper.GetNonDescendant ( ref XPathNode[] pageNode,
ref int idxNode )
inlinestatic

Definition at line 442 of file XPathNodeHelper.cs.

443 {
444 XPathNode[] pageNode2 = pageNode;
445 int num = idxNode;
446 do
447 {
448 if (pageNode2[num].HasSibling)
449 {
450 pageNode = pageNode2;
451 idxNode = pageNode2[num].GetSibling(out pageNode);
452 return true;
453 }
454 num = pageNode2[num].GetParent(out pageNode2);
455 }
456 while (num != 0);
457 return false;
458 }

References MS.Internal.Xml.Cache.XPathNode.GetParent(), and MS.Internal.Xml.Cache.XPathNode.GetSibling().