10 writes to _count
Microsoft.Build.Framework (10)
Collections\RefArrayBuilder.cs (10)
80_count = value; 126_count = count + 1; 145_count = count + 1; 161_count = count + 1; 184_count = count + source.Length; 208_count = count + 1; 225_count += 1; 250_count = count + source.Length; 274_count = count + source.Length; 355_count = count - 1;
22 references to _count
Microsoft.Build.Framework (22)
Collections\RefArrayBuilder.cs (22)
67public readonly bool IsEmpty => _count == 0; 74readonly get => _count; 93Debug.Assert(index < _count, "Index must be less than Count."); 111=> _scope.AsSpan()[.._count]; 120int count = _count; 138Debug.Assert(_count == _scope.Length, "AddWithResize should only be called when the span is full."); 140int count = _count; 155int count = _count; 172int count = _count; 196Debug.Assert(index <= _count, "Insert index must not exceed Count."); 198int count = _count; 220Debug.Assert(_count == _scope.Length, "InsertWithResize should only be called when the span is full."); 238Debug.Assert(index <= _count, "Insert index must not exceed Count."); 240int count = _count; 262int count = _count; 280Debug.Assert(startIndex <= _count, "Start index must not exceed Count."); 322span[startIndex.._count].CopyTo(destination.Slice(startIndex + size)); 337Debug.Assert(index < _count, "Remove index must be less than Count."); 339int count = _count; 810return _scope[_count - 1]; 821for (int i = _count - 1; i >= 0; i--) 839for (int i = _count - 1; i >= 0; i--)