20 references to Create
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
302var codeAction = CodeAction.Create(title, action, equivalenceKey, CodeActionPriority.High);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
45var codeAction = CodeAction.Create(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
88var fix = CodeAction.Create("QualifyWithThisFix", _ => Task.FromResult(newDocument));
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (2)
63context.RegisterRefactoring(CodeAction.Create( 73context.RegisterRefactoring(CodeAction.Create(
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (1)
56context.RegisterRefactoring(CodeAction.Create(
ConvertProgram\ConvertToTopLevelStatementsCodeRefactoringProvider.cs (1)
59context.RegisterRefactoring(CodeAction.Create(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
CodeFixes\CodeFixServiceTests.cs (2)
436CodeAction.Create( 817context.RegisterCodeFix(CodeAction.Create(_name, ct => Task.FromResult(context.Document)), fixableDiagnostics);
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
28context.RegisterCodeFix(CodeAction.Create("Do Nothing", token => Task.FromResult(context.Document)), context.Diagnostics[0]);
CodeRefactorings\CodeRefactoringServiceTest.cs (1)
67context.RegisterRefactoring(CodeAction.Create($"Blocking=false", _ => Task.FromResult<Document>(null)));
Microsoft.CodeAnalysis.Features (8)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
59context.RegisterRefactoring(CodeAction.Create(
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
75CodeAction.Create(
MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceCodeRefactoringProvider.cs (1)
39CodeAction.Create(
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
135context.RegisterRefactoring(CodeAction.Create( 163context.RegisterRefactoring(CodeAction.Create(
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
213return CodeAction.Create(
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
302var codeAction = CodeAction.Create(title, action, equivalenceKey, CodeActionPriority.High);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
45var codeAction = CodeAction.Create(
Microsoft.CodeAnalysis.Workspaces (1)
CodeActions\CodeAction.cs (1)
511/// <inheritdoc cref="Create(string, Func{CancellationToken, Task{Document}}, string?, CodeActionPriority)"/>