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;
856
root
= dummy.root;
905
root
= null;
907
root
= ConstructRootFromSortedArray(merged, 0, c - 1, null);
1034
root
= null;
1036
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();
692
Node? current =
root
;
723
Node? current =
root
;
744
Node? current =
root
;
856
root = dummy.
root
;
1463
if (
root
== null)
1468
Node current =
root
;
1484
if (
root
== null)
1489
Node current =
root
;
1538
if (
root
!= null)
1871
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));