2 writes to _builder
Microsoft.CodeAnalysis.CodeStyle (2)
TemporaryArray`1.cs (2)
140Interlocked.Exchange(ref _builder, null)?.Free(); 277_builder = builder;
25 references to _builder
Microsoft.CodeAnalysis.CodeStyle (25)
TemporaryArray`1.cs (25)
41/// This field is only used when <see cref="_builder"/> is <see langword="null"/>. In other words, this type 42/// stores elements inline <em>or</em> stores them in <see cref="_builder"/>, but does not use both approaches 66/// The number of inline elements held in the array. This value is only used when <see cref="_builder"/> is 76/// needs to store more than four elements. From that point, <see cref="_builder"/> is used instead of inline 91public readonly int Count => _builder?.Count ?? _count; 98if (_builder is not null) 99return _builder[index]; 116if (_builder is not null) 118_builder[index] = value; 145if (_builder is not null) 147_builder.Add(item); 159_builder.Add(item); 165if (_builder is not null) 167_builder.AddRange(items); 181_builder.AddRange(items); 200_builder.Add(item); 206if (_builder is not null) 209_builder.Clear(); 229if (_builder is not null) 231return _builder.ToImmutableAndClear(); 258[MemberNotNull(nameof(_builder))] 261Debug.Assert(_builder is null); 282if (_builder is not null) 284_builder.ReverseContents(); 355=> array._builder is not null;