141 references to CancellationToken
Microsoft.CodeAnalysis.CodeStyle.Fixes (29)
AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
36var cancellationToken = context.CancellationToken;
AbstractAddDocCommentNodesCodeFixProvider.cs (1)
32var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractAddExplicitCastCodeFixProvider.cs (2)
59var cancellationToken = context.CancellationToken; 62var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
35var cancellationToken = context.CancellationToken;
AbstractAddParameterCodeFixProvider.cs (1)
53var cancellationToken = context.CancellationToken;
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
32var cancellationToken = context.CancellationToken;
AbstractConflictMarkerCodeFixProvider.cs (1)
69var cancellationToken = context.CancellationToken;
AbstractConvertToAsyncCodeFixProvider.cs (2)
32var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 41node, context.Document, diagnostic, context.CancellationToken).ConfigureAwait(false);
AbstractIteratorCodeFixProvider.cs (2)
28var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 36var codeAction = await GetCodeFixAsync(root, node, context.Document, diagnostic, context.CancellationToken).ConfigureAwait(false);
AbstractMakeMemberStaticCodeFixProvider.cs (1)
24TryGetMemberDeclaration(context.Diagnostics[0].Location.FindNode(context.CancellationToken), out _))
AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
37var cancellationToken = context.CancellationToken;
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
31var cancellationToken = context.CancellationToken;
AbstractMakeTypeAbstractCodeFixProvider.cs (1)
24if (IsValidRefactoringContext(context.Diagnostics[0].Location?.FindNode(context.CancellationToken), out _))
AbstractOrderModifiersCodeFixProvider.cs (2)
43var syntaxTree = await context.Document.GetRequiredSyntaxTreeAsync(context.CancellationToken).ConfigureAwait(false); 44var syntaxNode = Location.Create(syntaxTree, context.Span).FindNode(context.CancellationToken);
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
32var cancellationToken = context.CancellationToken;
AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
36var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
147if (IsForEachIterationVariableDiagnostic(diagnostic, context.Document, context.CancellationToken)) 157var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
32var cancellationToken = context.CancellationToken;
NamingStyleCodeFixProvider.cs (3)
60var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 76var model = await document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 77var symbol = model.GetDeclaredSymbol(node, context.CancellationToken);
RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
33var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
UpdateLegacySuppressionsCodeFixProvider.cs (1)
34var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (23)
AbstractAssignOutParametersCodeFixProvider.cs (1)
31var cancellationToken = context.CancellationToken;
AddInheritdocCodeFixProvider.cs (1)
49var cancellationToken = context.CancellationToken;
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
44var switchStatement = (SwitchStatementSyntax)switchLocation.FindNode(getInnermostNodeForTie: true, context.CancellationToken);
CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
39var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
CSharpConvertToRecordCodeFixProvider.cs (1)
38var cancellationToken = context.CancellationToken;
CSharpDeclareAsNullableCodeFixProvider.cs (1)
49var cancellationToken = context.CancellationToken;
CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
47var cancellationToken = context.CancellationToken;
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
71var cancellationToken = context.CancellationToken;
CSharpFixReturnTypeCodeFixProvider.cs (1)
45var cancellationToken = context.CancellationToken;
CSharpMakeMemberRequiredCodeFixProvider.cs (1)
42var cancellationToken = context.CancellationToken;
CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
42var cancellationToken = context.CancellationToken;
CSharpReplaceDefaultLiteralCodeFixProvider.cs (3)
45var syntaxRoot = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 52var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 55context.Document, semanticModel, defaultLiteral, context.CancellationToken);
CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
89var cancellationToken = context.CancellationToken;
HideBaseCodeFixProvider.cs (1)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
MakeRefStructCodeFixProvider.cs (1)
44var cancellationToken = context.CancellationToken;
MisplacedUsingDirectivesCodeFixProvider.cs (1)
60var cancellationToken = context.CancellationToken;
PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
53context.CancellationToken);
RemoveInKeywordCodeFixProvider.cs (1)
40var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
RemoveNewModifierCodeFixProvider.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
UseExplicitTypeForConstCodeFixProvider.cs (1)
42var cancellationToken = context.CancellationToken;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
73var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (27)
AbstractAssignOutParametersCodeFixProvider.cs (1)
31var cancellationToken = context.CancellationToken;
AddInheritdocCodeFixProvider.cs (1)
49var cancellationToken = context.CancellationToken;
CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
50var cancellationToken = context.CancellationToken;
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
37var cancellationToken = context.CancellationToken;
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
39var cancellationToken = context.CancellationToken;
ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
44var switchStatement = (SwitchStatementSyntax)switchLocation.FindNode(getInnermostNodeForTie: true, context.CancellationToken);
CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
39var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
CSharpConvertToRecordCodeFixProvider.cs (1)
38var cancellationToken = context.CancellationToken;
CSharpDeclareAsNullableCodeFixProvider.cs (1)
49var cancellationToken = context.CancellationToken;
CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
47var cancellationToken = context.CancellationToken;
CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
71var cancellationToken = context.CancellationToken;
CSharpFixReturnTypeCodeFixProvider.cs (1)
45var cancellationToken = context.CancellationToken;
CSharpMakeMemberRequiredCodeFixProvider.cs (1)
42var cancellationToken = context.CancellationToken;
CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
42var cancellationToken = context.CancellationToken;
CSharpReplaceDefaultLiteralCodeFixProvider.cs (3)
45var syntaxRoot = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 52var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 55context.Document, semanticModel, defaultLiteral, context.CancellationToken);
CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
89var cancellationToken = context.CancellationToken;
HideBaseCodeFixProvider.cs (1)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementInterfaceCodeFixProvider.cs (1)
43var cancellationToken = context.CancellationToken;
MakeRefStructCodeFixProvider.cs (1)
44var cancellationToken = context.CancellationToken;
MisplacedUsingDirectivesCodeFixProvider.cs (1)
60var cancellationToken = context.CancellationToken;
PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
53context.CancellationToken);
RemoveInKeywordCodeFixProvider.cs (1)
40var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
RemoveNewModifierCodeFixProvider.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
UseExplicitTypeForConstCodeFixProvider.cs (1)
42var cancellationToken = context.CancellationToken;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
25var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
CodeFixes\CodeFixServiceTests.vb (2)
239Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False) 264Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Features (45)
AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
36var cancellationToken = context.CancellationToken;
AbstractAddDocCommentNodesCodeFixProvider.cs (1)
32var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractAddExplicitCastCodeFixProvider.cs (2)
59var cancellationToken = context.CancellationToken; 62var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
35var cancellationToken = context.CancellationToken;
AbstractAddParameterCodeFixProvider.cs (1)
53var cancellationToken = context.CancellationToken;
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
32var cancellationToken = context.CancellationToken;
AbstractConflictMarkerCodeFixProvider.cs (1)
69var cancellationToken = context.CancellationToken;
AbstractConvertToAsyncCodeFixProvider.cs (2)
32var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 41node, context.Document, diagnostic, context.CancellationToken).ConfigureAwait(false);
AbstractIteratorCodeFixProvider.cs (2)
28var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 36var codeAction = await GetCodeFixAsync(root, node, context.Document, diagnostic, context.CancellationToken).ConfigureAwait(false);
AbstractMakeMemberStaticCodeFixProvider.cs (1)
24TryGetMemberDeclaration(context.Diagnostics[0].Location.FindNode(context.CancellationToken), out _))
AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
37var cancellationToken = context.CancellationToken;
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
31var cancellationToken = context.CancellationToken;
AbstractMakeTypeAbstractCodeFixProvider.cs (1)
24if (IsValidRefactoringContext(context.Diagnostics[0].Location?.FindNode(context.CancellationToken), out _))
AbstractOrderModifiersCodeFixProvider.cs (2)
43var syntaxTree = await context.Document.GetRequiredSyntaxTreeAsync(context.CancellationToken).ConfigureAwait(false); 44var syntaxNode = Location.Create(syntaxTree, context.Span).FindNode(context.CancellationToken);
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
32var cancellationToken = context.CancellationToken;
AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
36var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
147if (IsForEachIterationVariableDiagnostic(diagnostic, context.Document, context.CancellationToken)) 157var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
32var cancellationToken = context.CancellationToken;
AddImport\AbstractAddImportCodeFixProvider.cs (1)
53var cancellationToken = context.CancellationToken;
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (3)
44var cancellationToken = context.CancellationToken; 61context.Document.Project, identity, context.CancellationToken).ConfigureAwait(false); 70var cancellationToken = context.CancellationToken;
AddPackage\AbstractAddPackageCodeFixProvider.cs (1)
45var cancellationToken = context.CancellationToken;
CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (2)
43var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 47var codeActions = await GetCodeActionsAsync(context.Document, name, context.Options, context.CancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\WrapperCodeFixProvider.cs (2)
35var suppressionFixes = await _suppressionFixProvider.GetFixesAsync(context.Document, context.Span, documentDiagnostics, context.Options, context.CancellationToken).ConfigureAwait(false); 42var suppressionFixes = await _suppressionFixProvider.GetFixesAsync(context.Document.Project, projectDiagnostics, context.Options, context.CancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
23var cancellationToken = context.CancellationToken;
GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
23var cancellationToken = context.CancellationToken;
ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28var cancellationToken = context.CancellationToken;
NamingStyleCodeFixProvider.cs (3)
60var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 76var model = await document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 77var symbol = model.GetDeclaredSymbol(node, context.CancellationToken);
RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
33var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
44var root = await document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (1)
79var cancellationToken = context.CancellationToken;
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
46var cancellationToken = context.CancellationToken; 156var cancellationToken = context.CancellationToken;
UpdateLegacySuppressionsCodeFixProvider.cs (1)
34var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.VisualBasic.Features (13)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
37Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
65Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (4)
45Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False) 56result = Await GenerateEventFromImplementsAsync(context.Document, qualifiedName, context.Options, context.CancellationToken).ConfigureAwait(False) 61result = Await GenerateEventFromHandlesAsync(context.Document, handlesClauseItem, context.Options, context.CancellationToken).ConfigureAwait(False) 66result = Await GenerateEventFromAddRemoveHandlerAsync(context.Document, handlerStatement, context.Options, context.CancellationToken).ConfigureAwait(False)
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
61Dim cancellationToken = context.CancellationToken
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (1)
43Dim cancellationToken = context.CancellationToken
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
46Dim cancellationToken = context.CancellationToken
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
37Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)
ImplementInterface\VisualBasicImplementInterfaceCodeFixProvider.vb (1)
41Dim cancellationToken = context.CancellationToken
RemoveSharedFromModuleMembers\VisualBasicRemoveSharedFromModuleMembersCodeFixProvider.vb (2)
41Dim tokenToRemove = diagnostic.Location.FindToken(context.CancellationToken) 46Dim node = diagnostic.Location.FindNode(context.CancellationToken)