4 writes to _count
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableList_1.Node.cs (4)
92
_count
= ParentCount(left, right);
1477
_count
= ParentCount(left, right);
1501
_count
= ParentCount(left, _right!);
1525
_count
= ParentCount(_left!, right);
20 references to _count
System.Collections.Immutable (20)
System\Collections\Immutable\ImmutableList_1.Node.cs (20)
156
public int Count =>
_count
;
175
if (index < _left.
_count
)
180
if (index > _left.
_count
)
182
return _right[index - _left.
_count
- 1];
204
if (index < _left.
_count
)
209
if (index > _left.
_count
)
211
return ref _right.ItemRefUnchecked(index - _left.
_count
- 1);
332
if (index <= _left!.
_count
)
340
Node newRight = _right!.Insert(index - _left.
_count
- 1, key);
399
if (index <= _left!.
_count
)
406
Node newRight = _right!.InsertRange(index - _left.
_count
- 1, keys);
424
if (index == _left.
_count
)
455
else if (index < _left.
_count
)
462
ImmutableList<T>.Node newRight = _right.RemoveAt(index - _left.
_count
- 1);
524
if (index == _left!.
_count
)
529
else if (index < _left.
_count
)
536
ImmutableList<T>.Node newRight = _right!.ReplaceAt(index - _left.
_count
- 1, value);
1105
return this.FindIndex(0,
_count
, match);
1545
private static int ParentCount(Node left, Node right) => 1 + left.
_count
+ right.
_count
;