1 write to PostInitTrees
Microsoft.CodeAnalysis (1)
SourceGeneration\GeneratorState.cs (1)
62
this.
PostInitTrees
= postInitTrees;
10 references to PostInitTrees
Microsoft.CodeAnalysis (10)
SourceGeneration\GeneratorDriver.cs (7)
76
trees.AddRange(generatorState.
PostInitTrees
.Select(t => t.Tree));
194
ArrayBuilder<GeneratedSourceResult> sources = ArrayBuilder<GeneratedSourceResult>.GetInstance(generatorState.
PostInitTrees
.Length + generatorState.GeneratedTrees.Length);
195
foreach (var tree in generatorState.
PostInitTrees
)
280
else if (generatorState.
PostInitTrees
.Length > 0 && generatorState.RequiresPostInitReparse(state.ParseOptions))
283
var reparsedInitSources = ParseAdditionalSources(sourceGenerator, generatorState.
PostInitTrees
.SelectAsArray(t => new GeneratedSourceText(t.HintName, t.Text)), cancellationToken);
294
if (generatorState.
PostInitTrees
.Length > 0)
296
constantSourcesBuilder.AddRange(generatorState.
PostInitTrees
.Select(t => t.Tree));
SourceGeneration\GeneratorState.cs (3)
81
return new GeneratorState(this.
PostInitTrees
,
95
return new GeneratorState(this.
PostInitTrees
,
129
internal bool RequiresPostInitReparse(ParseOptions parseOptions) =>
PostInitTrees
.Any(static (t, parseOptions) => t.Tree.Options != parseOptions, parseOptions);