1 write to State
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
218State = state;
26 references to State
Microsoft.CodeAnalysis.Features (4)
AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
53fixAllContext.State.CodeActionOptionsProvider,
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (3)
56var fixAllState = fixAllContext.State; 81var fixAllState = fixAllContext.State; 166var fixAllState = fixAllContext.State;
Microsoft.CodeAnalysis.Workspaces (22)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
158var context = new CodeFixContext(document, diagnostic.Location.SourceSpan, ImmutableArray.Create(diagnostic), action, fixAllContext.State.CodeActionOptionsProvider, isBlocking: false, cancellationToken);
CodeFixes\FixAllOccurrences\FixAllContext.cs (17)
26internal FixAllProvider FixAllProvider => State.FixAllProvider; 31public Solution Solution => State.Solution; 36public Project Project => State.Project; 41public Document? Document => State.Document; 46public CodeFixProvider CodeFixProvider => State.Provider; 51public FixAllScope Scope => State.Scope; 58public ImmutableHashSet<string> DiagnosticIds => State.DiagnosticIds; 63public string? CodeActionEquivalenceKey => State.CodeActionEquivalenceKey; 73IFixAllState IFixAllContext.State => this.State; 238var getDiagnosticsTask = State.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken); 275var getDiagnosticsTask = State.DiagnosticProvider is FixAllContext.SpanBasedDiagnosticProvider spanBasedDiagnosticProvider 277: State.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken); 323? State.DiagnosticProvider.GetAllDiagnosticsAsync(project, CancellationToken) 324: State.DiagnosticProvider.GetProjectDiagnosticsAsync(project, CancellationToken); 339return new FixAllContext(State, this.ProgressTracker, cancellationToken); 347var newState = State.With(documentAndProject, scope, codeActionEquivalenceKey); 348return State == newState ? this : new FixAllContext(newState, ProgressTracker, CancellationToken);
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (3)
51if (fixAllContext.State.DiagnosticProvider is FixAllState.FixMultipleDiagnosticProvider fixMultipleDiagnosticProvider) 58FixAllLogger.CreateCorrelationLogMessage(fixAllContext.State.CorrelationId), 71FixAllLogger.CreateCorrelationLogMessage(fixAllContext.State.CorrelationId),
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
49var diagnosticSpan = fixAllContext.State.DiagnosticSpan;