3 writes to _builder
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (3)
98
_builder
= ArrayBuilder<T>.GetInstance(capacity)
153
Interlocked.Exchange(ref
_builder
, null)?.Free();
349
_builder
= builder;
31 references to _builder
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (31)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (31)
42
/// This field is only used when <see cref="
_builder
"/> is <see langword="null"/>. In other words, this type
43
/// stores elements inline <em>or</em> stores them in <see cref="
_builder
"/>, but does not use both approaches
67
/// The number of inline elements held in the array. This value is only used when <see cref="
_builder
"/> is
77
/// needs to store more than four elements. From that point, <see cref="
_builder
"/> is used instead of inline
104
public readonly int Count =>
_builder
?.Count ?? _count;
111
if (
_builder
is not null)
112
return
_builder
[index];
129
if (
_builder
is not null)
131
_builder
[index] = value;
158
if (
_builder
is not null)
160
_builder
.Add(item);
172
_builder
.Add(item);
178
if (
_builder
is not null)
180
_builder
.AddRange(items);
194
_builder
.AddRange(items);
213
_builder
.Add(item);
219
if (
_builder
is not null)
222
_builder
.Clear();
237
if (
_builder
!= null)
239
_builder
.Count--;
256
if (
_builder
!= null)
257
return
_builder
.IndexOf(value, equalityComparer);
301
if (
_builder
is not null)
303
return
_builder
.ToImmutableAndClear();
330
[MemberNotNull(nameof(
_builder
))]
333
Debug.Assert(
_builder
is null);
354
if (
_builder
is not null)
356
_builder
.ReverseContents();
382
if (
_builder
is not null)
384
_builder
.Sort(compare);
480
=> array.
_builder
is not null;