54 references to RegisterCodeFix
ILLink.CodeFixProvider (2)
BaseAttributeCodeFixProvider.cs (1)
46 context.RegisterCodeFix (CodeAction.Create (
DynamicallyAccessedMembersCodeFixProvider.cs (1)
108 context.RegisterCodeFix (CodeAction.Create (
Microsoft.AspNetCore.App.CodeFixes (9)
Authorization\AddAuthorizationBuilderFixer.cs (1)
46context.RegisterCodeFix(
Dependencies\AddPackageFixer.cs (1)
97context.RegisterCodeFix(codeAction, diagnostic);
DetectMismatchedParameterOptionalityFixer.cs (1)
27context.RegisterCodeFix(
Http\HeaderDictionaryAddFixer.cs (2)
49context.RegisterCodeFix( 59context.RegisterCodeFix(
Http\HeaderDictionaryIndexerFixer.cs (1)
31context.RegisterCodeFix(
PublicPartialProgramClassFixer.cs (1)
27context.RegisterCodeFix(
RouteParameterUnusedParameterFixer.cs (1)
49context.RegisterCodeFix(
WebApplicationBuilderFixer.cs (1)
67context.RegisterCodeFix(
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
42context.RegisterCodeFix(
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
42context.RegisterCodeFix(
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixProvider.cs (1)
27context.RegisterCodeFix(codeFix, diagnostic);
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
33context.RegisterCodeFix(new MyCodeAction(context.Document, context.Span), diagnostic);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
70context.RegisterCodeFix(
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
35context.RegisterCodeFix(
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
56context.RegisterCodeFix(codeAction, diagnostic);
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
40context.RegisterCodeFix(codeAction, diagnostic);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
20context.RegisterCodeFix(action, diagnostic);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
48context.RegisterCodeFix(documentChangeAction, diagnostic);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
40context.RegisterCodeFix(
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
74context.RegisterCodeFix(
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
62context.RegisterCodeFix( 76context.RegisterCodeFix(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
50context.RegisterCodeFix(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\CodeCleanupTests.TestFixers.cs (1)
27context.RegisterCodeFix(
Microsoft.CodeAnalysis.CSharp.Features (6)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
48context.RegisterCodeFix(documentChangeAction, diagnostic);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
40context.RegisterCodeFix(
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
74context.RegisterCodeFix(
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
62context.RegisterCodeFix( 76context.RegisterCodeFix(
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
50context.RegisterCodeFix(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (1)
944context.RegisterCodeFix(CodeAction.Create(Title,
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
28context.RegisterCodeFix(CodeAction.Create("Do Nothing", token => Task.FromResult(context.Document)), context.Diagnostics[0]);
Microsoft.CodeAnalysis.Features (5)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
51context.RegisterCodeFix(
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
70context.RegisterCodeFix(
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
35context.RegisterCodeFix(
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
56context.RegisterCodeFix(codeAction, diagnostic);
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
40context.RegisterCodeFix(codeAction, diagnostic);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\CodeFixContextExtensions.cs (1)
20context.RegisterCodeFix(action, diagnostic);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
115context.RegisterCodeFix(fix, diagnostic);
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\AddMarshalAsToElementFixer.cs (1)
42context.RegisterCodeFix(
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
137context.RegisterCodeFix( 146context.RegisterCodeFix(
Microsoft.Interop.LibraryImportGenerator (2)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
137context.RegisterCodeFix( 146context.RegisterCodeFix(
Microsoft.ML.InternalCodeAnalyzer (6)
ContractsCheckNameofFixProvider.cs (5)
64context.RegisterCodeFix(CodeAction.Create(Title, 101context.RegisterCodeFix(CodeAction.Create(Title, 120context.RegisterCodeFix(CodeAction.Create(Title, 148context.RegisterCodeFix(CodeAction.Create(Title, 158context.RegisterCodeFix(CodeAction.Create(Title,
NameFixProvider.cs (1)
98context.RegisterCodeFix(CodeAction.Create(PrivateTitle,
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
49context.RegisterCodeFix(