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