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)
116
return new
GeneratorDriverState
(
14 references to GeneratorDriverState
Microsoft.CodeAnalysis (14)
SourceGeneration\GeneratorDriver.cs (11)
29
internal readonly
GeneratorDriverState
_state;
31
internal GeneratorDriver(
GeneratorDriverState
state)
62
var
state = RunGeneratorsCore(compilation, diagnosticsBag: null, generatorFilter, cancellationToken);
69
var
state = RunGeneratorsCore(compilation, diagnosticsBag, generatorFilter: null, cancellationToken);
88
var
newState = _state.With(sourceGenerators: _state.Generators.AddRange(generators),
137
var
newState = _state.With(additionalTexts: _state.AdditionalTexts.AddRange(additionalTexts));
143
var
newState = _state.With(additionalTexts: _state.AdditionalTexts.RemoveRange(additionalTexts));
158
var
newState = _state.With(additionalTexts: _state.AdditionalTexts.Replace(oldText, newText));
213
internal
GeneratorDriverState
RunGeneratorsCore(Compilation compilation, DiagnosticBag? diagnosticsBag, Func<GeneratorFilterContext, bool>? generatorFilter = null, CancellationToken cancellationToken = default)
223
var
state = _state;
459
internal abstract GeneratorDriver FromState(
GeneratorDriverState
state);
SourceGeneration\GeneratorDriverState.cs (1)
105
internal
GeneratorDriverState
With(
SourceGeneration\Nodes\DriverStateTable.cs (2)
33
internal
GeneratorDriverState
DriverState { get; }
39
public Builder(Compilation compilation,
GeneratorDriverState
driverState, SyntaxStore.Builder syntaxStore, CancellationToken cancellationToken = default)