2 instantiations of DriverStateTable
Microsoft.CodeAnalysis (2)
SourceGeneration\Nodes\DriverStateTable.cs (2)
20internal static DriverStateTable Empty { get; } = new DriverStateTable(StateTableStore.Empty); 74return new DriverStateTable(_stateTableBuilder.ToImmutable());
24 references to DriverStateTable
Microsoft.CodeAnalysis (24)
SourceGeneration\GeneratorDriver.cs (4)
40_state = new GeneratorDriverState(parseOptions, optionsProvider, generators, incrementalGenerators, additionalTexts, ImmutableArray.Create(new GeneratorState[generators.Length]), DriverStateTable.Empty, SyntaxStore.Empty, driverOptions, runtime: TimeSpan.Zero); 218return _state.With(stateTable: DriverStateTable.Empty, runTime: TimeSpan.Zero); 311var driverStateBuilder = new DriverStateTable.Builder(compilation, _state, syntaxStoreBuilder, cancellationToken); 354private IncrementalExecutionContext UpdateOutputs(ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, IncrementalGeneratorOutputKind outputKind, GeneratorRunStateTable.Builder generatorRunStateBuilder, CancellationToken cancellationToken, DriverStateTable.Builder? driverStateBuilder = null)
SourceGeneration\GeneratorDriverState.cs (3)
20DriverStateTable stateTable, 88internal readonly DriverStateTable StateTable; 110DriverStateTable? stateTable = null,
SourceGeneration\IncrementalContexts.cs (2)
251internal readonly DriverStateTable.Builder? TableBuilder; 257public IncrementalExecutionContext(DriverStateTable.Builder? tableBuilder, GeneratorRunStateTable.Builder generatorRunStateBuilder, AdditionalSourcesCollection sources)
SourceGeneration\Nodes\BatchNode.cs (1)
111public NodeStateTable<ImmutableArray<TInput>> UpdateStateTable(DriverStateTable.Builder builder, NodeStateTable<ImmutableArray<TInput>>? previousTable, CancellationToken cancellationToken)
SourceGeneration\Nodes\CombineNode.cs (2)
31public NodeStateTable<(TInput1, TInput2)> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<(TInput1, TInput2)>? previousTable, CancellationToken cancellationToken) 88private NodeStateTable<(TInput1, TInput2)> RecordStepsForCachedTable(DriverStateTable.Builder graphState, NodeStateTable<(TInput1, TInput2)> previousTable, NodeStateTable<TInput1> input1Table, NodeStateTable<TInput2> input2Table)
SourceGeneration\Nodes\DriverStateTable.cs (3)
20internal static DriverStateTable Empty { get; } = new DriverStateTable(StateTableStore.Empty); 30private readonly DriverStateTable _previousTable; 72public DriverStateTable ToImmutable()
SourceGeneration\Nodes\HostOutputNode.cs (1)
33public NodeStateTable<OutputType> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<OutputType>? previousTable, CancellationToken cancellationToken)
SourceGeneration\Nodes\IIncrementalGeneratorNode.cs (1)
16NodeStateTable<T> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<T>? previousTable, CancellationToken cancellationToken);
SourceGeneration\Nodes\InputNode.cs (4)
24private readonly Func<DriverStateTable.Builder, ImmutableArray<T>> _getInput; 30public InputNode(Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, IEqualityComparer<T>? inputComparer = null) 35private InputNode(Func<DriverStateTable.Builder, ImmutableArray<T>> getInput, Action<IIncrementalGeneratorOutputNode>? registerOutput, IEqualityComparer<T>? inputComparer = null, IEqualityComparer<T>? comparer = null, string? name = null) 44public NodeStateTable<T> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<T>? previousTable, CancellationToken cancellationToken)
SourceGeneration\Nodes\SourceOutputNode.cs (1)
40public NodeStateTable<TOutput> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<TOutput>? previousTable, CancellationToken cancellationToken)
SourceGeneration\Nodes\SyntaxInputNode.cs (1)
31public NodeStateTable<T> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<T>? previousTable, CancellationToken cancellationToken)
SourceGeneration\Nodes\TransformNode.cs (1)
46public NodeStateTable<TOutput> UpdateStateTable(DriverStateTable.Builder builder, NodeStateTable<TOutput>? previousTable, CancellationToken cancellationToken)