51 references to RazorPredefinedCodeRefactoringProviderNames
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorPredefinedProviderNameTests.cs (1)
20
[InlineData(typeof(PredefinedCodeRefactoringProviderNames), typeof(
RazorPredefinedCodeRefactoringProviderNames
))]
Microsoft.CodeAnalysis.Razor.Workspaces (16)
CodeActions\CodeActionsService.cs (1)
267
var refactoringProviderNames = typeof(
RazorPredefinedCodeRefactoringProviderNames
)
CodeActions\CSharp\CSharpCodeActionProvider.cs (15)
25
RazorPredefinedCodeRefactoringProviderNames
.GenerateEqualsAndGetHashCodeFromMembers,
26
RazorPredefinedCodeRefactoringProviderNames
.AddAwait,
27
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay,
28
RazorPredefinedCodeRefactoringProviderNames
.InitializeMemberFromParameter, // Create and assign (property|field)
29
RazorPredefinedCodeRefactoringProviderNames
.AddParameterCheck, // Add Null checks
30
RazorPredefinedCodeRefactoringProviderNames
.AddConstructorParametersFromMembers,
31
RazorPredefinedCodeRefactoringProviderNames
.GenerateDefaultConstructors,
32
RazorPredefinedCodeRefactoringProviderNames
.GenerateConstructorFromMembers,
33
RazorPredefinedCodeRefactoringProviderNames
.UseExpressionBody,
34
RazorPredefinedCodeRefactoringProviderNames
.IntroduceVariable,
35
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimInterpolatedString,
36
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimString,
37
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString,
38
RazorPredefinedCodeRefactoringProviderNames
.ConvertPlaceholderToInterpolatedString,
39
RazorPredefinedCodeRefactoringProviderNames
.ConvertToInterpolatedString,
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (17)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CSharpCodeActionTests.cs (17)
46
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.GenerateConstructorFromMembers);
79
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.UseExpressionBody);
126
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.IntroduceVariable);
173
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.IntroduceVariable, childActionIndex: 1);
191
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString);
205
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString);
225
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString);
245
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimInterpolatedString);
265
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimInterpolatedString);
285
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimString);
305
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimString);
325
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertPlaceholderToInterpolatedString);
345
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertToInterpolatedString);
374
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay);
403
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay, fileKind: AspNetCore.Razor.Language.RazorFileKind.Legacy);
426
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay);
452
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay,
Microsoft.VisualStudioCode.RazorExtension.UnitTests (17)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CSharpCodeActionTests.cs (17)
46
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.GenerateConstructorFromMembers);
79
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.UseExpressionBody);
126
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.IntroduceVariable);
173
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.IntroduceVariable, childActionIndex: 1);
191
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString);
205
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString);
225
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertConcatenationToInterpolatedString);
245
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimInterpolatedString);
265
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimInterpolatedString);
285
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimString);
305
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertBetweenRegularAndVerbatimString);
325
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertPlaceholderToInterpolatedString);
345
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.ConvertToInterpolatedString);
374
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay);
403
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay, fileKind: AspNetCore.Razor.Language.RazorFileKind.Legacy);
426
await VerifyCodeActionAsync(input, expected,
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay);
452
RazorPredefinedCodeRefactoringProviderNames
.AddDebuggerDisplay,