13 writes to root
System.Collections (13)
System\Collections\Generic\SortedSet.cs (10)
98
root
= sortedSet.root.DeepClone(this.count);
124
root
= ConstructRootFromSortedArray(elements, 0, count - 1, null);
308
root
= new Node(item, NodeColor.Black);
502
root
= null;
650
root
= newChild;
859
root
= dummy.root;
908
root
= null;
910
root
= ConstructRootFromSortedArray(merged, 0, c - 1, null);
1037
root
= null;
1039
root
= ConstructRootFromSortedArray(merged, 0, c - 1, null);
System\Collections\Generic\SortedSet.TreeSubSet.cs (3)
46
root
= _underlying.FindRange(_min, _max, _lBoundActive, _uBoundActive); // root is first element within range
107
root
= null;
318
root
= _underlying.FindRange(_min, _max, _lBoundActive, _uBoundActive);
35 references to root
System.Collections (35)
System\Collections\Generic\SortedSet.cs (23)
96
Debug.Assert(sortedSet.
root
!= null);
98
root = sortedSet.
root
.DeepClone(this.count);
184
if (
root
== null)
195
Node? current =
root
;
232
if (
root
== null)
238
processQueue.Enqueue(
root
);
305
if (
root
== null)
317
Node? current =
root
;
334
root
.ColorBlack();
374
root
.ColorBlack();
383
if (
root
== null)
400
Node? current =
root
;
496
root
?.ColorBlack();
695
Node? current =
root
;
726
Node? current =
root
;
747
Node? current =
root
;
859
root = dummy.
root
;
1466
if (
root
== null)
1471
Node current =
root
;
1487
if (
root
== null)
1492
Node current =
root
;
1541
if (
root
!= null)
1874
Node? node = _tree.
root
;
System\Collections\Generic\SortedSet.TreeSubSet.cs (12)
62
Debug.Assert(this.versionUpToDate() &&
root
== _underlying.FindRange(_min, _max));
72
Debug.Assert(versionUpToDate() &&
root
== _underlying.FindRange(_min, _max));
87
Debug.Assert(versionUpToDate() &&
root
== _underlying.FindRange(_min, _max));
129
Node? current =
root
;
160
Node? current =
root
;
189
if (
root
== null)
197
Node? current =
root
;
248
if (
root
== null)
254
processQueue.Enqueue(
root
);
285
Debug.Assert(this.versionUpToDate() &&
root
== _underlying.FindRange(_min, _max));
302
Debug.Assert(this.versionUpToDate() &&
root
== _underlying.FindRange(_min, _max));
359
Debug.Assert(versionUpToDate() &&
root
== _underlying.FindRange(_min, _max));