2 instantiations of DriverStateTable
Microsoft.CodeAnalysis (2)
SourceGeneration\Nodes\DriverStateTable.cs (2)
20internal static DriverStateTable Empty { get; } = new DriverStateTable(StateTableStore.Empty); 115return new DriverStateTable(_stateTableBuilder.ToImmutable());
28 references to DriverStateTable
Microsoft.CodeAnalysis (28)
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, compilationCache: CompilationCache.Empty); 251return _state.With(stateTable: DriverStateTable.Empty, runTime: TimeSpan.Zero); 353var driverStateBuilder = new DriverStateTable.Builder(_state, compilation, syntaxInputNodes.ToImmutableAndFree(), cancellationToken); 488private IncrementalExecutionContext UpdateOutputs(ImmutableArray<IIncrementalGeneratorOutputNode> outputNodes, IncrementalGeneratorOutputKind outputKind, GeneratorRunStateTable.Builder generatorRunStateBuilder, ImmutableHashSet<string> reservedHintNames, CancellationToken cancellationToken, DriverStateTable.Builder? driverStateBuilder = null)
SourceGeneration\GeneratorDriverState.cs (3)
21DriverStateTable stateTable, 93internal readonly DriverStateTable StateTable; 120DriverStateTable? stateTable = null,
SourceGeneration\IncrementalContexts.cs (2)
427internal readonly DriverStateTable.Builder? TableBuilder; 433public IncrementalExecutionContext(DriverStateTable.Builder? tableBuilder, GeneratorRunStateTable.Builder generatorRunStateBuilder, AdditionalSourcesCollection sources)
SourceGeneration\Nodes\AbstractSourceOutputNode.cs (2)
33protected abstract void InvokeUserAction(AdditionalSourcesCollection sources, DiagnosticBag diagnostics, DriverStateTable.Builder graphState, TInput item, CancellationToken cancellationToken); 35public NodeStateTable<TOutput> UpdateStateTable(DriverStateTable.Builder graphState, NodeStateTable<TOutput>? previousTable, CancellationToken cancellationToken)
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; 113public 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\PreCompilationSourceOutputNode.cs (1)
26protected override void InvokeUserAction(AdditionalSourcesCollection sources, DiagnosticBag diagnostics, DriverStateTable.Builder graphState, TInput item, CancellationToken cancellationToken)
SourceGeneration\Nodes\SharedInputNodes.cs (1)
31private static Compilation GetCompilationOrThrow(DriverStateTable.Builder b, string providerName)
SourceGeneration\Nodes\SourceOutputNode.cs (1)
30protected override void InvokeUserAction(AdditionalSourcesCollection sources, DiagnosticBag diagnostics, DriverStateTable.Builder graphState, TInput item, 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)