2 instantiations of GeneratorDriverState
Microsoft.CodeAnalysis (2)
SourceGeneration\GeneratorDriver.cs (1)
40_state = new GeneratorDriverState(parseOptions, optionsProvider, generators, incrementalGenerators, additionalTexts, ImmutableArray.Create(new GeneratorState[generators.Length]), DriverStateTable.Empty, SyntaxStore.Empty, driverOptions, runtime: TimeSpan.Zero);
SourceGeneration\GeneratorDriverState.cs (1)
116return new GeneratorDriverState(
14 references to GeneratorDriverState
Microsoft.CodeAnalysis (14)
SourceGeneration\GeneratorDriver.cs (11)
29internal readonly GeneratorDriverState _state; 31internal GeneratorDriver(GeneratorDriverState state) 62var state = RunGeneratorsCore(compilation, diagnosticsBag: null, generatorFilter, cancellationToken); 69var state = RunGeneratorsCore(compilation, diagnosticsBag, generatorFilter: null, cancellationToken); 88var newState = _state.With(sourceGenerators: _state.Generators.AddRange(generators), 137var newState = _state.With(additionalTexts: _state.AdditionalTexts.AddRange(additionalTexts)); 143var newState = _state.With(additionalTexts: _state.AdditionalTexts.RemoveRange(additionalTexts)); 158var newState = _state.With(additionalTexts: _state.AdditionalTexts.Replace(oldText, newText)); 213internal GeneratorDriverState RunGeneratorsCore(Compilation compilation, DiagnosticBag? diagnosticsBag, Func<GeneratorFilterContext, bool>? generatorFilter = null, CancellationToken cancellationToken = default) 223var state = _state; 459internal abstract GeneratorDriver FromState(GeneratorDriverState state);
SourceGeneration\GeneratorDriverState.cs (1)
105internal GeneratorDriverState With(
SourceGeneration\Nodes\DriverStateTable.cs (2)
33internal GeneratorDriverState DriverState { get; } 39public Builder(Compilation compilation, GeneratorDriverState driverState, SyntaxStore.Builder syntaxStore, CancellationToken cancellationToken = default)