internal GeneratorDriverState(ParseOptions parseOptions, AnalyzerConfigOptionsProvider optionsProvider, ImmutableArray <ISourceGenerator> sourceGenerators, ImmutableArray <IIncrementalGenerator> incrementalGenerators, ImmutableArray <AdditionalText> additionalTexts, ImmutableArray <GeneratorState> generatorStates, DriverStateTable stateTable, SyntaxStore syntaxStore, IncrementalGeneratorOutputKind disabledOutputs, TimeSpan runtime, bool trackIncrementalGeneratorSteps) { Generators = sourceGenerators; IncrementalGenerators = incrementalGenerators; GeneratorStates = generatorStates; AdditionalTexts = additionalTexts; ParseOptions = parseOptions; OptionsProvider = optionsProvider; StateTable = stateTable; SyntaxStore = syntaxStore; DisabledOutputs = disabledOutputs; RunTime = runtime; TrackIncrementalSteps = trackIncrementalGeneratorSteps; Debug.Assert(Generators.Length == GeneratorStates.Length); Debug.Assert(IncrementalGenerators.Length == GeneratorStates.Length); }
internal Builder(Compilation compilation, ImmutableArray <SyntaxInputNode> syntaxInputNodes, bool enableTracking, SyntaxStore previousStore, CancellationToken cancellationToken) { _compilation = compilation; _syntaxInputNodes = syntaxInputNodes; _enableTracking = enableTracking; _previous = previousStore; _cancellationToken = cancellationToken; }