13 writes to Right
System.Collections (13)
System\Collections\Generic\SortedSet.cs (13)
360parent.Right = node; 679successor.Right = match.Right; 953root.Right = new Node(arr[endIndex], NodeColor.Black); 963root.Right = new Node(arr[endIndex], NodeColor.Black); 973root.Right = size % 2 == 0 ? 1649next.target.Right = clonedNode; 1732Right = child.Left; 1746grandChild.Right = this; 1747child.Right = grandChild.Left; 1759child.Right = this; 1771Right = grandChild.Left; 1774grandChild.Right = child; 1810Right = newChild;
56 references to Right
System.Collections (56)
System\Collections\Generic\SortedSet.cs (49)
211Node? node = current.Right; 253if (current.Right != null) 255processQueue.Enqueue(current.Right); 352current = (order < 0) ? current.Left : current.Right; 425if (parent.Right == sibling) 486current = order < 0 ? current.Left : current.Right; 612bool parentIsOnRight = grandParent.Right == parent; 613bool currentIsOnRight = parent.Right == current; 664Debug.Assert(match.Right == null); 671Debug.Assert((successor.Right == null && successor.IsRed) || (successor.Right!.IsRed && successor.IsBlack)); 673successor.Right?.ColorBlack(); 678parentOfSuccessor.Left = successor.Right; 679successor.Right = match.Right; 701current = order < 0 ? current.Left : current.Right; 733current = order < 0 ? current.Left : current.Right; 749current = current.Right; 954root.Right.ColorRed(); 1490while (current.Right != null) 1492current = current.Right; 1617public bool Is2Node => IsBlack && IsNullOrBlack(Left) && IsNullOrBlack(Right); 1619public bool Is4Node => IsNonNullRed(Left) && IsNonNullRed(Right); 1646if (next.source.Right is Node right) 1662Debug.Assert(IsNonNullRed(sibling.Left) || IsNonNullRed(sibling.Right)); 1679Debug.Assert(node == Left ^ node == Right); 1681return node == Left ? Right! : Left!; 1689Debug.Assert(Right != null); 1693Right.ColorBlack(); 1710removeRed = Right!.Right!; 1715Debug.Assert(Right!.Left!.IsRed); 1718Debug.Assert(Left!.Right!.IsRed); 1731Node child = Right!; 1743Node grandChild = child.Right!; 1745Left = grandChild.Right; 1758Left = child.Right; 1768Node child = Right!; 1773child.Left = grandChild.Right; 1785Debug.Assert(Right!.Is2Node); 1790Right.ColorRed(); 1815private int GetCount() => 1 + (Left?.GetCount() ?? 0) + (Right?.GetCount() ?? 0); 1817private bool HasChild(Node child) => child == Left || child == Right; 1823return (Left == child1 && Right == child2) 1824|| (Left == child2 && Right == child1); 1875next = (_reverse ? node.Right : node.Left); 1876other = (_reverse ? node.Left : node.Right); 1910Node? node = (_reverse ? _current.Left : _current.Right); 1914next = (_reverse ? node.Right : node.Left); 1915other = (_reverse ? node.Left : node.Right);
System\Collections\Generic\SortedSet.TreeSubSet.cs (7)
138current = current.Right; 177current = current.Right; 207current = current.Right; 223Node? node = current.Right; 233node = node.Right; 268if (current.Right != null && (!_uBoundActive || Comparer.Compare(_max, current.Item) > 0)) 270processQueue.Enqueue(current.Right);