4 writes to _count
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Node.cs (4)
92
_count
= ParentCount(left, right);
1457
_count
= ParentCount(left, right);
1481
_count
= ParentCount(left, _right!);
1505
_count
= ParentCount(_left!, right);
20 references to _count
System.Collections.Immutable (20)
System\Collections\Immutable\ImmutableList_1.Node.cs (20)
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);
1085
return this.FindIndex(0,
_count
, match);
1525
private static int ParentCount(Node left, Node right) => 1 + left.
_count
+ right.
_count
;