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)
606Assert.Equal(results.GeneratedTrees.Single(), result.GeneratedSources.Single().SyntaxTree); 640Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].SyntaxTree); 641Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].SyntaxTree); 646Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].SyntaxTree); 651Assert.Equal(results.GeneratedTrees[3], result3.GeneratedSources[0].SyntaxTree); 1114Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].SyntaxTree); 1115Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].SyntaxTree); 1120Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].SyntaxTree); 1125Assert.Equal(results.GeneratedTrees[3], result3.GeneratedSources[0].SyntaxTree);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
390generatedSource.SyntaxTree.FilePath, 397generatedSource.SyntaxTree.Options,