1 write to _additionalSources
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorContexts.cs (1)
33_additionalSources = new AdditionalSourcesCollection(sourceExtension);
4 references to _additionalSources
Microsoft.CodeAnalysis (4)
SourceGeneration\GeneratorContexts.cs (4)
92public void AddSource(string hintName, SourceText sourceText) => _additionalSources.Add(hintName, sourceText); 112=> (_additionalSources.ToImmutableAndFree(), _diagnostics.ToReadOnlyAndFree()); 116_additionalSources.Free(); 122_additionalSources.CopyTo(ctx.Sources);