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)
92
public void AddSource(string hintName, SourceText sourceText) =>
_additionalSources
.Add(hintName, sourceText);
112
=> (
_additionalSources
.ToImmutableAndFree(), _diagnostics.ToReadOnlyAndFree());
116
_additionalSources
.Free();
122
_additionalSources
.CopyTo(ctx.Sources);