1 instantiation of GeneratedSyntaxTree
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorDriver.cs (1)
337
trees.Add(new
GeneratedSyntaxTree
(source.HintName, source.Text, tree));
15 references to GeneratedSyntaxTree
Microsoft.CodeAnalysis (15)
SourceGeneration\GeneratorDriver.cs (5)
175
foreach (
var
tree in generatorState.PostInitTrees)
179
foreach (
var
tree in generatorState.GeneratedTrees)
219
var postInitSources = ImmutableArray<
GeneratedSyntaxTree
>.Empty;
329
private ImmutableArray<
GeneratedSyntaxTree
> ParseAdditionalSources(ISourceGenerator generator, ImmutableArray<GeneratedSourceText> generatedSources, CancellationToken cancellationToken)
331
var trees = ArrayBuilder<
GeneratedSyntaxTree
>.GetInstance(generatedSources.Length);
SourceGeneration\GeneratorState.cs (10)
17
public static readonly GeneratorState Empty = new GeneratorState(ImmutableArray<
GeneratedSyntaxTree
>.Empty,
20
ImmutableArray<
GeneratedSyntaxTree
>.Empty,
31
public GeneratorState(ImmutableArray<
GeneratedSyntaxTree
> postInitTrees, ImmutableArray<SyntaxInputNode> inputNodes, ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes)
35
ImmutableArray<
GeneratedSyntaxTree
>.Empty,
46
ImmutableArray<
GeneratedSyntaxTree
> postInitTrees,
49
ImmutableArray<
GeneratedSyntaxTree
> generatedTrees,
70
public GeneratorState WithResults(ImmutableArray<
GeneratedSyntaxTree
> generatedTrees,
94
ImmutableArray<
GeneratedSyntaxTree
>.Empty,
105
internal ImmutableArray<
GeneratedSyntaxTree
> PostInitTrees { get; }
111
internal ImmutableArray<
GeneratedSyntaxTree
> GeneratedTrees { get; }