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)
74return _builder.ToImmutable(); 79get => _builder.Count; 80set => _builder.Count = value; 85get => _builder[index]; 86set => _builder[index] = value; 95while (index > _builder.Count) 97_builder.Add(default!); 100if (index == _builder.Count) 102_builder.Add(value); 106_builder[index] = value; 112_builder.Add(item); 117_builder.Insert(index, item); 122if (_builder.Capacity < capacity) 124_builder.Capacity = capacity; 130_builder.Clear(); 135return _builder.Contains(item); 140return _builder.IndexOf(item); 145return _builder.IndexOf(item, 0, _builder.Count, equalityComparer); 150return _builder.IndexOf(item, startIndex, count); 164if (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); 208return _builder.ToArray(); 213_builder.CopyTo(array, start); 219return _builder[_builder.Count - 1]; 225return _builder[0]; 230return _builder.Count > 0; 258foreach (var i in _builder) 272if (_builder.Capacity == Count) 274result = _builder.MoveToImmutable(); 312if (_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; 521foreach (var item in _builder)