2 writes to _right
System.Collections.Immutable (2)
System\Collections\Immutable\SortedInt32KeyNode.cs (2)
88
_right
= right;
552
_right
= right;
24 references to _right
System.Collections.Immutable (24)
System\Collections\Immutable\SortedInt32KeyNode.cs (24)
115
public SortedInt32KeyNode<TValue>? Right { get { return
_right
; } }
198
node = node.
_right
!;
232
node = node.
_right
!;
252
_right
!.Freeze(freezeAction);
267
if (tree.
_right
!.IsEmpty)
272
SortedInt32KeyNode<TValue> right = tree.
_right
;
292
return left.Mutate(right: tree.Mutate(left: left.
_right
!));
305
if (tree.
_right
!.IsEmpty)
310
SortedInt32KeyNode<TValue> rotatedRightChild = tree.Mutate(right: RotateRight(tree.
_right
));
343
return tree.
_right
!._height - tree._left!._height;
382
return Balance(tree.
_right
!) < 0 ? DoubleLeft(tree) : RotateLeft(tree);
419
SortedInt32KeyNode<TValue> newRight =
_right
!.SetOrAdd(key, value, valueComparer, overwriteExistingValue, out replacedExistingValue, out mutated);
444
result = new SortedInt32KeyNode<TValue>(key, value, _left!,
_right
!);
471
Debug.Assert(
_right
!= null && _left != null);
481
if (
_right
.IsEmpty && _left.IsEmpty)
485
else if (
_right
.IsEmpty && !_left.IsEmpty)
489
else if (!
_right
.IsEmpty && _left.IsEmpty)
491
result =
_right
;
497
SortedInt32KeyNode<TValue> successor =
_right
;
503
SortedInt32KeyNode<TValue> newRight =
_right
.Remove(successor._key, out _);
517
SortedInt32KeyNode<TValue> newRight =
_right
.Remove(key, out mutated);
538
Debug.Assert(
_right
!= null && _left != null);
541
return new SortedInt32KeyNode<TValue>(_key, _value!, left ?? _left, right ??
_right
);
555
_height = checked((byte)(1 + Math.Max(_left._height,
_right
._height)));