1 write to State
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
214
State
= state;
23 references to State
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (3)
54
var fixAllState = fixAllContext.
State
;
79
var fixAllState = fixAllContext.
State
;
139
var fixAllState = fixAllContext.
State
;
Microsoft.CodeAnalysis.Workspaces (20)
CodeFixes\FixAllOccurrences\FixAllContext.cs (16)
24
internal FixAllProvider FixAllProvider =>
State
.FixAllProvider;
29
public Solution Solution =>
State
.Solution;
34
public Project Project =>
State
.Project;
39
public Document? Document =>
State
.Document;
44
public CodeFixProvider CodeFixProvider =>
State
.Provider;
49
public FixAllScope Scope =>
State
.Scope;
56
public ImmutableHashSet<string> DiagnosticIds =>
State
.DiagnosticIds;
61
public string? CodeActionEquivalenceKey =>
State
.CodeActionEquivalenceKey;
74
IFixAllState IFixAllContext.State => this.
State
;
234
var getDiagnosticsTask =
State
.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken);
271
var getDiagnosticsTask =
State
.DiagnosticProvider is FixAllContext.SpanBasedDiagnosticProvider spanBasedDiagnosticProvider
273
:
State
.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken);
319
?
State
.DiagnosticProvider.GetAllDiagnosticsAsync(project, CancellationToken)
320
:
State
.DiagnosticProvider.GetProjectDiagnosticsAsync(project, CancellationToken);
336
var newState =
State
.With(documentAndProject, scope, codeActionEquivalenceKey);
339
return
State
== newState && CancellationToken == newCancellationToken
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (3)
52
if (fixAllContext.
State
.DiagnosticProvider is FixAllState.FixMultipleDiagnosticProvider fixMultipleDiagnosticProvider)
59
FixAllLogger.CreateCorrelationLogMessage(fixAllContext.
State
.CorrelationId),
72
FixAllLogger.CreateCorrelationLogMessage(fixAllContext.
State
.CorrelationId),
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
49
var diagnosticSpan = fixAllContext.
State
.DiagnosticSpan;