1 write to SyntaxTree
Microsoft.CodeAnalysis (1)
SourceGeneration\RunResults.cs (1)
172
this.
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"/>
69
ImmutableInterlocked.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)
602
Assert.Equal(results.GeneratedTrees.Single(), result.GeneratedSources.Single().
SyntaxTree
);
636
Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].
SyntaxTree
);
637
Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].
SyntaxTree
);
642
Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].
SyntaxTree
);
647
Assert.Equal(results.GeneratedTrees[3], result3.GeneratedSources[0].
SyntaxTree
);
1110
Assert.Equal(results.GeneratedTrees[0], result1.GeneratedSources[0].
SyntaxTree
);
1111
Assert.Equal(results.GeneratedTrees[1], result1.GeneratedSources[1].
SyntaxTree
);
1116
Assert.Equal(results.GeneratedTrees[2], result2.GeneratedSources[0].
SyntaxTree
);
1121
Assert.Equal(results.GeneratedTrees[3], result3.GeneratedSources[0].
SyntaxTree
);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (2)
331
generatedSource.
SyntaxTree
.FilePath,
338
generatedSource.
SyntaxTree
.Options,