5 references to Add
Microsoft.CodeAnalysis (5)
SourceGeneration\GeneratorContexts.cs (2)
92public void AddSource(string hintName, SourceText sourceText) => _additionalSources.Add(hintName, sourceText); 284public void AddSource(string hintName, SourceText sourceText) => _additionalSources.Add(hintName, sourceText);
SourceGeneration\IncrementalContexts.cs (2)
131public void AddSource(string hintName, SourceText sourceText) => AdditionalSources.Add(hintName, sourceText); 168public void AddSource(string hintName, SourceText sourceText) => Sources.Add(hintName, sourceText);
SourceGeneration\Nodes\SourceOutputNode.cs (1)
113context.Sources.Add(text.HintName, text.Text);