2 writes to _right
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (2)
89
_right
= right;
762
_right
= right;
32 references to _right
System.Collections.Immutable (32)
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (32)
127
get { return
_right
; }
165
while (!n.
_right
!.IsEmpty)
167
n = n.
_right
;
207
Debug.Assert(_left != null &&
_right
!= null);
216
return
_right
[index - _left._count - 1];
237
Debug.Assert(_left != null &&
_right
!= null);
246
return ref
_right
.ItemRefUnchecked(index - _left._count - 1);
354
ImmutableSortedSet<T>.Node newRight =
_right
!.Add(key, comparer, out mutated);
396
Debug.Assert(_left != null &&
_right
!= null);
407
if (
_right
.IsEmpty && _left.IsEmpty)
411
else if (
_right
.IsEmpty && !_left.IsEmpty)
415
else if (!
_right
.IsEmpty && _left.IsEmpty)
417
result =
_right
;
423
ImmutableSortedSet<T>.Node successor =
_right
;
429
ImmutableSortedSet<T>.Node newRight =
_right
.Remove(successor._key, comparer, out _);
443
ImmutableSortedSet<T>.Node newRight =
_right
.Remove(key, comparer, out mutated);
476
Debug.Assert(_left != null &&
_right
!= null);
478
_right
.Freeze();
506
return
_right
!.Search(key, comparer);
531
Debug.Assert(_left != null &&
_right
!= null);
539
int result =
_right
.IndexOf(key, comparer);
586
if (tree.
_right
!.IsEmpty)
591
ImmutableSortedSet<T>.Node right = tree.
_right
;
611
return left.Mutate(right: tree.Mutate(left: left.
_right
!));
624
if (tree.
_right
!.IsEmpty)
629
Node rotatedRightChild = tree.Mutate(right: RotateRight(tree.
_right
));
662
return tree.
_right
!._height - tree._left!._height;
701
return Balance(tree.
_right
!) < 0 ? DoubleLeft(tree) : RotateLeft(tree);
748
Debug.Assert(_left != null &&
_right
!= null);
751
return new Node(_key, left ?? _left, right ??
_right
);
765
_height = checked((byte)(1 + Math.Max(_left._height,
_right
._height)));
766
_count = 1 + _left._count +
_right
._count;