24 writes to IsRed
System (24)
compmod\system\collections\generic\sortedset.cs (24)
386
root.
IsRed
= false;
419
root.
IsRed
= false;
461
current.
IsRed
= true;
475
parent.
IsRed
= true;
476
sibling.
IsRed
= false; // parent's color
501
sibling.Left.
IsRed
= false;
507
sibling.Right.
IsRed
= false;
524
newGrandParent.
IsRed
= parent.IsRed;
525
parent.
IsRed
= false;
526
current.
IsRed
= true;
562
root.
IsRed
= false;
703
grandParent.
IsRed
= true;
704
newChildOfGreatGrandParent.
IsRed
= false;
733
parent.
IsRed
= false;
734
child1.
IsRed
= true;
735
child2.
IsRed
= true;
762
succesor.Right.
IsRed
= false;
774
succesor.
IsRed
= match.IsRed;
957
node.
IsRed
= true;
958
node.Left.
IsRed
= false;
959
node.Right.
IsRed
= false;
1087
root.Right.
IsRed
= true;
2139
IsRed
= true;
2145
this.
IsRed
= isRed;
20 references to IsRed
System (20)
compmod\system\collections\generic\sortedset.cs (20)
134
Node myCurrent = (theirCurrent != null ? new SortedSet<T>.Node(theirCurrent.Item, theirCurrent.
IsRed
) : null);
139
myCurrent.Left = (theirCurrent.Left != null ? new SortedSet<T>.Node(theirCurrent.Left.Item, theirCurrent.Left.
IsRed
) : null);
149
myRight = new SortedSet<T>.Node(theirRight.Item, theirRight.
IsRed
);
156
myRight.Left = (theirRight.Left != null ? new SortedSet<T>.Node(theirRight.Left.Item, theirRight.Left.
IsRed
) : null);
414
if (parent.
IsRed
) {
464
if (sibling.
IsRed
) {
468
Debug.Assert(!parent.
IsRed
, "parent must be a black node!");
488
Debug.Assert(sibling != null || sibling.
IsRed
== false, "sibling must not be null and it must be black!");
500
Debug.Assert(sibling.Left.
IsRed
, "Left child of sibling must be red!");
506
Debug.Assert(sibling.Right.
IsRed
, "Right child of sibling must be red!");
513
Debug.Assert(sibling.Left.
IsRed
, "Left child of sibling must be red!");
519
Debug.Assert(sibling.Right.
IsRed
, "Right child of sibling must be red!");
524
newGrandParent.IsRed = parent.
IsRed
;
719
return (node != null && !node.
IsRed
);
723
return (node == null || !node.
IsRed
);
727
return (node != null && node.
IsRed
);
760
Debug.Assert((succesor.Right == null && succesor.
IsRed
) || (succesor.Right.
IsRed
&& !succesor.
IsRed
), "Succesor must be in valid state");
774
succesor.IsRed = match.
IsRed
;