67 types derived from CodeRefactoringProvider
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
CodeActions\ApplyChangesOperationTests.cs (1)
25private class MyCodeRefactoringProvider : CodeRefactoringProvider
CodeActions\Preview\ErrorCases\ExceptionInCodeAction.cs (1)
16internal sealed class ExceptionInCodeAction : CodeRefactoringProvider
CodeActions\PreviewTests.cs (1)
43private sealed class MyCodeRefactoringProvider : CodeRefactoringProvider
Microsoft.CodeAnalysis.CSharp.Features (10)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
24internal sealed partial class EnableNullableCodeRefactoringProvider : CodeRefactoringProvider
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (1)
18internal sealed partial class EnableNullableCodeRefactoringProvider : CodeRefactoringProvider
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
20internal abstract class AbstractUseTypeCodeRefactoringProvider : CodeRefactoringProvider
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
21: CodeRefactoringProvider
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (1)
23internal class ConvertToProgramMainCodeRefactoringProvider : CodeRefactoringProvider
ConvertProgram\ConvertToTopLevelStatementsCodeRefactoringProvider.cs (1)
23internal class ConvertToTopLevelStatementsCodeRefactoringProvider : CodeRefactoringProvider
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
29internal abstract class AbstractChangeImplementationCodeRefactoringProvider : CodeRefactoringProvider
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
35: CodeRefactoringProvider
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (1)
17internal sealed class MakeLocalFunctionStaticCodeRefactoringProvider : CodeRefactoringProvider
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
27internal class CSharpReverseForStatementCodeRefactoringProvider : CodeRefactoringProvider
Microsoft.CodeAnalysis.EditorFeatures (1)
RenameTracking\RenameTrackingCodeRefactoringProvider.cs (1)
17internal class RenameTrackingCodeRefactoringProvider : CodeRefactoringProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeRefactorings\CodeRefactoringServiceTest.cs (3)
57internal sealed class TypeScriptCodeRefactoringProvider : CodeRefactoringProvider 116internal class StubRefactoring : CodeRefactoringProvider 232internal abstract class AbstractNonSourceFileRefactoring : CodeRefactoringProvider
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactorings.cs (1)
18internal class ExceptionInCodeActions : CodeRefactoringProvider
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactoringsAsync.cs (1)
18internal class ExceptionInComputeRefactoringsAsync : CodeRefactoringProvider
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
98private sealed class TestCodeRefactoringProvider : CodeRefactoringProvider
Microsoft.CodeAnalysis.Features (45)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
19TMethodDeclarationSyntax> : CodeRefactoringProvider
ChangeSignature\AbstractChangeSignatureCodeRefactoringProvider.cs (1)
17internal sealed class ChangeSignatureCodeRefactoringProvider : CodeRefactoringProvider
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
25internal abstract class AbstractAddAwaitCodeRefactoringProvider<TExpressionSyntax> : CodeRefactoringProvider
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsRefactoringProvider.cs (1)
19internal abstract class AbstractAddMissingImportsRefactoringProvider : CodeRefactoringProvider
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
24internal sealed class ExtractMethodCodeRefactoringProvider : CodeRefactoringProvider
CodeRefactorings\MoveType\MoveTypeCodeRefactoringProvider.cs (1)
14internal sealed class MoveTypeCodeRefactoringProvider : CodeRefactoringProvider
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.cs (1)
15: CodeRefactoringProvider
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
21: CodeRefactoringProvider
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (1)
22: CodeRefactoringProvider
ConvertAnonymousType\AbstractConvertAnonymousTypeCodeRefactoringProvider.cs (1)
14: CodeRefactoringProvider
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
20internal abstract class AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider<TPropertyDeclarationNode, TTypeDeclarationNode, TCodeGenerationContextInfo> : CodeRefactoringProvider
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
24: CodeRefactoringProvider
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
27TForEachStatement> : CodeRefactoringProvider
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
28TVariableDeclaratorSyntax> : CodeRefactoringProvider
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (1)
16internal abstract class AbstractConvertLinqQueryToForEachProvider<TQueryExpression, TStatement> : CodeRefactoringProvider
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (1)
16internal abstract class AbstractConvertForEachToLinqQueryProvider<TForEachStatement, TStatement> : CodeRefactoringProvider
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
24internal abstract class AbstractConvertConcatenationToInterpolatedStringRefactoringProvider<TExpressionSyntax> : CodeRefactoringProvider
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
29TInterpolationSyntax> : CodeRefactoringProvider
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
22internal sealed class ConvertRegularStringToInterpolatedStringRefactoringProvider : CodeRefactoringProvider
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
47: CodeRefactoringProvider, IConvertTupleToStructCodeRefactoringProvider
ExtractInterface\ExtractInterfaceCodeRefactoringProvider.cs (1)
18internal sealed class ExtractInterfaceCodeRefactoringProvider : CodeRefactoringProvider
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
24internal sealed class GenerateComparisonOperatorsCodeRefactoringProvider : CodeRefactoringProvider
GenerateDefaultConstructors\GenerateDefaultConstructorsCodeRefactoringProvider.cs (1)
27internal sealed class GenerateDefaultConstructorsCodeRefactoringProvider : CodeRefactoringProvider
GenerateFromMembers\AbstractGenerateFromMembersCodeRefactoringProvider.cs (1)
21internal abstract partial class AbstractGenerateFromMembersCodeRefactoringProvider : CodeRefactoringProvider
GenerateFromMembers\AbstractGenerateFromMembersCodeRefactoringProvider.SelectedMemberInfo.cs (1)
10internal abstract partial class AbstractGenerateFromMembersCodeRefactoringProvider : CodeRefactoringProvider
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
27TExpressionSyntax> : CodeRefactoringProvider
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
24: CodeRefactoringProvider
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (1)
18TVariableDeclaratorSyntax> : CodeRefactoringProvider
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
30TArgumentSyntax> : CodeRefactoringProvider
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
28TTryStatementSyntax> : CodeRefactoringProvider
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
21TLocalDeclarationStatementSyntax> : CodeRefactoringProvider
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (1)
16: CodeRefactoringProvider
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
25TSyntaxKind, TStatementSyntax, TIfStatementSyntax, TEmbeddedStatement> : CodeRefactoringProvider
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (1)
23: CodeRefactoringProvider
MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceCodeRefactoringProvider.cs (1)
15internal abstract class AbstractMoveDeclarationNearReferenceCodeRefactoringProvider<TLocalDeclaration> : CodeRefactoringProvider where TLocalDeclaration : SyntaxNode
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (1)
16internal abstract class AbstractMoveStaticMembersRefactoringProvider : CodeRefactoringProvider
MoveToNamespace\MoveToNamespaceCodeActionProvider.cs (1)
18internal sealed class MoveToNamespaceCodeActionProvider : CodeRefactoringProvider
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
16internal abstract class AbstractNameTupleElementCodeRefactoringProvider<TArgumentSyntax, TTupleExpressionSyntax> : CodeRefactoringProvider
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
29: CodeRefactoringProvider
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
17internal abstract class AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider : CodeRefactoringProvider
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
30CodeRefactoringProvider,
SplitOrMergeIfStatements\AbstractMergeIfStatementsCodeRefactoringProvider.cs (1)
21internal abstract class AbstractMergeIfStatementsCodeRefactoringProvider : CodeRefactoringProvider
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (1)
19internal abstract class AbstractSplitIfStatementCodeRefactoringProvider : CodeRefactoringProvider
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
15internal abstract class AbstractUseNamedArgumentsCodeRefactoringProvider : CodeRefactoringProvider
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (1)
24internal abstract class AbstractWrappingCodeRefactoringProvider : CodeRefactoringProvider
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
19public sealed class NonSourceFileRefactoring : CodeRefactoringProvider
Microsoft.CodeAnalysis.Workspaces (1)
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
17internal abstract partial class SyntaxEditorBasedCodeRefactoringProvider : CodeRefactoringProvider
199 references to CodeRefactoringProvider
AnalyzerRunner (9)
CodeRefactoringRunner.cs (9)
29private readonly ImmutableDictionary<string, ImmutableArray<CodeRefactoringProvider>> _refactorings; 86foreach (var refactoringProvider in _refactorings[document.Project.Language]) 153private static ImmutableDictionary<string, ImmutableArray<CodeRefactoringProvider>> FilterRefactorings(ImmutableDictionary<string, ImmutableArray<Lazy<CodeRefactoringProvider, CodeRefactoringProviderMetadata>>> refactorings, Options options) 160private static IEnumerable<CodeRefactoringProvider> FilterRefactorings(IEnumerable<Lazy<CodeRefactoringProvider, CodeRefactoringProviderMetadata>> refactorings, Options options) 180foreach (var refactoring in refactorings.Select(refactoring => refactoring.Value)) 199private static ImmutableDictionary<string, ImmutableArray<Lazy<CodeRefactoringProvider, CodeRefactoringProviderMetadata>>> GetCodeRefactoringProviders(string path) 230var refactorings = exportProvider.GetExports<CodeRefactoringProvider, CodeRefactoringProviderMetadata>();
BuildActionTelemetryTable (1)
Program.cs (1)
491|| typeof(CodeRefactoringProvider).IsAssignableFrom(t);
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (4)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeRefactoringVerifier`1.cs (1)
14where TCodeRefactoring : CodeRefactoringProvider, new()
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpCodeRefactoringVerifier`1+Test.cs (1)
29where TCodeRefactoring : CodeRefactoringProvider, new()
src\Features\DiagnosticsTestUtilities\CodeActions\VisualBasicCodeRefactoringVerifier`1.cs (1)
13where TCodeRefactoring : CodeRefactoringProvider, new()
src\Features\DiagnosticsTestUtilities\CodeActions\VisualBasicCodeRefactoringVerifier`1+Test.cs (1)
28where TCodeRefactoring : CodeRefactoringProvider, new()
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
AddMissingImports\CSharpAddMissingImportsRefactoringProviderTests.cs (1)
25protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
ChangeSignature\ChangeSignature_Delegates.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\ApplyChangesOperationTests.cs (2)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters) 244var provider = CreateCodeRefactoringProvider(workspace, parameters);
CodeActions\ImplementInterface\ImplementExplicitlyTests.cs (1)
24protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\ImplementInterface\ImplementImplicitlyTests.cs (1)
26protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\InitializeParameter\InitializeMemberFromParameterTests.cs (1)
21protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\InitializeParameter\InitializeMemberFromPrimaryConstructorParameterTests.cs (1)
21protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\InlineMethod\CSharpInlineMethodTests_CrossLanguage.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\PreviewExceptionTests.cs (5)
67private static async Task GetPreview(EditorTestWorkspace workspace, CodeRefactoringProvider provider) 75private static void DisplayText(EditorTestWorkspace workspace, CodeRefactoringProvider provider) 83private static async Task ActionSets(EditorTestWorkspace workspace, CodeRefactoringProvider provider) 91private static CodeRefactoringSuggestedAction CreateRefactoringSuggestedAction(EditorTestWorkspace workspace, CodeRefactoringProvider provider, out EditorLayerExtensionManager.ExtensionManager extensionManager) 103EditorTestWorkspace workspace, CodeRefactoringProvider provider, List<CodeAction> codeActions,
CodeActions\PreviewTests.cs (2)
40protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters) 94var provider = CreateCodeRefactoringProvider(workspace, parameters);
CodeActions\PullMemberUp\CSharpPullMemberUpTests.cs (1)
30protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
32protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.cs (1)
23protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
29internal sealed class CSharpConvertLocalFunctionToMethodCodeRefactoringProvider() : CodeRefactoringProvider
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
39: CodeRefactoringProvider
ConvertToRecord\CSharpConvertToRecordRefactoringProvider.cs (1)
17internal sealed class CSharpConvertToRecordRefactoringProvider() : CodeRefactoringProvider
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (1)
27internal sealed class UseExpressionBodyForLambdaCodeRefactoringProvider() : CodeRefactoringProvider
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (58)
AddAwait\AddAwaitTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
AddFileBanner\AddFileBannerTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertAnonymousType\ConvertAnonymousTypeToClassTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertAnonymousType\ConvertAnonymousTypeToTupleTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimInterpolatedStringTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimStringTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertForEachToFor\ConvertForEachToForTests.cs (1)
24protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertForToForEach\ConvertForToForEachTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertIfToSwitch\ConvertIfToSwitchFixAllTests.cs (1)
17protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertLinq\ConvertForEachToLinqQueryTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertLinq\ConvertLinqQueryToForEachTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertLocalFunctionToMethod\ConvertLocalFunctionToMethodTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertNamespace\ConvertNamespaceRefactoringFixAllTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertNumericLiteral\ConvertNumericLiteralTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertToRawString\ConvertInterpolatedStringToRawString_FixAllTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ConvertToRawString\ConvertRegularStringToRawString_FixAllTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
EnableNullable\EnableNullableFixAllTests.cs (1)
16protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
EncapsulateField\EncapsulateFieldTests.cs (1)
24protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ExtractClass\ExtractClassTests.cs (1)
38protected override IEnumerable<CodeRefactoringProvider> GetCodeRefactoringProviders()
ExtractMethod\ExtractLocalFunctionTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ExtractMethod\ExtractMethodTests2.cs (1)
23protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
GenerateOverrides\GenerateOverridesTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
InlineTemporary\InlineTemporaryTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
IntroduceParameter\IntroduceParameterTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
IntroduceUsingStatement\IntroduceUsingStatementTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
IntroduceVariable\InteractiveIntroduceVariableTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
IntroduceVariable\IntroduceLocalForExpressionTests.cs (1)
56protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
IntroduceVariable\IntroduceVariableTests.cs (1)
25protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
InvertConditional\InvertConditionalTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
InvertLogical\InvertLogicalTests.cs (1)
23protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
MakeLocalFunctionStatic\MakeLocalFunctionStaticRefactoringTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
MoveDeclarationNearReference\MoveDeclarationNearReferenceTests.cs (1)
21protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
NameTupleElement\NameTupleElementTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ReplaceDocCommentTextWithTag\ReplaceDocCommentTextWithTagTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsTests.cs (1)
23protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
ReverseForStatement\ReverseForStatementTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
SplitOrMergeIfStatements\MergeConsecutiveIfStatementsTests_ElseIf_WithPrevious.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
SplitOrMergeIfStatements\MergeNestedIfStatementsTests_WithOuter.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
SplitOrMergeIfStatements\SplitIntoConsecutiveIfStatementsTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
SplitOrMergeIfStatements\SplitIntoNestedIfStatementsTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExplicitOrImplicitType\UseExplicitTypeRefactoringTests.cs (1)
18protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExplicitOrImplicitType\UseImplicitTypeRefactoringTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyFixAllTests.cs (1)
19protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForAccessorsRefactoringTests.cs (1)
23protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForConstructorsRefactoringTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForConversionOperatorsRefactoringTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForIndexersRefactoringTests.cs (1)
23protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForLocalFunctionsRefactoringTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForMethodsRefactoringTests.cs (1)
21protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForOperatorsRefactoringTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBody\Refactoring\UseExpressionBodyForPropertiesRefactoringTests.cs (1)
24protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseExpressionBodyForLambda\UseExpressionBodyForLambdasRefactoringTests.cs (1)
22protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
UseRecursivePatterns\UseRecursivePatternsRefactoringFixAllTests.cs (1)
17protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
Wrapping\AbstractWrappingTests.cs (1)
20protected override CodeRefactoringProvider CreateCodeRefactoringProvider(TestWorkspace workspace, TestParameters parameters)
Microsoft.CodeAnalysis.EditorFeatures (1)
Editor\EditorLayerExtensionManager.cs (1)
53or CodeRefactoringProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (12)
CodeActions\CodeChangeProviderMetadataTests.cs (5)
25[InlineData(typeof(CodeRefactoringProvider))] 50[InlineData(typeof(CodeRefactoringProvider), LanguageNames.CSharp)] 51[InlineData(typeof(CodeRefactoringProvider), LanguageNames.VisualBasic)] 87[InlineData(typeof(CodeRefactoringProvider), typeof(PredefinedCodeRefactoringProviderNames))] 114[InlineData(typeof(CodeRefactoringProvider), typeof(PredefinedCodeRefactoringProviderNames))]
CodeFixes\ExtensionOrderingTests.cs (1)
93var providers = ExportProvider.GetExports<CodeRefactoringProvider, CodeChangeProviderMetadata>();
CodeRefactorings\CodeRefactoringServiceTest.cs (5)
93where T : CodeRefactoringProvider 104var codeRefactoring = workspace.ExportProvider.GetExportedValues<CodeRefactoringProvider>().OfType<T>().Single(); 131private readonly ImmutableArray<CodeRefactoringProvider> _refactorings; 135public StubAnalyzerReference(params CodeRefactoringProvider[] codeRefactorings) 150public ImmutableArray<CodeRefactoringProvider> GetRefactorings()
LinkedFiles\LinkedFileDiffMergingEditorTests.cs (1)
48protected override CodeRefactoringProvider CreateCodeRefactoringProvider(EditorTestWorkspace workspace, TestParameters parameters)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Suggestions\SuggestedActions\CodeRefactoringSuggestedAction.cs (2)
21public CodeRefactoringProvider CodeRefactoringProvider { get; } 29CodeRefactoringProvider provider,
Microsoft.CodeAnalysis.Features (34)
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
17/// a <see cref="CodeFixes.CodeFixProvider"/> or a <see cref="CodeRefactorings.CodeRefactoringProvider"/>.
CodeRefactorings\CodeRefactoring.cs (2)
18public CodeRefactoringProvider Provider { get; } 32CodeRefactoringProvider provider,
CodeRefactorings\CodeRefactoringService.cs (20)
30[ImportMany] IEnumerable<Lazy<CodeRefactoringProvider, CodeChangeProviderMetadata>> providers) : ICodeRefactoringService 32private readonly Lazy<ImmutableDictionary<string, Lazy<ImmutableArray<CodeRefactoringProvider>>>> _lazyLanguageToProvidersMap = new Lazy<ImmutableDictionary<string, Lazy<ImmutableArray<CodeRefactoringProvider>>>>( 39new Lazy<ImmutableArray<CodeRefactoringProvider>>(() => ExtensionOrderer.Order(grp).Select(lz => lz.Value).ToImmutableArray()))))); 40private readonly Lazy<ImmutableDictionary<CodeRefactoringProvider, CodeChangeProviderMetadata>> _lazyRefactoringToMetadataMap = new(() => providers.Where(provider => provider.IsValueCreated).ToImmutableDictionary(provider => provider.Value, provider => provider.Metadata)); 42private ImmutableDictionary<CodeRefactoringProvider, FixAllProviderInfo?> _fixAllProviderMap = ImmutableDictionary<CodeRefactoringProvider, FixAllProviderInfo?>.Empty; 44private static IEnumerable<Lazy<CodeRefactoringProvider, OrderableLanguageMetadata>> DistributeLanguages(IEnumerable<Lazy<CodeRefactoringProvider, CodeChangeProviderMetadata>> providers) 52yield return new Lazy<CodeRefactoringProvider, OrderableLanguageMetadata>(() => provider.Value, orderable); 57private ImmutableDictionary<string, Lazy<ImmutableArray<CodeRefactoringProvider>>> LanguageToProvidersMap 60private ImmutableDictionary<CodeRefactoringProvider, CodeChangeProviderMetadata> RefactoringToMetadataMap 63private ConcatImmutableArray<CodeRefactoringProvider> GetProviders(TextDocument document) 65var allRefactorings = ImmutableArray<CodeRefactoringProvider>.Empty; 73static ImmutableArray<CodeRefactoringProvider> GetProjectRefactorings(TextDocument document) 158using var _ = PooledDictionary<CodeRefactoringProvider, int>.GetInstance(out var providerToIndex); 162var pairs = await ProducerConsumer<(CodeRefactoringProvider provider, CodeRefactoring codeRefactoring)>.RunParallelAsync( 208CodeRefactoringProvider provider, 254: AbstractProjectExtensionProvider<ProjectCodeRefactoringProvider, CodeRefactoringProvider, ExportCodeRefactoringProviderAttribute> 259protected override bool TryGetExtensionsFromReference(AnalyzerReference reference, out ImmutableArray<CodeRefactoringProvider> extensions)
CodeRefactorings\FixAllOccurences\FixAllCodeRefactoringCodeAction.cs (1)
12/// Fix all code action for a code action registered by a <see cref="CodeRefactoringProvider"/>.
CodeRefactorings\ICodeRefactoringProviderFactory.cs (1)
13ImmutableArray<CodeRefactoringProvider> GetRefactorings();
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
19: CodeRefactoringProvider
EncapsulateField\EncapsulateFieldRefactoringProvider.cs (1)
16internal sealed class EncapsulateFieldRefactoringProvider() : CodeRefactoringProvider
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
17internal abstract class AbstractExtractClassRefactoringProvider(IExtractClassOptionsService? service) : CodeRefactoringProvider
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
29/// This <see cref="CodeRefactoringProvider"/> is responsible for allowing a user to pick a
GenerateDefaultConstructors\GenerateDefaultConstructorsCodeRefactoringProvider.cs (1)
14/// This <see cref="CodeRefactoringProvider"/> gives users a way to generate constructors for
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (1)
21internal sealed partial class GenerateOverridesCodeRefactoringProvider(IPickMembersService? pickMembersService) : CodeRefactoringProvider
IntroduceVariable\IntroduceVariableCodeRefactoringProvider.cs (1)
21internal sealed class IntroduceVariableCodeRefactoringProvider() : CodeRefactoringProvider
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
18internal abstract partial class AbstractPullMemberUpRefactoringProvider(IPullMemberUpOptionsService? service) : CodeRefactoringProvider
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
29internal sealed class ReplaceMethodWithPropertyCodeRefactoringProvider() : CodeRefactoringProvider
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Features\UnifiedSuggestions\UnifiedSuggestedActions\ICodeRefactoringSuggestedAction.cs (1)
15CodeRefactoringProvider CodeRefactoringProvider { get; }
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedCodeRefactoringSuggestedAction.cs (2)
17public CodeRefactoringProvider CodeRefactoringProvider { get; } 25CodeRefactoringProvider codeRefactoringProvider,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
582CodeRefactoringProvider provider,
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (32)
AddAwait\AddAwaitTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
AddFileBanner\AddFileBannerTests.vb (1)
18Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertAnonymousType\ConvertAnonymousTypeToClassTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertAnonymousType\ConvertAnonymousTypeToTupleTests.vb (1)
17Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertForEachToFor\ConvertForEachToForTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertForToForEach\ConvertForToForEachTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertIfToSwitch\ConvertIfToSwitchFixAllTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertIfToSwitch\ConvertIfToSwitchTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertNumericLiteral\ConvertNumericLiteralTests.vb (1)
17Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.vb (1)
17Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
EncapsulateField\EncapsulateFieldTests.vb (1)
17Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ExtractMethod\ExtractMethodTests.vb (1)
14Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
GenerateComparisonOperators\GenerateComparisonOperatorsTests.vb (1)
17Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
InlineTemporary\InlineTemporaryTests.vb (1)
16Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
IntroduceUsingStatement\IntroduceUsingStatementTests.vb (1)
16Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
IntroduceVariable\IntroduceLocalForExpressionTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
IntroduceVariable\IntroduceVariableTests.vb (1)
18Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
InvertConditional\InvertConditionalTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
InvertLogical\InvertLogicalTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
MoveDeclarationNearReference\MoveDeclarationNearReferenceTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
NameTupleElement\NameTupleElementTests.vb (1)
16Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ReplaceDocCommentTextWithTag\ReplaceDocCommentTextWithTagTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ReplaceMethodWithProperty\ReplaceMethodWithPropertyTests.vb (1)
14Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
ReplacePropertyWithMethods\ReplacePropertyWithMethodsTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
SplitOrMergeIfStatements\MergeConsecutiveIfStatementsTests_ElseIf_WithPrevious.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
SplitOrMergeIfStatements\MergeNestedIfStatementsTests_WithOuter.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
SplitOrMergeIfStatements\SplitIntoConsecutiveIfStatementsTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
SplitOrMergeIfStatements\SplitIntoNestedIfStatementsTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
UseNamedArguments\UseNamedArgumentsTests.vb (1)
15Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
Wrapping\AbstractParameterWrappingTests.vb (1)
17Protected Overrides Function CreateCodeRefactoringProvider(workspace As TestWorkspace, parameters As TestParameters) As CodeRefactoringProvider
Microsoft.CodeAnalysis.Workspaces (19)
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)
11/// Priority of a particular code action produced by either a <see cref="CodeRefactoringProvider"/> or a <see
CodeActions\CodeActionRequestPriority.cs (1)
12/// Priority class that a particular <see cref="CodeRefactoringProvider"/> or <see cref="CodeFixProvider"/> should
CodeFixesAndRefactorings\FixAllProviderInfo.cs (2)
39else if (provider is CodeRefactoringProvider codeRefactoringProvider) 76private static FixAllProviderInfo? CreateWithCodeRefactoring(CodeRefactoringProvider provider)
CodeRefactorings\CodeRefactoringContext.cs (4)
14/// Context for code refactorings provided by a <see cref="CodeRefactoringProvider"/>. 59/// Creates a code refactoring context to be passed into <see cref="CodeRefactoringProvider.ComputeRefactoringsAsync(CodeRefactoringContext)"/> method. 71/// Creates a code refactoring context to be passed into <see cref="CodeRefactoringProvider.ComputeRefactoringsAsync(CodeRefactoringContext)"/> method. 82/// Creates a code refactoring context to be passed into <see cref="CodeRefactoringProvider.ComputeRefactoringsAsync(CodeRefactoringContext)"/> method.
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (3)
13/// Use this attribute to declare a <see cref="CodeRefactoringProvider"/> implementation so that it can be discovered by the host. 25/// The name of the <see cref="CodeRefactoringProvider"/>. 74: base(typeof(CodeRefactoringProvider))
CodeRefactorings\FixAllOccurences\FixAllContext.cs (1)
36public CodeRefactoringProvider CodeRefactoringProvider => State.Provider;
CodeRefactorings\FixAllOccurences\FixAllState.cs (4)
20internal sealed class FixAllState : CommonFixAllState<CodeRefactoringProvider, FixAllProvider, FixAllState> 38CodeRefactoringProvider codeRefactoringProvider, 50CodeRefactoringProvider codeRefactoringProvider, 63CodeRefactoringProvider codeRefactoringProvider,