3 writes to _scope
Microsoft.Build.Framework (3)
Collections\RefArrayBuilder.cs (3)
32_scope = new BufferScope<T>(initialCapacity); 44_scope = new BufferScope<T>(scratchBuffer); 325_scope = newScope;
25 references to _scope
Microsoft.Build.Framework (25)
Collections\RefArrayBuilder.cs (25)
53_scope.Dispose(); 59public readonly int Capacity => _scope.Length; 78Debug.Assert(value <= _scope.Length, "Count must not exceed the span length."); 95return ref _scope[index]; 111=> _scope.AsSpan()[.._count]; 121Span<T> span = _scope; 138Debug.Assert(_count == _scope.Length, "AddWithResize should only be called when the span is full."); 144_scope[count] = item; 156Span<T> span = _scope; 173Span<T> span = _scope; 180span = _scope; 199Span<T> span = _scope; 220Debug.Assert(_count == _scope.Length, "InsertWithResize should only be called when the span is full."); 224_scope[index] = item; 241Span<T> span = _scope; 263Span<T> span = _scope; 270span = _scope; 284Span<T> span = _scope; 305_scope.EnsureCapacity(nextCapacity, copy: true); 324_scope.Dispose(); 340Span<T> span = _scope; 764return _scope[0]; 810return _scope[_count - 1]; 823T item = _scope[i]; 841T item = _scope[i];