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