97 types derived from CodeFixProvider
ILLink.CodeFixProvider (2)
BaseAttributeCodeFixProvider.cs (1)
19 public abstract class BaseAttributeCodeFixProvider : Microsoft.CodeAnalysis.CodeFixes.CodeFixProvider
DynamicallyAccessedMembersCodeFixProvider.cs (1)
23 public sealed class DynamicallyAccessedMembersCodeFixProvider : Microsoft.CodeAnalysis.CodeFixes.CodeFixProvider
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
24public sealed partial class LegacyLoggingFixer : CodeFixProvider
MakeExeTypesInternalFixer.cs (1)
20public sealed class MakeExeTypesInternalFixer : CodeFixProvider
Microsoft.AspNetCore.App.CodeFixes (9)
Authorization\AddAuthorizationBuilderFixer.cs (1)
21public sealed class AddAuthorizationBuilderFixer : CodeFixProvider
Dependencies\AddPackageFixer.cs (1)
27public class AddPackageFixer : CodeFixProvider
DetectMismatchedParameterOptionalityFixer.cs (1)
17public class DetectMismatchedParameterOptionalityFixer : CodeFixProvider
Http\HeaderDictionaryAddFixer.cs (1)
22public sealed class HeaderDictionaryAddFixer : CodeFixProvider
Http\HeaderDictionaryIndexerFixer.cs (1)
17public class HeaderDictionaryIndexerFixer : CodeFixProvider
Kestrel\ListenOnIPv6AnyFixer.cs (1)
18public class ListenOnIPv6AnyFixer : CodeFixProvider
PublicPartialProgramClassFixer.cs (1)
17public class PublicPartialProgramClassFixer : CodeFixProvider
RouteParameterUnusedParameterFixer.cs (1)
20public class RouteParameterUnusedParameterFixer : CodeFixProvider
WebApplicationBuilderFixer.cs (1)
18public sealed class WebApplicationBuilderFixer : CodeFixProvider
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
18public class ComponentParametersShouldBePublicCodeFixProvider : CodeFixProvider
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
18public class ComponentParametersShouldBePublicCodeFixProvider : CodeFixProvider
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixProvider.cs (1)
14public class AddResponseTypeAttributeCodeFixProvider : CodeFixProvider
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
18public class ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProvider : CodeFixProvider
Microsoft.CodeAnalysis.CodeStyle.Fixes (18)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
28TObjectCreationExpressionSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
24internal abstract class AbstractAliasAmbiguousTypeCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
33internal abstract partial class AbstractResolveConflictMarkerCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
18internal abstract partial class AbstractConvertToAsyncCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
21<TXmlElementSyntax, TXmlNameAttributeSyntax, TXmlTextSyntax, TMemberDeclarationSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
18internal abstract class AbstractRemoveDocCommentNodeCodeFixProvider<TXmlElementSyntax, TXmlTextSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
24internal abstract class AbstractFileHeaderCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
14internal abstract class AbstractGenerateDefaultConstructorCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
19internal abstract class AbstractGenerateMemberCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
14internal abstract class AbstractImplementAbstractClassCodeFixProvider<TClassNode> : CodeFixProvider
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
21internal abstract class AbstractImplementInterfaceCodeFixProvider<TTypeSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
16internal abstract class AbstractIteratorCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
18internal abstract partial class AbstractMakeMethodAsynchronousCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
22internal abstract class AbstractMakeMethodSynchronousCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
21internal abstract partial class AbstractChangeNamespaceToMatchFolderCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
17internal abstract class AbstractRemoveUnnecessaryImportsCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
19internal abstract class AbstractUnsealClassCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
19internal abstract partial class AbstractUpgradeProjectCodeFixProvider : CodeFixProvider
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
23internal class GenerateDeconstructMethodCodeFixProvider : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
26internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider : CodeFixProvider
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
61private class QualifyWithThisFixer : CodeFixProvider
Formatting\CodeCleanupTests.TestFixers.cs (1)
19private abstract class TestThirdPartyCodeFix : CodeFixProvider
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
23internal class GenerateDeconstructMethodCodeFixProvider : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
26internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider : CodeFixProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
CodeFixes\CodeFixServiceTests.cs (5)
412internal class MockFixer : CodeFixProvider 802private abstract class AbstractNuGetOrVsixCodeFixProvider : CodeFixProvider 836private sealed class CodeFixProviderWithDuplicateEquivalenceKeyActions : CodeFixProvider 933internal abstract class AbstractAdditionalFileCodeFixProvider : CodeFixProvider 1217private sealed class FixerForDeprioritizedAnalyzer : CodeFixProvider
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds.cs (1)
14public class ExceptionInFixableDiagnosticIds : CodeFixProvider
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds2.cs (1)
13public class ExceptionInFixableDiagnosticIds2 : CodeFixProvider
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
15public class ExceptionInGetFixAllProvider : CodeFixProvider
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethod.cs (1)
14public class ExceptionInRegisterMethod : CodeFixProvider
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
14public class ExceptionInRegisterMethodAsync : CodeFixProvider
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
CodeFixes\CodeFixServiceTests.vb (2)
212Inherits CodeFixProvider 237Inherits CodeFixProvider
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
104Inherits CodeFixProvider
Microsoft.CodeAnalysis.Features (23)
AddImport\AbstractAddImportCodeFixProvider.cs (1)
15internal abstract partial class AbstractAddImportCodeFixProvider : CodeFixProvider
AddPackage\AbstractAddPackageCodeFixProvider.cs (1)
22internal abstract partial class AbstractAddPackageCodeFixProvider : CodeFixProvider
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
12internal abstract class AbstractFullyQualifyCodeFixProvider : CodeFixProvider
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
20internal abstract class AbstractSpellCheckCodeFixProvider<TSimpleName> : CodeFixProvider
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
28TObjectCreationExpressionSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
24internal abstract class AbstractAliasAmbiguousTypeCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
33internal abstract partial class AbstractResolveConflictMarkerCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
18internal abstract partial class AbstractConvertToAsyncCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
21<TXmlElementSyntax, TXmlNameAttributeSyntax, TXmlTextSyntax, TMemberDeclarationSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
18internal abstract class AbstractRemoveDocCommentNodeCodeFixProvider<TXmlElementSyntax, TXmlTextSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
24internal abstract class AbstractFileHeaderCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
14internal abstract class AbstractGenerateDefaultConstructorCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
19internal abstract class AbstractGenerateMemberCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
14internal abstract class AbstractImplementAbstractClassCodeFixProvider<TClassNode> : CodeFixProvider
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
21internal abstract class AbstractImplementInterfaceCodeFixProvider<TTypeSyntax> : CodeFixProvider
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
16internal abstract class AbstractIteratorCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
18internal abstract partial class AbstractMakeMethodAsynchronousCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
22internal abstract class AbstractMakeMethodSynchronousCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
21internal abstract partial class AbstractChangeNamespaceToMatchFolderCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
17internal abstract class AbstractRemoveUnnecessaryImportsCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
19internal abstract class AbstractUnsealClassCodeFixProvider : CodeFixProvider
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (1)
19internal abstract partial class AbstractUpgradeProjectCodeFixProvider : CodeFixProvider
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
28: CodeFixProvider
Microsoft.CodeAnalysis.VisualBasic.Features (7)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
14Inherits CodeFixProvider
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
20Inherits CodeFixProvider
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
20Inherits CodeFixProvider
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
22Inherits CodeFixProvider
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (1)
19Inherits CodeFixProvider
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
20Inherits CodeFixProvider
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.vb (1)
16Inherits CodeFixProvider
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
79private class ReplaceZeroFix : CodeFixProvider
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddMarshalAsToElementFixer.cs (1)
16public sealed class AddMarshalAsToElementFixer : CodeFixProvider
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
21public abstract class ConvertToSourceGeneratedInteropFixer : CodeFixProvider
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
18public class AddDisableRuntimeMarshallingAttributeFixer : CodeFixProvider
Analyzers\CustomMarshallerAttributeFixer.cs (1)
21public class CustomMarshallerAttributeFixer : CodeFixProvider
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
21public abstract class ConvertToSourceGeneratedInteropFixer : CodeFixProvider
Microsoft.ML.InternalCodeAnalyzer (2)
ContractsCheckNameofFixProvider.cs (1)
21public sealed class ContractsCheckNameofFixProvider : CodeFixProvider
NameFixProvider.cs (1)
30public sealed class NameFixProvider : CodeFixProvider
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (1)
55public class MockFixer : CodeFixProvider
Microsoft.VisualStudio.LanguageServices.Xaml (1)
CodeFixes\RemoveUnnecessaryUsings\XamlRemoveUnnecessaryUsingsCodeFixProvider.cs (1)
24internal class RemoveUnnecessaryUsingsCodeFixProvider : CodeFixProvider
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
28public sealed class UpgradeToGeneratedRegexCodeFixer : CodeFixProvider
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
19internal sealed class AddDesignerSerializationVisibilityCodeFixProvider : CodeFixProvider
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)
AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.vb (1)
22Inherits CodeFixProvider
461 references to CodeFixProvider
BuildActionTelemetryTable (1)
Program.cs (1)
490static bool isCodeActionProviderType(Type t) => typeof(CodeFixProvider).IsAssignableFrom(t)
Microsoft.Analyzers.Extra.Tests (4)
Resources\RoslynTestUtils.cs (4)
288CodeFixProvider fixer, 406CodeFixProvider fixer, 515CodeFixProvider fixer) 548private readonly CodeFixProvider _fixer;
Microsoft.Analyzers.Local.Tests (4)
Resources\RoslynTestUtils.cs (4)
289CodeFixProvider fixer, 407CodeFixProvider fixer, 516CodeFixProvider fixer) 549private readonly CodeFixProvider _fixer;
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
23CodeFixProvider codeFixProvider,
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpCodeFixVerifier.cs (1)
15where TCodeFix : CodeFixProvider, new()
Microsoft.AspNetCore.Components.Analyzers.Tests (4)
ComponentParametersShouldBePublicCodeFixProviderTest.cs (1)
115protected override CodeFixProvider GetCSharpCodeFixProvider()
Verifiers\CodeFixVerifier.cs (3)
25protected virtual CodeFixProvider GetCSharpCodeFixProvider() 34protected virtual CodeFixProvider GetBasicCodeFixProvider() 76private void VerifyFix(string language, DiagnosticAnalyzer analyzer, CodeFixProvider codeFixProvider, string oldSource, string newSource, int? codeFixIndex, bool allowNewCompilerDiagnostics)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (4)
ComponentParametersShouldBePublicCodeFixProviderTest.cs (1)
115protected override CodeFixProvider GetCSharpCodeFixProvider()
Verifiers\CodeFixVerifier.cs (3)
25protected virtual CodeFixProvider GetCSharpCodeFixProvider() 34protected virtual CodeFixProvider GetBasicCodeFixProvider() 76private void VerifyFix(string language, DiagnosticAnalyzer analyzer, CodeFixProvider codeFixProvider, string oldSource, string newSource, int? codeFixIndex, bool allowNewCompilerDiagnostics)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
35internal sealed class NamingStyleCodeFixProvider() : CodeFixProvider
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
24internal sealed class ConsecutiveStatementPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
24internal sealed class MultipleBlankLinesCodeFixProvider() : CodeFixProvider
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
18/// Helper type for <see cref="CodeFixProvider"/>s that need to provide 'fix all' support in a document, by operate by
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
16internal abstract partial class SyntaxEditorBasedCodeFixProvider(bool supportsFixAll = true) : CodeFixProvider
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (4)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeFixVerifier`2.cs (1)
16where TCodeFix : CodeFixProvider, new()
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeFixVerifier`2+Test.cs (1)
29where TCodeFix : CodeFixProvider, new()
src\Features\DiagnosticsTestUtilities\CodeActions\VisualBasicCodeFixVerifier`2.cs (1)
15where TCodeFix : CodeFixProvider, new()
src\Features\DiagnosticsTestUtilities\CodeActions\VisualBasicCodeFixVerifier`2+Test.cs (1)
28where TCodeFix : CodeFixProvider, new()
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (19)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
26internal sealed class CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
19internal sealed class CSharpConvertToRecordCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (1)
24/// This <see cref="CodeFixProvider"/> gives users a way to generate constructors for an existing
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
19internal sealed partial class HideBaseCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
21internal sealed class MakeRefStructCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
37internal sealed partial class MisplacedUsingDirectivesCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
26internal sealed class ArrowExpressionClausePlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
26internal sealed class ConditionalExpressionPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
26internal sealed class ConsecutiveBracePlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
25internal sealed class ConstructorInitializerPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
28internal sealed class EmbeddedStatementPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
26internal sealed partial class CSharpRemoveConfusingSuppressionCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
24internal sealed class RemoveInKeywordCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
22internal sealed class RemoveNewModifierCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
25internal sealed class CSharpReplaceDefaultLiteralCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
18internal sealed class CSharpUpdateProjectToAllowUnsafeCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
22internal sealed class UseExplicitTypeForConstCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
37internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
27internal sealed partial class CSharpUseSystemThreadingLockCodeFixProvider() : CodeFixProvider
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (67)
src\Analyzers\CSharp\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersFixAllTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddAnonymousTypeMemberName\AddAnonymousTypeMemberNameTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddBraces\AddBracesTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (1)
22internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (1)
30internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddRequiredParentheses\AddRequiredExpressionParenthesesTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddRequiredParentheses\AddRequiredPatternParenthesesTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (1)
29internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProviderTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\DocumentationComments\AddDocCommentNodesCodeFixProviderTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\DocumentationComments\RemoveDocCommentNodeCodeFixProviderTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (1)
25internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateEnumMember\GenerateEnumMemberTests.cs (1)
22internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateConversionTests.cs (1)
23internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateDeconstructMethodTests.cs (1)
22internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (1)
22internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\HideBase\HideBaseTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests_ThroughMember.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
24internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\Iterator\ChangeToIEnumerableTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeFieldReadonly\MakeFieldReadonlyTests.cs (1)
31internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeLocalFunctionStatic\MakeLocalFunctionStaticTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeRefStruct\MakeRefStructTests.cs (1)
45internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeTypeAbstract\MakeTypeAbstractTests.cs (1)
25internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\Nullable\CSharpDeclareAsNullableCodeFixTests.cs (1)
21internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\OrderModifiers\OrderModifiersCompilerErrorTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\OrderModifiers\OrderModifiersTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\PopulateSwitch\PopulateSwitchExpressionTests.cs (1)
24internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\PopulateSwitch\PopulateSwitchStatementTests.cs (1)
20internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveInKeyword\RemoveInKeywordCodeFixProviderTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveNewModifier\RemoveNewModifierCodeFixProviderTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests_FixAllTests.cs (1)
23internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests_FixAllTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
30internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryPatternParenthesesTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnusedLocalFunction\RemoveUnusedLocalFunctionTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (1)
32internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValuesTestsBase.cs (1)
24internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\SimplifyBooleanExpression\SimplifyConditionalTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\SimplifyInterpolation\SimplifyInterpolationTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UpdateProjectToAllowUnsafe\UpdateProjectToAllowUnsafeTests.cs (1)
27internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForReturnTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseExplicitTypeForConst\UseExplicitTypeForConstTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseExpressionBodyForLambda\UseExpressionBodyForLambdasAnalyzerTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseInferredMemberName\UseInferredMemberNameTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseInterpolatedVerbatimString\UseInterpolatedVerbatimStringCodeFixTests.cs (1)
25internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForCastAndEqualityOperatorTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForReferenceEqualsTests.cs (1)
30internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
30internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseSystemHashCode\UseSystemHashCodeTests.cs (1)
23internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseThrowExpression\UseThrowExpressionTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ValidateFormatString\ValidateFormatStringTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider?) CreateDiagnosticProviderAndFixer(Workspace workspace)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (10)
CodeActions\AddUsing\AbstractAddUsingTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
CodeActions\AddUsing\AddUsingNuGetTests.cs (1)
40internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(
CodeActions\AddUsing\AddUsingTestsWithAddImportDiagnosticProvider.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
CodeActions\GenerateType\GenerateTypeTests.cs (1)
33internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
CodeActions\GenerateType\GenerateTypeWithUnboundAnalyzerTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
49internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
Formatting\CodeCleanupTests.cs (3)
773where TCodefix : CodeFixProvider, new() 780where TCodefix : CodeFixProvider, new() 787where TCodefix : CodeFixProvider, new()
Microsoft.CodeAnalysis.CSharp.Features (20)
Copilot\CSharpCopilotCodeFixProvider.cs (1)
30internal sealed partial class CSharpCopilotCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
26internal sealed class CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
19internal sealed class CSharpConvertToRecordCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\GenerateConstructorCodeFixProvider.cs (1)
24/// This <see cref="CodeFixProvider"/> gives users a way to generate constructors for an existing
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (1)
19internal sealed partial class HideBaseCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (1)
21internal sealed class MakeRefStructCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
37internal sealed partial class MisplacedUsingDirectivesCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (1)
26internal sealed class ArrowExpressionClausePlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
26internal sealed class ConditionalExpressionPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
26internal sealed class ConsecutiveBracePlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
25internal sealed class ConstructorInitializerPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
28internal sealed class EmbeddedStatementPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
26internal sealed partial class CSharpRemoveConfusingSuppressionCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (1)
24internal sealed class RemoveInKeywordCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (1)
22internal sealed class RemoveNewModifierCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
25internal sealed class CSharpReplaceDefaultLiteralCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UpdateProjectToAllowUnsafe\CSharpUpdateProjectToAllowUnsafeCodeFixProvider.cs (1)
18internal sealed class CSharpUpdateProjectToAllowUnsafeCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (1)
22internal sealed class UseExplicitTypeForConstCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
37internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider() : CodeFixProvider
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
27internal sealed partial class CSharpUseSystemThreadingLockCodeFixProvider() : CodeFixProvider
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (82)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
43internal sealed override CodeFixProvider CodeFixProvider
EmbeddedLanguages\ValidateJsonStringTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider?) CreateDiagnosticProviderAndFixer(Workspace workspace)
EmbeddedLanguages\ValidateRegexStringTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider?) CreateDiagnosticProviderAndFixer(Workspace workspace)
FullyQualify\FullyQualifyTests.cs (1)
29internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
FullyQualify\FullyQualifyUnboundIdentifierTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
GenerateVariable\GenerateVariableTests.cs (1)
38internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProviderTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
PreferFrameworkType\PreferFrameworkTypeTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
RemoveUnnecessaryCast\RemoveUnnecessaryCastTests_AsTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
RemoveUnusedVariable\RemoveUnusedVariableTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
SimplifyThisOrMe\SimplifyThisOrMeTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
31internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
SpellCheck\SpellCheckTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddAccessibilityModifiers\AddAccessibilityModifiersFixAllTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddAnonymousTypeMemberName\AddAnonymousTypeMemberNameTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddBraces\AddBracesTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (1)
22internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddParameter\AddParameterTests.cs (1)
30internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddRequiredParentheses\AddRequiredExpressionParenthesesTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AddRequiredParentheses\AddRequiredPatternParenthesesTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.cs (1)
29internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProviderTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\DocumentationComments\AddDocCommentNodesCodeFixProviderTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\DocumentationComments\RemoveDocCommentNodeCodeFixProviderTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (1)
25internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateEnumMember\GenerateEnumMemberTests.cs (1)
22internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateConversionTests.cs (1)
23internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateDeconstructMethodTests.cs (1)
22internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\GenerateMethod\GenerateMethodTests.cs (1)
22internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\HideBase\HideBaseTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests_ThroughMember.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\InlineDeclaration\CSharpInlineDeclarationTests.cs (1)
24internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\Iterator\ChangeToIEnumerableTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeFieldReadonly\MakeFieldReadonlyTests.cs (1)
31internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeLocalFunctionStatic\MakeLocalFunctionStaticTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeRefStruct\MakeRefStructTests.cs (1)
45internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MakeTypeAbstract\MakeTypeAbstractTests.cs (1)
25internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\NamingStyles\NamingStylesTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\Nullable\CSharpDeclareAsNullableCodeFixTests.cs (1)
21internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\OrderModifiers\OrderModifiersCompilerErrorTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\OrderModifiers\OrderModifiersTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\PopulateSwitch\PopulateSwitchExpressionTests.cs (1)
24internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\PopulateSwitch\PopulateSwitchStatementTests.cs (1)
20internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveInKeyword\RemoveInKeywordCodeFixProviderTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveNewModifier\RemoveNewModifierCodeFixProviderTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests_FixAllTests.cs (1)
23internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests_FixAllTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (1)
30internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryPatternParenthesesTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnusedLocalFunction\RemoveUnusedLocalFunctionTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.cs (1)
32internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValuesTestsBase.cs (1)
24internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
26internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\SimplifyBooleanExpression\SimplifyConditionalTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\SimplifyInterpolation\SimplifyInterpolationTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UpdateProjectToAllowUnsafe\UpdateProjectToAllowUnsafeTests.cs (1)
27internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
28internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (1)
27internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseConditionalExpression\UseConditionalExpressionForReturnTests.cs (1)
25internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseExplicitTypeForConst\UseExplicitTypeForConstTests.cs (1)
24internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseExpressionBodyForLambda\UseExpressionBodyForLambdasAnalyzerTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
28internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseInferredMemberName\UseInferredMemberNameTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseInterpolatedVerbatimString\UseInterpolatedVerbatimStringCodeFixTests.cs (1)
25internal override (DiagnosticAnalyzer?, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForCastAndEqualityOperatorTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseIsNullCheck\UseIsNullCheckForReferenceEqualsTests.cs (1)
30internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseLocalFunction\UseLocalFunctionTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpAsAndNullCheckTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzerTests.cs (1)
30internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseSystemHashCode\UseSystemHashCodeTests.cs (1)
23internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\UseThrowExpression\UseThrowExpressionTests.cs (1)
29internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
src\Analyzers\CSharp\Tests\ValidateFormatString\ValidateFormatStringTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider?) CreateDiagnosticProviderAndFixer(Workspace workspace)
UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzerTests.cs (1)
37internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzerTests.cs (1)
26internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace)
Microsoft.CodeAnalysis.EditorFeatures (1)
Editor\EditorLayerExtensionManager.cs (1)
52if (provider is CodeFixProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (28)
CodeActions\CodeChangeProviderMetadataTests.cs (5)
24[InlineData(typeof(CodeFixProvider))] 48[InlineData(typeof(CodeFixProvider), LanguageNames.CSharp)] 49[InlineData(typeof(CodeFixProvider), LanguageNames.VisualBasic)] 86[InlineData(typeof(CodeFixProvider), typeof(PredefinedCodeFixProviderNames))] 113[InlineData(typeof(CodeFixProvider), typeof(PredefinedCodeFixProviderNames))]
CodeFixes\CodeFixServiceTests.cs (20)
201var codeFixes = ImmutableArray.Create<CodeFixProvider>(codeFix); 278private static Task<ImmutableArray<CodeFixCollection>> GetAddedFixesWithExceptionValidationAsync(CodeFixProvider codefix) 281private static async Task<ImmutableArray<CodeFixCollection>> GetAddedFixesAsync(CodeFixProvider codefix, DiagnosticAnalyzer diagnosticAnalyzer, bool exception = false, bool throwExceptionInFixerCreation = false) 309private static async Task GetFirstDiagnosticWithFixWithExceptionValidationAsync(CodeFixProvider codefix) 328CodeFixProvider codefix, 336ImmutableArray<CodeFixProvider> codefixers, 343new Lazy<CodeFixProvider, CodeChangeProviderMetadata>( 409private static IEnumerable<Lazy<CodeFixProvider, CodeChangeProviderMetadata>> CreateFixers() 410=> [new Lazy<CodeFixProvider, CodeChangeProviderMetadata>(() => new MockFixer(), new CodeChangeProviderMetadata("Test", languages: LanguageNames.CSharp))]; 448public readonly ImmutableArray<CodeFixProvider> Fixers; 452private static readonly ImmutableArray<CodeFixProvider> s_defaultFixers = ImmutableArray.Create<CodeFixProvider>(new MockFixer()); 455public MockAnalyzerReference(ImmutableArray<CodeFixProvider> fixers, ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<ISourceGenerator> generators) 462public MockAnalyzerReference(ImmutableArray<CodeFixProvider> fixers, ImmutableArray<DiagnosticAnalyzer> analyzers) 467public MockAnalyzerReference(CodeFixProvider? fixer, ImmutableArray<DiagnosticAnalyzer> analyzers) 468: this(fixer != null ? ImmutableArray.Create(fixer) : ImmutableArray<CodeFixProvider>.Empty, 478public MockAnalyzerReference(CodeFixProvider? fixer) 516public ImmutableArray<CodeFixProvider> GetFixers() 765? SpecializedCollections.SingletonEnumerable(new Lazy<CodeFixProvider, CodeChangeProviderMetadata>(() => vsixFixer, new CodeChangeProviderMetadata(name: nameof(VsixCodeFixProvider), languages: LanguageNames.CSharp))) 877var fixers = ImmutableArray.Create<CodeFixProvider>(fixer1, fixer2, fixer3, fixer4);
CodeFixes\ExtensionOrderingTests.cs (3)
33var providers = ExportProvider.GetExports<CodeFixProvider, CodeChangeProviderMetadata>(); 120var providers = ExportProvider.GetExports<CodeFixProvider, CodeChangeProviderMetadata>(); 147var nextCodeFixProvider = actualOrder[i];
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Suggestions\FixAll\FixMultipleOccurrencesService.cs (2)
36CodeFixProvider fixProvider, 54CodeFixProvider fixProvider,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (17)
CodeFixes\CodeFixServiceTests.vb (2)
63{New Lazy(Of CodeFixProvider, Mef.CodeChangeProviderMetadata)( 135{New Lazy(Of CodeFixProvider, Mef.CodeChangeProviderMetadata)(
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
36Friend MustOverride Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\AddImport\AddImportCrossLanguageTests.vb (2)
23Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider) 24Dim fixer As CodeFixProvider
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
21Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\AddMissingReference\AddMissingReferenceTests.vb (5)
29Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider) 30Dim fixer As CodeFixProvider = 32DirectCast(New CSharpAddMissingReferenceCodeFixProvider(), CodeFixProvider), 33DirectCast(New VisualBasicAddMissingReferenceCodeFixProvider(), CodeFixProvider)), CodeFixProvider)
Diagnostics\GenerateEvent\GenerateEventCrossLanguageTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\GenerateFromUsage\GenerateConstructorCrossLanguageTests.vb (1)
12Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\GenerateFromUsage\GenerateMethodCrossLanguageTests.vb (1)
19Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\GenerateFromUsage\GenerateVariableCrossLanguageTests.vb (1)
21Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\ImplementInterface\ImplementInterfaceCrossLanguageTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\UseAutoProperty\UseAutoPropertyTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace, language As String) As (DiagnosticAnalyzer, CodeFixProvider)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
CodeActions\OmniSharpCodeFixContextFactory.cs (1)
42CodeFixProvider codeFixProvider,
Microsoft.CodeAnalysis.Features (13)
CodeFixes\CodeFixCollection.cs (1)
14/// (such as <see cref="CodeFixProvider"/> or <see cref="IConfigurationFixProvider"/>).
CodeFixes\FixAllOccurrences\AbstractFixAllCodeFixCodeAction.cs (1)
15/// Fix all code action for a code action registered by a <see cref="CodeFixProvider"/>.
CodeFixes\FixAllOccurrences\IFixMultipleOccurrencesService.cs (2)
24CodeFixProvider fixProvider, 39CodeFixProvider fixProvider,
CodeFixes\ICodeFixProviderFactory.cs (1)
16ImmutableArray<CodeFixProvider> GetFixers();
CodeFixes\Suppression\WrapperCodeFixProvider.cs (1)
14internal sealed class WrapperCodeFixProvider(IConfigurationFixProvider suppressionFixProvider, IEnumerable<string> diagnosticIds) : CodeFixProvider
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
17/// a <see cref="CodeFixes.CodeFixProvider"/> or a <see cref="CodeRefactorings.CodeRefactoringProvider"/>.
CodeFixesAndRefactorings\CodeActionRequestPriorityProvider.cs (2)
37/// fix provider with <see cref="CodeFixProvider.RequestPriority"/> matching <see 82public static bool MatchesPriority(this ICodeActionRequestPriorityProvider provider, CodeFixProvider codeFixProvider)
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
35internal sealed class NamingStyleCodeFixProvider() : CodeFixProvider
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (1)
24internal sealed class ConsecutiveStatementPlacementCodeFixProvider() : CodeFixProvider
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
24internal sealed class MultipleBlankLinesCodeFixProvider() : CodeFixProvider
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
97CodeFixProvider codeFixProvider,
Microsoft.CodeAnalysis.LanguageServer.Protocol (59)
Features\CodeFixes\CodeFixService.cs (56)
43private readonly ImmutableArray<Lazy<CodeFixProvider, CodeChangeProviderMetadata>> _fixers; 44private readonly ImmutableDictionary<string, ImmutableArray<Lazy<CodeFixProvider, CodeChangeProviderMetadata>>> _fixersPerLanguageMap; 46private readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>> _projectFixersMap = new(); 52private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>? _lazyWorkspaceFixersMap; 53private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<CodeFixProvider, int>>>? _lazyFixerPriorityMap; 55private ImmutableDictionary<CodeFixProvider, ImmutableArray<DiagnosticId>> _fixerToFixableIdsMap = ImmutableDictionary<CodeFixProvider, ImmutableArray<DiagnosticId>>.Empty; 57private ImmutableDictionary<CodeFixProvider, CodeChangeProviderMetadata?> _fixerToMetadataMap = ImmutableDictionary<CodeFixProvider, CodeChangeProviderMetadata?>.Empty; 64[ImportMany] IEnumerable<Lazy<CodeFixProvider, CodeChangeProviderMetadata>> fixers, 356private bool TryGetWorkspaceFixersMap(TextDocument document, [NotNullWhen(true)] out ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>? fixerMap) 366fixerMap = ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.Empty; 370using var _ = PooledDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.GetInstance(out var builder); 382private bool TryGetWorkspaceFixersPriorityMap(TextDocument document, [NotNullWhen(true)] out Lazy<ImmutableDictionary<CodeFixProvider, int>>? fixersPriorityMap) 394Lazy<CodeFixProvider, CodeChangeProviderMetadata> lazyFixer, 397[NotNullWhen(returnValue: true)] out CodeFixProvider? fixer) 456using var _1 = PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>>.GetInstance(out var fixerToRangesAndDiagnostics); 457using var _2 = PooledHashSet<CodeFixProvider>.GetInstance(out var currentFixers); 507var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>(); 582ImmutableArray<CodeFixProvider> fixers, 585PooledHashSet<CodeFixProvider> currentFixers, 586PooledDictionary<CodeFixProvider, List<(TextSpan range, List<DiagnosticData> diagnostics)>> fixerToRangesAndDiagnostics) 588foreach (var fixer in fixers) 596private CodeChangeProviderMetadata? TryGetMetadata(CodeFixProvider fixer) 618TextDocument document, TextSpan span, CodeFixProvider fixer, CodeChangeProviderMetadata? fixerMetadata, 621Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap, 658CodeFixProvider fixer, 660Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap) 779var codeFixProvider = (fixer as CodeFixProvider) ?? new WrapperCodeFixProvider((IConfigurationFixProvider)fixer, diagnostics.Select(d => d.Id)); 801public CodeFixProvider? GetSuppressionFixer(string language, IEnumerable<string> diagnosticIds) 819private bool IsInteractiveCodeFixProvider(CodeFixProvider provider) 826private ImmutableArray<DiagnosticId> GetFixableDiagnosticIds(CodeFixProvider fixer, IExtensionManager? extensionManager) 853private static ImmutableArray<string> GetAndTestFixableDiagnosticIds(CodeFixProvider codeFixProvider) 861codeFixProvider.GetType().Name + "." + nameof(CodeFixProvider.FixableDiagnosticIds))); 867private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>> GetFixerPerLanguageMap( 870var fixerMap = ImmutableDictionary.Create<LanguageKind, Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>>(); 874var lazyMap = new Lazy<ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>>(() => 876using var _ = PooledDictionary<DiagnosticId, ArrayBuilder<CodeFixProvider>>.GetInstance(out var mutableMap); 880if (!TryGetWorkspaceFixer(lazyFixer, services, logExceptionWithInfoBar: true, out var fixer)) 930private ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<CodeFixProvider, int>>> GetFixerPriorityPerLanguageMap(SolutionServices services) 932var languageMap = ImmutableDictionary.CreateBuilder<LanguageKind, Lazy<ImmutableDictionary<CodeFixProvider, int>>>(); 935var lazyMap = new Lazy<ImmutableDictionary<CodeFixProvider, int>>(() => 937var priorityMap = ImmutableDictionary.CreateBuilder<CodeFixProvider, int>(); 942if (!TryGetWorkspaceFixer(fixers[i], services, logExceptionWithInfoBar: false, out var fixer)) 957private ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> GetProjectFixers(TextDocument document) 961? ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>.Empty 965private ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> ComputeProjectFixers(TextDocument document) 969using var _ = PooledDictionary<DiagnosticId, ArrayBuilder<CodeFixProvider>>.GetInstance(out var builder); 993private sealed class FixerComparer : IComparer<CodeFixProvider> 995private readonly Dictionary<CodeFixProvider, int> _fixerToIndex; 996private readonly ImmutableDictionary<CodeFixProvider, int> _priorityMap; 999ImmutableArray<CodeFixProvider> allFixers, 1000ImmutableDictionary<CodeFixProvider, int> priorityMap) 1006public int Compare([AllowNull] CodeFixProvider x, [AllowNull] CodeFixProvider y) 1037public ImmutableDictionary<LanguageKind, Lazy<ImmutableDictionary<CodeFixProvider, int>>> GetFixerPriorityPerLanguageMap(SolutionServices services)
Features\CodeFixes\CodeFixService.ProjectCodeFixProvider.cs (2)
13: AbstractProjectExtensionProvider<ProjectCodeFixProvider, CodeFixProvider, ExportCodeFixProviderAttribute> 18protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CodeFixProvider> extensions)
Features\CodeFixes\ICodeFixService.cs (1)
30CodeFixProvider? GetSuppressionFixer(string language, IEnumerable<string> diagnosticIds);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (40)
src\Analyzers\VisualBasic\Tests\AddAnonymousTypeMemberName\AddAnonymousTypeMemberNameTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(Workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\AddExplicitCast\AddExplicitCastTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\AddObsoleteAttribute\AddObsoleteAttributeTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\AddParameter\AddParameterTests.vb (1)
17Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\ConvertToAsync\ConvertToAsyncTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\DocumentationComments\RemoveDocCommentNodeCodeFixProviderTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\GenerateConstructor\GenerateConstructorTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\GenerateEnumMember\GenerateEnumMemberTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\GenerateMethod\GenerateConversionTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\ImplementAbstractClass\ImplementAbstractClassTests.vb (1)
17Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\ImplementInterface\ImplementInterfaceTests.vb (1)
18Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\MakeFieldReadonly\MakeFieldReadonlyTests.vb (1)
17Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\MakeMethodAsynchronous\MakeMethodAsynchronousTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\MakeTypeAbstract\MakeTypeAbstractTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\NamingStyles\NamingStylesTests.vb (1)
19Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\OrderModifiers\OrderModifiersTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\PopulateSwitch\PopulateSwitchStatementTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\QualifyMemberAccess\QualifyMemberAccessTests.vb (1)
17Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryImports\RemoveUnnecessaryImportsTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryParenthesesTests.vb (1)
25Friend Overrides Function CreateDiagnosticProviderAndFixer(Workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\RemoveUnusedMembers\RemoveUnusedMembersTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\RemoveUnusedParametersAndValues\RemoveUnusedParametersTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\RemoveUnusedParametersAndValues\RemoveUnusedValuesTestsBase.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\SimplifyBooleanExpression\SimplifyConditionalTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\SimplifyInterpolation\SimplifyInterpolationTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UnsealClass\UnsealClassTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseAutoProperty\UseAutoPropertyTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseCollectionInitializer\UseCollectionInitializerTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseCompoundAssignment\UseCompoundAssignmentTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(Workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseConditionalExpression\UseConditionalExpressionForAssignmentTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(Workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseConditionalExpression\UseConditionalExpressionForReturnTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseInferredMemberName\UseInferredMemberNameTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseIsNullCheck\UseIsNullCheckForReferenceEqualsTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseNullPropagation\UseNullPropagationTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\UseSystemHashCode\UseSystemHashCodeTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
src\Analyzers\VisualBasic\Tests\ValidateFormatString\ValidateFormatStringTests.vb (1)
16workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (19)
CorrectNextControlVariable\CorrectNextControlVariableTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (1)
40Friend Overrides ReadOnly Property CodeFixProvider As CodeFixProvider
EmbeddedLanguages\ValidateJsonStringTests.vb (1)
22Friend Overrides Function CreateDiagnosticProviderAndFixer(Workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
EmbeddedLanguages\ValidateRegexStringTests.vb (1)
17Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
ExitContinue\ExitContinueCodeActionTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
FixIncorrectFunctionReturnType\FixIncorrectFunctionReturnTypeTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
FullyQualify\FullyQualifyTests.vb (2)
18Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) 855Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
GenerateEndConstruct\GenerateEndConstructTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
GenerateEvent\GenerateEventTests.vb (1)
15Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
GenerateMethod\GenerateMethodTests.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
GenerateVariable\GenerateVariableTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
MoveToTopOfFile\MoveToTopOfFileTests.vb (1)
13Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
PreferFrameworkType\PreferFrameworkTypeTests.vb (1)
22Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
RemoveUnusedVariable\RemoveUnusedVariableTest.vb (1)
14Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
SimplifyThisOrMe\SimplifyThisOrMeTests.vb (1)
16Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
SimplifyTypeNames\SimplifyTypeNamesTests.vb (1)
22Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
SpellCheck\SpellCheckTests.vb (2)
18Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) 500Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider)
Microsoft.CodeAnalysis.Workspaces (41)
CodeActions\CodeAction.cs (3)
30/// An action produced by a <see cref="CodeFixProvider"/> or a <see cref="CodeRefactoringProvider"/>. 69/// by the same <see cref="CodeFixProvider"/> or <see cref="CodeRefactoringProvider"/>. 196Contract.ThrowIfFalse(provider is CodeFixProvider or CodeRefactoringProvider);
CodeActions\CodeActionPriority.cs (1)
12/// cref="CodeFixProvider"/>. Code actions use priorities to group themselves, with lower priority actions showing
CodeActions\CodeActionRequestPriority.cs (1)
12/// Priority class that a particular <see cref="CodeRefactoringProvider"/> or <see cref="CodeFixProvider"/> should
CodeFixes\CodeFix.cs (1)
36/// the <see cref="CodeFixProvider"/> supplied when registering the fix (<see
CodeFixes\CodeFixContext.cs (13)
17/// Context for code fixes provided by a <see cref="CodeFixProvider"/>. 68/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 75/// Additionally, the <see cref="Diagnostic.Id"/> of each diagnostic must be in the set of the <see cref="CodeFixProvider.FixableDiagnosticIds"/> of the associated <see cref="CodeFixProvider"/>. 100/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 107/// Additionally, the <see cref="Diagnostic.Id"/> of each diagnostic must be in the set of the <see cref="CodeFixProvider.FixableDiagnosticIds"/> of the associated <see cref="CodeFixProvider"/>. 133/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 138/// The <see cref="Diagnostic.Id"/> of this diagnostic must be in the set of the <see cref="CodeFixProvider.FixableDiagnosticIds"/> of the associated <see cref="CodeFixProvider"/>. 158/// Creates a code fix context to be passed into <see cref="CodeFixProvider.RegisterCodeFixesAsync(CodeFixContext)"/> method. 163/// The <see cref="Diagnostic.Id"/> of this diagnostic must be in the set of the <see cref="CodeFixProvider.FixableDiagnosticIds"/> of the associated <see cref="CodeFixProvider"/>.
CodeFixes\ExportCodeFixProviderAttribute.cs (3)
14/// Use this attribute to declare a <see cref="CodeFixProvider"/> implementation so that it can be discovered by the host. 26/// Optional name of the <see cref="CodeFixProvider"/>. 79: base(typeof(CodeFixProvider))
CodeFixes\FixAllOccurrences\FixAllContext.cs (8)
43/// Underlying <see cref="CodeFixes.CodeFixProvider"/> which triggered this fix all. 45public CodeFixProvider CodeFixProvider => State.Provider; 104/// <param name="codeFixProvider">Underlying <see cref="CodeFixes.CodeFixProvider"/> which triggered this fix all.</param> 114CodeFixProvider codeFixProvider, 141/// <param name="codeFixProvider">Underlying <see cref="CodeFixes.CodeFixProvider"/> which triggered this fix all.</param> 152CodeFixProvider codeFixProvider, 177/// <param name="codeFixProvider">Underlying <see cref="CodeFixes.CodeFixProvider"/> which triggered this fix all.</param> 187CodeFixProvider codeFixProvider,
CodeFixes\FixAllOccurrences\FixAllProvider.cs (3)
36/// By default, it returns <see cref="CodeFixProvider.FixableDiagnosticIds"/> for the given <paramref name="originalCodeFixProvider"/>. 38/// <param name="originalCodeFixProvider">Original code fix provider that returned this fix all provider from <see cref="CodeFixProvider.GetFixAllProvider"/> method.</param> 39public virtual IEnumerable<string> GetSupportedFixAllDiagnosticIds(CodeFixProvider originalCodeFixProvider)
CodeFixes\FixAllOccurrences\FixAllState.cs (4)
16internal sealed partial class FixAllState : CommonFixAllState<CodeFixProvider, FixAllProvider, FixAllState> 32CodeFixProvider codeFixProvider, 66CodeFixProvider codeFixProvider, 88CodeFixProvider codeFixProvider,
CodeFixesAndRefactorings\FixAllProviderInfo.cs (2)
35if (provider is CodeFixProvider codeFixProvider) 50private static FixAllProviderInfo? CreateWithCodeFixer(CodeFixProvider provider)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
18/// Helper type for <see cref="CodeFixProvider"/>s that need to provide 'fix all' support in a document, by operate by
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
16internal abstract partial class SyntaxEditorBasedCodeFixProvider(bool supportsFixAll = true) : CodeFixProvider
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
159protected override IEnumerable<CodeFixProvider> GetCodeFixProviders()
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
436CodeFixProvider fixer,
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
436CodeFixProvider fixer,
Microsoft.Gen.Logging.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
436CodeFixProvider fixer,
Microsoft.Gen.Metrics.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
436CodeFixProvider fixer,
Microsoft.Gen.MetricsReports.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
436CodeFixProvider fixer,
Microsoft.ML.CodeAnalyzer.Tests (1)
Helpers\CSharpCodeFixVerifier`2.cs (1)
18where TCodeFix : CodeFixProvider, new()
Microsoft.VisualStudio.LanguageServices (1)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
460private static CodeFixProvider? GetSuppressionFixer(IEnumerable<Diagnostic> diagnostics, string language, ICodeFixService codeFixService)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (6)
18public readonly CodeFixProvider? Fixer; 21private static readonly CodeFixProvider s_defaultFixer = new MockFixer(); 24public MockAnalyzerReference(CodeFixProvider? fixer, ImmutableArray<DiagnosticAnalyzer> analyzers) 35public MockAnalyzerReference(CodeFixProvider? fixer) 52public ImmutableArray<CodeFixProvider> GetFixers() 53=> Fixer != null ? ImmutableArray.Create(Fixer) : ImmutableArray<CodeFixProvider>.Empty;