90 references to Create
ILLink.CodeFixProvider (2)
BaseAttributeCodeFixProvider.cs (1)
46 context.RegisterCodeFix (CodeAction.Create (
DynamicallyAccessedMembersCodeFixProvider.cs (1)
108 context.RegisterCodeFix (CodeAction.Create (
Microsoft.Analyzers.Extra (1)
MakeExeTypesInternalFixer.cs (1)
32var action = CodeAction.Create(Resources.MakeTypeInternal, c => MakeInternalAsync(context.Document, node, context.CancellationToken), nameof(MakeExeTypesInternalFixer));
Microsoft.AspNetCore.App.CodeFixes (8)
Authorization\AddAuthorizationBuilderFixer.cs (1)
47CodeAction.Create(title,
DetectMismatchedParameterOptionalityFixer.cs (1)
28CodeAction.Create("Fix mismatched route parameter and argument optionality",
Http\HeaderDictionaryAddFixer.cs (2)
50CodeAction.Create(appendTitle, 60CodeAction.Create(indexerTitle,
Http\HeaderDictionaryIndexerFixer.cs (1)
32CodeAction.Create(title,
Kestrel\ListenOnIPv6AnyFixer.cs (1)
29CodeAction.Create(
PublicPartialProgramClassFixer.cs (1)
28CodeAction.Create("Remove unnecessary public partial class Program declaration",
WebApplicationBuilderFixer.cs (1)
68CodeAction.Create(
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
43CodeAction.Create(
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
43CodeAction.Create(
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
96actions.Add(CodeAction.Create(
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
59actions.Add(CodeAction.Create(
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
74return CodeAction.Create(
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
42CodeAction.Create(
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
41CodeAction.Create(
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
36CodeAction.Create(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
59codeActions.Add(CodeAction.Create(
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (3)
68CodeAction.Create( 80CodeAction.Create( 92CodeAction.Create(
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
29CodeAction.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
81return CodeAction.Create(
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
108return CodeAction.Create(title, _ => Task.FromResult(newDocument), title);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\CodeCleanupTests.TestFixers.cs (1)
28CodeAction.Create(
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
64CodeAction.Create(
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
80CodeAction.Create(
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
81return CodeAction.Create(
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
108return CodeAction.Create(title, _ => Task.FromResult(newDocument), title);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (2)
861CodeAction.Create( 1225CodeAction.Create(Title,
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
120context.RegisterRefactoring(CodeAction.Create(
Microsoft.CodeAnalysis.Features (43)
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
80CodeAction.Create(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
34return CodeAction.Create(
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (2)
53CodeAction.Create( 61CodeAction.Create(
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (2)
64CodeAction.Create( 72CodeAction.Create(
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (3)
60CodeAction.Create(FeaturesResources.just_this_anonymous_type, c => FixInCurrentMemberAsync(document, anonymousNode, anonymousType, allAnonymousTypes: false, c), nameof(FeaturesResources.just_this_anonymous_type)), 61CodeAction.Create(FeaturesResources.all_anonymous_types_in_container, c => FixInCurrentMemberAsync(document, anonymousNode, anonymousType, allAnonymousTypes: true, c), nameof(FeaturesResources.all_anonymous_types_in_container)), 70CodeAction.Create(FeaturesResources.Convert_to_tuple, c => FixInCurrentMemberAsync(document, anonymousNode, anonymousType, allAnonymousTypes: false, c), nameof(FeaturesResources.Convert_to_tuple)),
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
49CodeAction.Create(
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (1)
60CodeAction.Create(
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
78CodeAction.Create(
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
135CodeAction.Create(
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (2)
114CodeAction.Create( 137CodeAction.Create(
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
111=> CodeAction.Create(title, c => ReplaceTokenAsync(document, root, numericToken, value, text, suffix), title);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
110CodeAction.Create(
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
106CodeAction.Create(
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
97context.RegisterRefactoring(CodeAction.Create(
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (4)
76return [CodeAction.Create( 101result.Add(CodeAction.Create( 110result.Add(CodeAction.Create( 115result.Add(CodeAction.Create(
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
79CodeAction.Create( 93CodeAction.Create(
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (1)
32CodeAction.Create(
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
96CodeAction.Create(
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (1)
75CodeAction.Create(
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
144CodeAction.Create(
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
52return CodeAction.Create(title, createChangedDocument, title);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
49=> CodeAction.Create(
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
40return CodeAction.Create(title, createChangedDocument, title);
SplitOrMergeIfStatements\Nested\AbstractSplitIntoNestedIfStatementsCodeRefactoringProvider.cs (1)
35=> CodeAction.Create(
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
96actions.Add(CodeAction.Create(
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
59actions.Add(CodeAction.Create(
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (1)
74return CodeAction.Create(
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
42CodeAction.Create(
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
41CodeAction.Create(
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
36CodeAction.Create(
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (3)
68CodeAction.Create( 80CodeAction.Create( 92CodeAction.Create(
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
29CodeAction.Create(
Microsoft.CodeAnalysis.Workspaces (1)
CodeActions\CodeAction.cs (1)
505/// <inheritdoc cref="Create(string, Func{CancellationToken, Task{Document}}, string?)"/>
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
102fixes.Add(CodeAction.Create(
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddMarshalAsToElementFixer.cs (1)
43CodeAction.Create(
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
147CodeAction.Create(
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
147CodeAction.Create(
Microsoft.ML.InternalCodeAnalyzer (5)
ContractsCheckNameofFixProvider.cs (5)
64context.RegisterCodeFix(CodeAction.Create(Title, 101context.RegisterCodeFix(CodeAction.Create(Title, 120context.RegisterCodeFix(CodeAction.Create(Title, 148context.RegisterCodeFix(CodeAction.Create(Title, 158context.RegisterCodeFix(CodeAction.Create(Title,
Microsoft.VisualStudio.LanguageServices.Xaml (1)
CodeFixes\RemoveUnnecessaryUsings\XamlRemoveUnnecessaryUsingsCodeFixProvider.cs (1)
46CodeAction.Create(
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
58CodeAction.Create(
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
50CodeAction.Create(