Implemented interface member:
property
CancellationToken
Microsoft.CodeAnalysis.CodeFixesAndRefactorings.IFixAllContext.CancellationToken
1 write to CancellationToken
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
220this.CancellationToken = cancellationToken;
45 references to CancellationToken
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
AbstractConflictMarkerCodeFixProvider.cs (1)
438await this.FixAllAsync(document, diagnostics, context.CodeActionEquivalenceKey, context.CancellationToken).ConfigureAwait(false));
AbstractFileHeaderCodeFixProvider.cs (1)
235return await this.GetTransformedDocumentAsync(document, context.GetOptionsProvider(), context.CancellationToken).ConfigureAwait(false);
AbstractMultipleBlankLinesCodeFixProvider.cs (1)
150=> FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConsecutiveStatementPlacementCodeFixProvider.cs (1)
65=> FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.GetOptionsProvider(), context.CancellationToken).ConfigureAwait(false));
SyntaxEditorBasedCodeFixProvider.cs (3)
36var model = await document.GetRequiredSemanticModelAsync(fixAllContext.CancellationToken).ConfigureAwait(false); 44.WhereAsArray(d => this.IncludeDiagnosticDuringFixAll(d, document, model, fixAllContext.CodeActionEquivalenceKey, fixAllContext.CancellationToken)) 50return await FixAllAsync(document, filteredDiagnostics, fixAllContext.GetOptionsProvider(), fixAllContext.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
ArrowExpressionClausePlacementCodeFixProvider.cs (1)
103=> FixAllProvider.Create(async (context, document, diagnostics) => await UpdateDocumentAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConditionalExpressionPlacementCodeFixProvider.cs (1)
105=> FixAllProvider.Create(async (context, document, diagnostics) => await UpdateDocumentAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConsecutiveBracePlacementCodeFixProvider.cs (1)
99=> FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConstructorInitializerPlacementCodeFixProvider.cs (1)
117=> FixAllProvider.Create(async (context, document, diagnostics) => await UpdateDocumentAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
106context.CancellationToken).ConfigureAwait(false));
EmbeddedStatementPlacementCodeFixProvider.cs (1)
138async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.GetOptionsProvider(), context.CancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.CSharp.Features (6)
ArrowExpressionClausePlacementCodeFixProvider.cs (1)
103=> FixAllProvider.Create(async (context, document, diagnostics) => await UpdateDocumentAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConditionalExpressionPlacementCodeFixProvider.cs (1)
105=> FixAllProvider.Create(async (context, document, diagnostics) => await UpdateDocumentAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConsecutiveBracePlacementCodeFixProvider.cs (1)
99=> FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
ConstructorInitializerPlacementCodeFixProvider.cs (1)
117=> FixAllProvider.Create(async (context, document, diagnostics) => await UpdateDocumentAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
106context.CancellationToken).ConfigureAwait(false));
EmbeddedStatementPlacementCodeFixProvider.cs (1)
138async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.GetOptionsProvider(), context.CancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Features (7)
AbstractConflictMarkerCodeFixProvider.cs (1)
438await this.FixAllAsync(document, diagnostics, context.CodeActionEquivalenceKey, context.CancellationToken).ConfigureAwait(false));
AbstractFileHeaderCodeFixProvider.cs (1)
235return await this.GetTransformedDocumentAsync(document, context.GetOptionsProvider(), context.CancellationToken).ConfigureAwait(false);
AbstractMultipleBlankLinesCodeFixProvider.cs (1)
150=> FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false));
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (3)
50var cancellationToken = fixAllContext.CancellationToken; 80var cancellationToken = fixAllContext.CancellationToken; 165var cancellationToken = fixAllContext.CancellationToken;
ConsecutiveStatementPlacementCodeFixProvider.cs (1)
65=> FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.GetOptionsProvider(), context.CancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Workspaces (19)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (3)
44var cancellationToken = originalFixAllContext.CancellationToken; 143var cancellationToken = fixAllContext.CancellationToken; 203var cancellationToken = fixAllContext.CancellationToken;
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (1)
109var cancellationToken = fixAllContext.CancellationToken;
CodeFixes\FixAllOccurrences\FixAllContext.cs (7)
238var getDiagnosticsTask = State.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken); 276? spanBasedDiagnosticProvider.GetDocumentSpanDiagnosticsAsync(document, filterSpan, this.CancellationToken) 277: State.DiagnosticProvider.GetDocumentDiagnosticsAsync(document, this.CancellationToken); 323? State.DiagnosticProvider.GetAllDiagnosticsAsync(project, CancellationToken) 324: State.DiagnosticProvider.GetProjectDiagnosticsAsync(project, CancellationToken); 334if (this.CancellationToken == cancellationToken) 348return State == newState ? this : new FixAllContext(newState, ProgressTracker, CancellationToken);
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (2)
59fixAllContext.CancellationToken)) 72fixAllContext.CancellationToken))
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (3)
24var cancellationToken = fixAllContext.CancellationToken; 54diagnosticSpan.Value, fixAllContext.Scope, fixAllContext.CancellationToken).ConfigureAwait(false); 94fixAllContext.Solution, allDiagnostics, fixAllContext.CancellationToken).ConfigureAwait(false);
SyntaxEditorBasedCodeFixProvider.cs (3)
36var model = await document.GetRequiredSemanticModelAsync(fixAllContext.CancellationToken).ConfigureAwait(false); 44.WhereAsArray(d => this.IncludeDiagnosticDuringFixAll(d, document, model, fixAllContext.CodeActionEquivalenceKey, fixAllContext.CancellationToken)) 50return await FixAllAsync(document, filteredDiagnostics, fixAllContext.GetOptionsProvider(), fixAllContext.CancellationToken).ConfigureAwait(false);