11 instantiations of CodeFixContext
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
350var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
351var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
29var context = new CodeFixContext(document, analyzerDiagnostic, (a, d) => actions.Add(a), CancellationToken.None);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Verifiers\CodeFixVerifier.cs (1)
86var context = new CodeFixContext(document, analyzerDiagnostics[0], (a, d) => actions.Add(a), CancellationToken.None);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Verifiers\CodeFixVerifier.cs (1)
86var context = new CodeFixContext(document, analyzerDiagnostics[0], (a, d) => actions.Add(a), CancellationToken.None);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
CodeActions\OmniSharpCodeFixContextFactory.cs (1)
23=> new(document, span, diagnostics, registerCodeFix, cancellationToken);
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
409 references to CodeFixContext
ILLink.CodeFixProvider (6)
BaseAttributeCodeFixProvider.cs (1)
33 protected async Task BaseRegisterCodeFixesAsync (CodeFixContext context)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
93 public override async Task RegisterCodeFixesAsync (CodeFixContext context)
RequiresAssemblyFilesCodeFixProvider.cs (1)
33 public sealed override Task RegisterCodeFixesAsync (CodeFixContext context) => BaseRegisterCodeFixesAsync (context);
RequiresDynamicCodeCodeFixProvider.cs (1)
30 public sealed override Task RegisterCodeFixesAsync (CodeFixContext context) => BaseRegisterCodeFixesAsync (context);
RequiresUnreferencedCodeCodeFixProvider.cs (1)
30 public sealed override Task RegisterCodeFixesAsync (CodeFixContext context) => BaseRegisterCodeFixesAsync (context);
UnconditionalSuppressMessageCodeFixProvider.cs (1)
38 public sealed override Task RegisterCodeFixesAsync (CodeFixContext context) => BaseRegisterCodeFixesAsync (context);
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
56public override async Task RegisterCodeFixesAsync(CodeFixContext context)
MakeExeTypesInternalFixer.cs (1)
26public override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
350var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
351var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
29var context = new CodeFixContext(document, analyzerDiagnostic, (a, d) => actions.Add(a), CancellationToken.None);
Microsoft.AspNetCore.App.CodeFixes (9)
Authorization\AddAuthorizationBuilderFixer.cs (1)
27public override async Task RegisterCodeFixesAsync(CodeFixContext context)
Dependencies\AddPackageFixer.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
DetectMismatchedParameterOptionalityFixer.cs (1)
23public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
Http\HeaderDictionaryAddFixer.cs (1)
28public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Http\HeaderDictionaryIndexerFixer.cs (1)
23public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
Kestrel\ListenOnIPv6AnyFixer.cs (1)
24public override Task RegisterCodeFixesAsync(CodeFixContext context)
PublicPartialProgramClassFixer.cs (1)
23public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
RouteParameterUnusedParameterFixer.cs (1)
29public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
WebApplicationBuilderFixer.cs (1)
29public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
31public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Verifiers\CodeFixVerifier.cs (1)
86var context = new CodeFixContext(document, analyzerDiagnostics[0], (a, d) => actions.Add(a), CancellationToken.None);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
31public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Verifiers\CodeFixVerifier.cs (1)
86var context = new CodeFixContext(document, analyzerDiagnostics[0], (a, d) => actions.Add(a), CancellationToken.None);
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixProvider.cs (1)
22public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
25public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.CodeAnalysis.CodeStyle.Fixes (71)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
26public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
66public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
61public override async Task RegisterCodeFixesAsync(CodeFixContext context) 239CodeFixContext context,
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
68public override async Task RegisterCodeFixesAsync(CodeFixContext context) 265CodeFixContext context, TextLine startLine, TextLine firstMiddleLine, TextLine secondMiddleLine, TextLine endLine)
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
34public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
41public sealed override Task RegisterCodeFixesAsync(CodeFixContext context) 62private async Task<Document> FixOneAsync(CodeFixContext context, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
20public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
24public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
26public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
21public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
22public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
23public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
25public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
46public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
41public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
55public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
28protected override (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
25public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
27public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
132public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
29public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
43public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
27public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
28public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
33public override Task RegisterCodeFixesAsync(CodeFixContext context) 41protected ImmutableArray<CodeAction> GetUpgradeProjectCodeActions(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
23public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
21protected override (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
46public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
44public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
37public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (1)
25public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
35public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
62public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
47protected override (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (2)
16internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, Diagnostic diagnostic) 27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (2)
29protected abstract (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context); 50public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (3)
48protected void RegisterCodeFix(CodeFixContext context, string title, string equivalenceKey, Diagnostic? diagnostic = null) 51protected void RegisterCodeFix(CodeFixContext context, string title, string equivalenceKey, CodeActionPriority priority, Diagnostic? diagnostic = null) 54protected Func<CancellationToken, Task<Document>> GetDocumentUpdater(CodeFixContext context, Diagnostic? diagnostic = null)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (76)
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (1)
25public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
36public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
29public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) 47protected abstract void TryRegisterFix(CodeFixContext context, Document document, SyntaxNode container, SyntaxNode location);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (1)
26protected override void TryRegisterFix(CodeFixContext context, Document document, SyntaxNode container, SyntaxNode location)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
24protected override void TryRegisterFix(CodeFixContext context, Document document, SyntaxNode container, SyntaxNode location)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
35public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
37public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
37public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
63public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
36public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
41public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
28public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
38public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
38public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (1)
25public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
35public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
55public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
43public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
31public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
32public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (1)
36public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
38public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
81public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
94public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
34public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
39public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
38public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
35public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (1)
26public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
39public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
37public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
45public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
58public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
56public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
39public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
40public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
36public override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
71public override async Task RegisterCodeFixesAsync(CodeFixContext context)
Formatting\CodeCleanupTests.TestFixers.cs (1)
23public override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.CodeAnalysis.CSharp.Features (80)
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
31public override async Task RegisterCodeFixesAsync(CodeFixContext context)
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
35public override async Task RegisterCodeFixesAsync(CodeFixContext context)
Copilot\CSharpCopilotCodeFixProvider.cs (1)
54public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (1)
25public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
36public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
29public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context) 47protected abstract void TryRegisterFix(CodeFixContext context, Document document, SyntaxNode container, SyntaxNode location);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (1)
26protected override void TryRegisterFix(CodeFixContext context, Document document, SyntaxNode container, SyntaxNode location)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
24protected override void TryRegisterFix(CodeFixContext context, Document document, SyntaxNode container, SyntaxNode location)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
35public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
37public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
37public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
63public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
36public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
41public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
28public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
38public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (1)
38public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (1)
25public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
35public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
55public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
43public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
31public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
32public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (1)
36public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
38public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
81public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
94public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
34public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
39public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
38public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (1)
35public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (1)
26public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
39public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
37public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
45public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
58public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
56public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
39public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
40public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
33public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
36public override Task RegisterCodeFixesAsync(CodeFixContext context)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeFixes\CodeFixServiceTests.cs (6)
429public sealed override Task RegisterCodeFixesAsync(CodeFixContext context) 814public override Task RegisterCodeFixesAsync(CodeFixContext context) 849public override Task RegisterCodeFixesAsync(CodeFixContext context) 858private void RegisterCodeFix(CodeFixContext context, string titleSuffix) 942public sealed override Task RegisterCodeFixesAsync(CodeFixContext context) 1222public override Task RegisterCodeFixesAsync(CodeFixContext context)
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds.cs (1)
24public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds2.cs (1)
17public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
25public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethod.cs (1)
21public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
21public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
CodeFixes\CodeFixServiceTests.vb (2)
225Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task 250Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
112Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
CodeActions\OmniSharpCodeFixContextFactory.cs (1)
17public static CodeFixContext CreateCodeFixContext(
Microsoft.CodeAnalysis.Features (86)
AddImport\AbstractAddImportCodeFixProvider.cs (1)
51public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (3)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context) 45private static async Task<ImmutableArray<CodeAction>> GetAddReferencesCodeActionsAsync(CodeFixContext context, ISet<AssemblyIdentity> uniqueIdentities) 58private static async Task<ISet<AssemblyIdentity>> GetUniqueIdentitiesAsync(CodeFixContext context)
AddPackage\AbstractAddPackageCodeFixProvider.cs (1)
29CodeFixContext context, ISet<string> assemblyNames)
AddPackage\AbstractAddSpecificPackageCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
125var context = new CodeFixContext(document, diagnostic, registerCodeFix, cancellationToken);
CodeFixes\Suppression\WrapperCodeFixProvider.cs (2)
21public override async Task RegisterCodeFixesAsync(CodeFixContext context) 40private static void RegisterSuppressionFixes(CodeFixContext context, ImmutableArray<CodeFix> suppressionFixes)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionCodeFixProvider.cs (1)
35public override Task RegisterCodeFixesAsync(CodeFixContext context)
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
21public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
39public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
30public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (1)
75public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (5)
37public override async Task RegisterCodeFixesAsync(CodeFixContext context) 63private async Task CheckNodeAsync(CodeFixContext context, Document document, SyntaxNode node, CancellationToken cancellationToken) 89private async Task CheckTokenAsync(CodeFixContext context, Document document, SyntaxToken token, CancellationToken cancellationToken) 108CodeFixContext context, SyntaxToken nameToken, bool isGeneric, CancellationToken cancellationToken) 146CodeFixContext context, SyntaxToken nameToken, bool isGeneric,
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
26public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
66public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
61public override async Task RegisterCodeFixesAsync(CodeFixContext context) 239CodeFixContext context,
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
68public override async Task RegisterCodeFixesAsync(CodeFixContext context) 265CodeFixContext context, TextLine startLine, TextLine firstMiddleLine, TextLine secondMiddleLine, TextLine endLine)
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
27public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
34public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (2)
41public sealed override Task RegisterCodeFixesAsync(CodeFixContext context) 62private async Task<Document> FixOneAsync(CodeFixContext context, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
20public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
24public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
26public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
21public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
33public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
22public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
23public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
25public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
46public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
41public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
55public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
28protected override (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
25public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
27public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
34public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
132public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
29public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
43public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
27public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
29public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
28public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
33public override Task RegisterCodeFixesAsync(CodeFixContext context) 41protected ImmutableArray<CodeAction> GetUpgradeProjectCodeActions(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
23public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
31public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
32public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
21protected override (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
46public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
44public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
37public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
28public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (1)
25public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
35public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
62public override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
47protected override (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context)
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
29public override Task RegisterCodeFixesAsync(CodeFixContext context)
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
113var context = new CodeFixContext(
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
64public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\CodeFixes\CodeFixService.cs (1)
627var context = new CodeFixContext(document, span, diagnostics,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
29Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (1)
33Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
27Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (1)
28Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
Microsoft.CodeAnalysis.VisualBasic.Features (12)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
36Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
64Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
44Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
58Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (1)
40Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
43Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
36Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
RemoveSharedFromModuleMembers\VisualBasicRemoveSharedFromModuleMembersCodeFixProvider.vb (1)
39Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
29Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (1)
33Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
27Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (1)
28Public Overrides Function RegisterCodeFixesAsync(context As CodeFixContext) As Task
Microsoft.CodeAnalysis.Workspaces (18)
CodeFixes\CodeFix.cs (1)
37/// cref="CodeFixContext.RegisterCodeFix(CodeAction, IEnumerable{Diagnostic})"/>). This could change
CodeFixes\CodeFixContext.cs (6)
24/// Document corresponding to the <see cref="CodeFixContext.Span"/> to fix. 28/// <see cref="CodeFixContext.TextDocument"/> property instead. 68/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 100/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 133/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 158/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method.
CodeFixes\CodeFixProvider.cs (3)
26/// Computes one or more fixes for the specified <see cref="CodeFixContext"/>. 29/// A <see cref="CodeFixContext"/> containing context information about the diagnostics to fix. 32public abstract Task RegisterCodeFixesAsync(CodeFixContext context);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
156var context = new CodeFixContext(document, diagnostic.Location.SourceSpan, [diagnostic], action, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (2)
16internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, Diagnostic diagnostic) 27internal static void RegisterFixes(this CodeFixContext context, IEnumerable<CodeAction> actions, ImmutableArray<Diagnostic> diagnostics)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (2)
29protected abstract (string title, string equivalenceKey) GetTitleAndEquivalenceKey(CodeFixContext context); 50public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (3)
48protected void RegisterCodeFix(CodeFixContext context, string title, string equivalenceKey, Diagnostic? diagnostic = null) 51protected void RegisterCodeFix(CodeFixContext context, string title, string equivalenceKey, CodeActionPriority priority, Diagnostic? diagnostic = null) 54protected Func<CancellationToken, Task<Document>> GetDocumentUpdater(CodeFixContext context, Diagnostic? diagnostic = null)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
95public override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
486var context = new CodeFixContext(doc!, d, (action, _) => actions.Add(action), CancellationToken.None);
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddMarshalAsToElementFixer.cs (1)
22public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
117public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
30public override Task RegisterCodeFixesAsync(CodeFixContext context)
Analyzers\CustomMarshallerAttributeFixer.cs (1)
109public override async Task RegisterCodeFixesAsync(CodeFixContext context)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
117public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckNameofFixProvider.cs (1)
34public override async Task RegisterCodeFixesAsync(CodeFixContext context)
NameFixProvider.cs (1)
49public override async Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (1)
63public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
CodeFixes\RemoveUnnecessaryUsings\XamlRemoveUnnecessaryUsingsCodeFixProvider.cs (1)
43public sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
42public override async Task RegisterCodeFixesAsync(CodeFixContext context)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
30public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)
AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.vb (1)
37Public Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task