2 writes to _left
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (2)
88
_left
= left;
757
_left
= left;
42 references to _left
System.Collections.Immutable (42)
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (42)
103
get { return
_left
== null; }
119
get { return
_left
; }
188
while (!n.
_left
!.IsEmpty)
190
n = n.
_left
;
207
Debug.Assert(
_left
!= null && _right != null);
209
if (index <
_left
._count)
211
return
_left
[index];
214
if (index >
_left
._count)
216
return _right[index -
_left
._count - 1];
237
Debug.Assert(
_left
!= null && _right != null);
239
if (index <
_left
._count)
241
return ref
_left
.ItemRefUnchecked(index);
244
if (index >
_left
._count)
246
return ref _right.ItemRefUnchecked(index -
_left
._count - 1);
362
ImmutableSortedSet<T>.Node newLeft =
_left
!.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)
413
result =
_left
;
415
else if (!_right.IsEmpty &&
_left
.IsEmpty)
424
while (!successor.
_left
!.IsEmpty)
426
successor = successor.
_left
;
430
result = successor.Mutate(left:
_left
, right: newRight);
435
ImmutableSortedSet<T>.Node newLeft =
_left
.Remove(key, comparer, out mutated);
476
Debug.Assert(
_left
!= null && _right != null);
477
_left
.Freeze();
510
return
_left
!.Search(key, comparer);
531
Debug.Assert(
_left
!= null && _right != null);
535
return
_left
.Count;
546
result =
_left
.Count + 1 + result;
556
return
_left
.IndexOf(key, comparer);
592
return right.Mutate(left: tree.Mutate(right: right.
_left
!));
605
if (tree.
_left
!.IsEmpty)
610
ImmutableSortedSet<T>.Node left = tree.
_left
;
643
if (tree.
_left
!.IsEmpty)
648
Node rotatedLeftChild = tree.Mutate(left: RotateLeft(tree.
_left
));
662
return tree._right!._height - tree.
_left
!._height;
706
return Balance(tree.
_left
!) > 0 ? DoubleRight(tree) : RotateRight(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;