1 write to SyntaxTree
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
172this.SyntaxTree = tree;
15 references to SyntaxTree
Microsoft.CodeAnalysis (4)
SourceGeneration\RunResults.cs (4)
61/// This is equivalent to the union of all <see cref="GeneratedSourceResult.SyntaxTree"/>s in each <see cref="GeneratorRunResult.GeneratedSources"/> in each <see cref="Results"/> 69ImmutableInterlocked.InterlockedInitialize(ref _lazyGeneratedTrees, Results.Where(r => !r.GeneratedSources.IsDefaultOrEmpty).SelectMany(r => r.GeneratedSources.Select(g => g.SyntaxTree)).ToImmutableArray()); 166/// This contains the original <see cref="SourceText"/> added by the generator, along with the parsed representation of that text in <see cref="SyntaxTree"/>. 178/// The <see cref="SyntaxTree"/> that was produced from parsing the <see cref="GeneratedSourceResult.SourceText"/>.
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
SourceGeneration\GeneratorDriverTests.cs (9)
602Assert.Equal(results.GeneratedTrees.Single(), result.GeneratedSources.Single().SyntaxTree); 636Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].SyntaxTree); 637Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].SyntaxTree); 642Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].SyntaxTree); 647Assert.Equal(results.GeneratedTrees[3], result3.GeneratedSources[0].SyntaxTree); 1110Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].SyntaxTree); 1111Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].SyntaxTree); 1116Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].SyntaxTree); 1121Assert.Equal(results.GeneratedTrees[3], result3.GeneratedSources[0].SyntaxTree);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
331generatedSource.SyntaxTree.FilePath, 338generatedSource.SyntaxTree.Options,