4 writes to _count
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Node.cs (4)
92
_count
= ParentCount(left, right);
1480
_count
= ParentCount(left, right);
1504
_count
= ParentCount(left, _right!);
1528
_count
= ParentCount(_left!, right);
22 references to _count
System.Collections.Immutable (22)
System\Collections\Immutable\ImmutableList_1.Node.cs (22)
136
public int Count =>
_count
;
155
if (index < _left.
_count
)
160
if (index > _left.
_count
)
162
return _right[index - _left.
_count
- 1];
184
if (index < _left.
_count
)
189
if (index > _left.
_count
)
191
return ref _right.ItemRefUnchecked(index - _left.
_count
- 1);
312
if (index <= _left!.
_count
)
320
Node newRight = _right!.Insert(index - _left.
_count
- 1, key);
379
if (index <= _left!.
_count
)
386
Node newRight = _right!.InsertRange(index - _left.
_count
- 1, keys);
404
if (index == _left.
_count
)
435
else if (index < _left.
_count
)
442
ImmutableList<T>.Node newRight = _right.RemoveAt(index - _left.
_count
- 1);
504
if (index == _left!.
_count
)
509
else if (index < _left.
_count
)
516
ImmutableList<T>.Node newRight = _right!.ReplaceAt(index - _left.
_count
- 1, value);
529
if (
_count
<= 1)
550
if (index == 0 && count ==
_count
)
1102
return this.FindIndex(0,
_count
, match);
1548
private static int ParentCount(Node left, Node right) => 1 + left.
_count
+ right.
_count
;