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

◆ MoveToFollowing() [5/6]

override bool MS.Internal.Xml.Cache.XPathDocumentNavigator.MoveToFollowing ( XPathNodeType type,
XPathNavigator end )
inline

Definition at line 432 of file XPathDocumentNavigator.cs.

433 {
435 XPathNode[] pageEnd;
436 int followingEnd;
437 if (type == XPathNodeType.Text || type == XPathNodeType.All)
438 {
439 if (_pageCurrent[_idxCurrent].HasCollapsedText)
440 {
442 {
443 return false;
444 }
448 return true;
449 }
450 if (type == XPathNodeType.Text)
451 {
453 XPathNode[] pageCurrent;
454 int idxCurrent;
455 if (_idxParent != 0)
456 {
459 }
460 else
461 {
464 }
466 {
467 return false;
468 }
469 if (!XPathNodeHelper.GetTextFollowing(ref pageCurrent, ref idxCurrent, pageEnd, followingEnd))
470 {
471 return false;
472 }
474 {
475 _idxCurrent = pageCurrent[idxCurrent].Document.GetCollapsedTextNode(out _pageCurrent);
478 }
479 else
480 {
483 _pageParent = null;
484 _idxParent = 0;
485 }
486 return true;
487 }
488 }
490 if (_idxParent != 0)
491 {
492 if (!XPathNodeHelper.GetContentFollowing(ref _pageParent, ref _idxParent, pageEnd, followingEnd, type))
493 {
494 return false;
495 }
498 _pageParent = null;
499 _idxParent = 0;
500 return true;
501 }
502 return XPathNodeHelper.GetContentFollowing(ref _pageCurrent, ref _idxCurrent, pageEnd, followingEnd, type);
503 }
XPathDocumentNavigator(XPathNode[] pageCurrent, int idxCurrent, XPathNode[] pageParent, int idxParent)
int GetFollowingEnd(XPathDocumentNavigator end, bool useParentOfVirtual, out XPathNode[] pageEnd)
int GetCollapsedTextNode(out XPathNode[] pageText)

References MS.Internal.Xml.Cache.XPathDocumentNavigator.XPathDocumentNavigator(), MS.Internal.Xml.Cache.XPathDocumentNavigator._idxCurrent, MS.Internal.Xml.Cache.XPathDocumentNavigator._idxParent, MS.Internal.Xml.Cache.XPathDocumentNavigator._pageCurrent, MS.Internal.Xml.Cache.XPathDocumentNavigator._pageParent, System.Xml.Dictionary, MS.Internal.Xml.Cache.XPathNode.Document, System.Xml.XPath.XPathDocument.GetCollapsedTextNode(), MS.Internal.Xml.Cache.XPathNodeHelper.GetContentFollowing(), MS.Internal.Xml.Cache.XPathDocumentNavigator.GetFollowingEnd(), MS.Internal.Xml.Cache.XPathNodeHelper.GetTextFollowing(), and MS.Internal.Xml.Cache.XPathDocumentNavigator.NodeType.