1 write to _builder
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
56
_builder
= ImmutableArray.CreateBuilder<T>(size);
52 references to _builder
Microsoft.CodeAnalysis.Analyzers (52)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (52)
74
return
_builder
.ToImmutable();
79
get =>
_builder
.Count;
80
set =>
_builder
.Count = value;
85
get =>
_builder
[index];
86
set =>
_builder
[index] = value;
95
while (index >
_builder
.Count)
97
_builder
.Add(default!);
100
if (index ==
_builder
.Count)
102
_builder
.Add(value);
106
_builder
[index] = value;
112
_builder
.Add(item);
117
_builder
.Insert(index, item);
122
if (
_builder
.Capacity < capacity)
124
_builder
.Capacity = capacity;
130
_builder
.Clear();
135
return
_builder
.Contains(item);
140
return
_builder
.IndexOf(item);
145
return
_builder
.IndexOf(item, 0,
_builder
.Count, equalityComparer);
150
return
_builder
.IndexOf(item, startIndex, count);
164
if (match(
_builder
[i]))
175
_builder
.RemoveAt(index);
180
_builder
.RemoveAt(
_builder
.Count - 1);
185
_builder
.Reverse();
190
_builder
.Sort();
195
_builder
.Sort(comparer);
203
_builder
.Sort(startIndex,
_builder
.Count - startIndex, comparer);
208
return
_builder
.ToArray();
213
_builder
.CopyTo(array, start);
219
return
_builder
[
_builder
.Count - 1];
225
return
_builder
[0];
230
return
_builder
.Count > 0;
258
foreach (var i in
_builder
)
272
if (
_builder
.Capacity == Count)
274
result =
_builder
.MoveToImmutable();
312
if (
_builder
.Capacity < 128)
433
_builder
.AddRange(items.
_builder
);
438
_builder
.AddRange(items.
_builder
);
443
_builder
.AddRange(items);
448
_builder
.AddRange(items, length);
466
_builder
.AddRange(items);
471
_builder
.AddRange(items);
476
_builder
.AddRange(items, length);
482
_builder
.Count = limit;
487
_builder
.Clear();
488
_builder
.Count = count;
521
foreach (var item in
_builder
)