1 write to State
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
217
State
= state;
20 references to State
Microsoft.CodeAnalysis.Workspaces (20)
CodeFixes\FixAllOccurrences\FixAllContext.cs (16)
25
internal FixAllProvider FixAllProvider =>
State
.FixAllProvider;
30
public Solution Solution =>
State
.Solution;
35
public Project Project =>
State
.Project;
40
public Document? Document =>
State
.Document;
45
public CodeFixProvider CodeFixProvider =>
State
.Provider;
50
public FixAllScope Scope =>
State
.Scope;
57
public ImmutableHashSet<string> DiagnosticIds =>
State
.DiagnosticIds;
62
public string? CodeActionEquivalenceKey =>
State
.CodeActionEquivalenceKey;
75
IFixAllState IFixAllContext.State => this.
State
;
237
var getDiagnosticsTask =
State
.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken);
274
var getDiagnosticsTask =
State
.DiagnosticProvider is FixAllContext.SpanBasedDiagnosticProvider spanBasedDiagnosticProvider
276
:
State
.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken);
322
?
State
.DiagnosticProvider.GetAllDiagnosticsAsync(project, CancellationToken)
323
:
State
.DiagnosticProvider.GetProjectDiagnosticsAsync(project, CancellationToken);
339
var newState =
State
.With(documentAndProject, scope, codeActionEquivalenceKey);
342
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;