5 instantiations of GeneratorState
Microsoft.CodeAnalysis (5)
SourceGeneration\GeneratorDriver.cs (2)
277? new GeneratorState(postInitSources, inputNodes, outputNodes) 284generatorState = new GeneratorState(reparsedInitSources, generatorState.InputNodes, generatorState.OutputNodes);
SourceGeneration\GeneratorState.cs (3)
21public static readonly GeneratorState Empty = new GeneratorState(ImmutableArray<GeneratedSyntaxTree>.Empty, 81return new GeneratorState(this.PostInitTrees, 95return new GeneratorState(this.PostInitTrees,
17 references to GeneratorState
Microsoft.CodeAnalysis (17)
SourceGeneration\GeneratorDriver.cs (11)
40_state = new GeneratorDriverState(parseOptions, optionsProvider, generators, incrementalGenerators, additionalTexts, ImmutableArray.Create(new GeneratorState[generators.Length]), DriverStateTable.Empty, SyntaxStore.Empty, driverOptions, runtime: TimeSpan.Zero); 74foreach (var generatorState in state.GeneratorStates) 90generatorStates: _state.GeneratorStates.AddRange(new GeneratorState[generators.Length])); 97var states = ArrayBuilder<GeneratorState>.GetInstance(generators.Length); 187static ImmutableArray<GeneratedSourceResult> getGeneratorSources(GeneratorState generatorState) 224var stateBuilder = ArrayBuilder<GeneratorState>.GetInstance(state.Generators.Length); 231var generatorState = state.GeneratorStates[i]; 278: SetGeneratorException(compilation, MessageProvider, GeneratorState.Empty, sourceGenerator, ex, diagnosticsBag, cancellationToken, isInit: true); 314var generatorState = stateBuilder[i]; 381private static GeneratorState SetGeneratorException(Compilation compilation, CommonMessageProvider provider, GeneratorState generatorState, ISourceGenerator generator, Exception e, DiagnosticBag? diagnosticBag, CancellationToken cancellationToken, TimeSpan? runTime = null, bool isInit = false)
SourceGeneration\GeneratorDriverState.cs (3)
19ImmutableArray<GeneratorState> generatorStates, 66internal readonly ImmutableArray<GeneratorState> GeneratorStates; 108ImmutableArray<GeneratorState>? generatorStates = null,
SourceGeneration\GeneratorState.cs (3)
21public static readonly GeneratorState Empty = new GeneratorState(ImmutableArray<GeneratedSyntaxTree>.Empty, 74public GeneratorState WithResults(ImmutableArray<GeneratedSyntaxTree> generatedTrees, 93public GeneratorState WithError(Exception exception, Diagnostic error, TimeSpan elapsedTime)