1 write to _sourcesAdded
Microsoft.CodeAnalysis (1)
SourceGeneration\AdditionalSourcesCollection.cs (1)
32_sourcesAdded = ArrayBuilder<GeneratedSourceText>.GetInstance();
14 references to _sourcesAdded
Microsoft.CodeAnalysis (14)
SourceGeneration\AdditionalSourcesCollection.cs (14)
86_sourcesAdded.Add(new GeneratedSourceText(hintName, source)); 92for (int i = 0; i < _sourcesAdded.Count; i++) 94if (s_hintNameComparer.Equals(_sourcesAdded[i].HintName, hintName)) 96_sourcesAdded.RemoveAt(i); 105for (int i = 0; i < _sourcesAdded.Count; i++) 107if (s_hintNameComparer.Equals(_sourcesAdded[i].HintName, hintName)) 119if (asc._sourcesAdded.Count == 0) 121asc._sourcesAdded.AddRange(this._sourcesAdded); 125foreach (var source in this._sourcesAdded) 131asc._sourcesAdded.Add(source); 136internal ImmutableArray<GeneratedSourceText> ToImmutableAndFree() => _sourcesAdded.ToImmutableAndFree(); 138internal ImmutableArray<GeneratedSourceText> ToImmutable() => _sourcesAdded.ToImmutable(); 140internal void Free() => _sourcesAdded.Free();