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