2 writes to _capacity
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\Collections\BitVector.cs (2)
37_capacity = capacity; 101_capacity = newCapacity;
19 references to _capacity
Microsoft.CodeAnalysis.Workspaces (19)
src\Compilers\Core\Portable\Collections\BitVector.cs (19)
44return _capacity == other._capacity 77return Hash.Combine(_capacity, bitsHash); 87public int Capacity => _capacity; 92Debug.Assert(_capacity == 0 || WordsForCapacity(_capacity) <= _bits.Length); 97if (newCapacity > _capacity) 109if (_capacity > 0) 130if (bit >= _capacity) yield break; 146if (bit >= _capacity) yield break; 225return new BitVector(_bits0, newBits, _capacity); 319if (other._capacity > _capacity) 320EnsureCapacity(other._capacity); 348if (index >= _capacity) 360if (index >= _capacity) 403var value = new char[_capacity]; 404for (int i = 0; i < _capacity; i++) 406value[_capacity - i - 1] = this[i] ? '1' : '0';