12 references to AddSyntaxTrees
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
395
var newCompilation = compilation.RemoveAllSyntaxTrees().
AddSyntaxTrees
(compilation.SyntaxTrees);
Microsoft.CodeAnalysis (2)
SourceGeneration\GeneratorDriver.cs (2)
64
outputCompilation = compilation.
AddSyntaxTrees
(trees);
279
compilation = compilation.
AddSyntaxTrees
(constantSourcesBuilder);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
264
.
AddSyntaxTrees
(sources.Select((s, i) => SyntaxFactory.ParseSyntaxTree(s, options: parseOptions, path: sourceCodePaths[i])))
Microsoft.CodeAnalysis.Workspaces (7)
Workspace\Solution\SolutionState.CompilationAndGeneratorDriverTranslationAction_Actions.cs (2)
134
return oldCompilation.
AddSyntaxTrees
(syntaxTrees);
162
return oldCompilation.RemoveAllSyntaxTrees().
AddSyntaxTrees
(syntaxTrees);
Workspace\Solution\SolutionState.CompilationTracker.cs (5)
288
compilationWithoutGeneratedDocuments.
AddSyntaxTrees
(generatorInfo.Documents.States.Values.Select(state => state.GetSyntaxTree(cancellationToken))));
325
compilationWithoutGeneratedDocuments.
AddSyntaxTrees
(generatorInfo.Documents.States.Values.Select(state => state.GetSyntaxTree(cancellationToken))));
558
compilation = compilation.
AddSyntaxTrees
(trees);
787
compilationWithGenerators = compilationWithoutGenerators.
AddSyntaxTrees
(
940
compilationWithGenerators = compilationWithoutGenerators.
AddSyntaxTrees
(
Microsoft.VisualStudio.LanguageServices.Implementation (1)
ProjectSystem\CPS\TempPECompiler.cs (1)
59
compilation = compilation.RemoveAllSyntaxTrees().
AddSyntaxTrees
(syntaxTrees);