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

◆ GetTextFollowing()

static bool MS.Internal.Xml.Cache.XPathNodeHelper.GetTextFollowing ( ref XPathNode[] pageCurrent,
ref int idxCurrent,
XPathNode[] pageEnd,
int idxEnd )
inlinestatic

Definition at line 399 of file XPathNodeHelper.cs.

400 {
401 XPathNode[] array = pageCurrent;
402 int num = idxCurrent;
403 num++;
404 while (true)
405 {
406 if (array == pageEnd && num <= idxEnd)
407 {
408 for (; num != idxEnd; num++)
409 {
410 if (array[num].IsText || (array[num].NodeType == XPathNodeType.Element && array[num].HasCollapsedText))
411 {
412 goto end_IL_000a;
413 }
414 }
415 }
416 else
417 {
418 for (; num < array[0].PageInfo.NodeCount; num++)
419 {
420 if (array[num].IsText || (array[num].NodeType == XPathNodeType.Element && array[num].HasCollapsedText))
421 {
422 goto end_IL_000a;
423 }
424 }
425 array = array[0].PageInfo.NextPage;
426 num = 1;
427 if (array != null)
428 {
429 continue;
430 }
431 }
432 return false;
433 continue;
434 end_IL_000a:
435 break;
436 }
437 pageCurrent = array;
438 idxCurrent = num;
439 return true;
440 }

Referenced by MS.Internal.Xml.Cache.XPathDocumentNavigator.MoveToFollowing().