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();
59
public readonly int Capacity =>
_scope
.Length;
78
Debug.Assert(value <=
_scope
.Length, "Count must not exceed the span length.");
95
return ref
_scope
[index];
111
=>
_scope
.AsSpan()[.._count];
121
Span<T> span =
_scope
;
138
Debug.Assert(_count ==
_scope
.Length, "AddWithResize should only be called when the span is full.");
144
_scope
[count] = item;
156
Span<T> span =
_scope
;
173
Span<T> span =
_scope
;
180
span =
_scope
;
199
Span<T> span =
_scope
;
220
Debug.Assert(_count ==
_scope
.Length, "InsertWithResize should only be called when the span is full.");
224
_scope
[index] = item;
241
Span<T> span =
_scope
;
263
Span<T> span =
_scope
;
270
span =
_scope
;
284
Span<T> span =
_scope
;
305
_scope
.EnsureCapacity(nextCapacity, copy: true);
324
_scope
.Dispose();
340
Span<T> span =
_scope
;
764
return
_scope
[0];
810
return
_scope
[_count - 1];
823
T item =
_scope
[i];
841
T item =
_scope
[i];