1 write to SyntaxTree
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
158this.SyntaxTree = tree;
15 references to SyntaxTree
Microsoft.CodeAnalysis (4)
SourceGeneration\RunResults.cs (4)
60/// This is equivalent to the union of all <see cref="GeneratedSourceResult.SyntaxTree"/>s in each <see cref="GeneratorRunResult.GeneratedSources"/> in each <see cref="Results"/> 68ImmutableInterlocked.InterlockedInitialize(ref _lazyGeneratedTrees, Results.SelectMany(r => r.GeneratedSources.Select(g => g.SyntaxTree)).ToImmutableArray()); 152/// This contains the original <see cref="SourceText"/> added by the generator, along with the parsed representation of that text in <see cref="SyntaxTree"/>. 164/// The <see cref="SyntaxTree"/> that was produced from parsing the <see cref="GeneratedSourceResult.SourceText"/>.
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
SourceGeneration\GeneratorDriverTests.cs (9)
594Assert.Equal(results.GeneratedTrees.Single(), result.GeneratedSources.Single().SyntaxTree); 628Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].SyntaxTree); 629Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].SyntaxTree); 634Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].SyntaxTree); 639Assert.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\SolutionState.CompilationTracker.cs (2)
911generatedSource.SyntaxTree.FilePath, 918generatedSource.SyntaxTree.Options,