1 instantiation of GeneratedSyntaxTree
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorDriver.cs (1)
376
trees.Add(new
GeneratedSyntaxTree
(source.HintName, source.Text, tree));
15 references to GeneratedSyntaxTree
Microsoft.CodeAnalysis (15)
SourceGeneration\GeneratorDriver.cs (5)
195
foreach (
var
tree in generatorState.PostInitTrees)
199
foreach (
var
tree in generatorState.GeneratedTrees)
245
var postInitSources = ImmutableArray<
GeneratedSyntaxTree
>.Empty;
369
private ImmutableArray<
GeneratedSyntaxTree
> ParseAdditionalSources(ISourceGenerator generator, ImmutableArray<GeneratedSourceText> generatedSources, CancellationToken cancellationToken)
371
var trees = ArrayBuilder<
GeneratedSyntaxTree
>.GetInstance(generatedSources.Length);
SourceGeneration\GeneratorState.cs (10)
21
public static readonly GeneratorState Empty = new GeneratorState(ImmutableArray<
GeneratedSyntaxTree
>.Empty,
24
ImmutableArray<
GeneratedSyntaxTree
>.Empty,
35
public GeneratorState(ImmutableArray<
GeneratedSyntaxTree
> postInitTrees, ImmutableArray<SyntaxInputNode> inputNodes, ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes)
39
ImmutableArray<
GeneratedSyntaxTree
>.Empty,
50
ImmutableArray<
GeneratedSyntaxTree
> postInitTrees,
53
ImmutableArray<
GeneratedSyntaxTree
> generatedTrees,
74
public GeneratorState WithResults(ImmutableArray<
GeneratedSyntaxTree
> generatedTrees,
98
ImmutableArray<
GeneratedSyntaxTree
>.Empty,
109
internal ImmutableArray<
GeneratedSyntaxTree
> PostInitTrees { get; }
115
internal ImmutableArray<
GeneratedSyntaxTree
> GeneratedTrees { get; }