6 instantiations of CodeFix
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
94
result.Add(new
CodeFix
(project, resultCodeAction, diagnostic));
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (2)
71
result.Add(new
CodeFix
(project, codeAction, diagnostic));
114
result.Add(new
CodeFix
(project, codeAction, diagnostics));
CodeFixes\Service\CodeFixService.cs (1)
657
fixes.Add(new
CodeFix
(document.Project, action, applicableDiagnostics));
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (2)
237
result.Add(new
CodeFix
(project, codeAction, diagnostic));
245
result.Add(new
CodeFix
(project, codeAction, diagnostic));
41 references to CodeFix
Microsoft.CodeAnalysis.EditorFeatures (2)
Suggestions\SuggestedActions\CodeFixSuggestedAction.cs (2)
23
public
CodeFix
CodeFix { get; }
31
CodeFix
fix,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeFixes\CodeFixServiceTests.cs (2)
215
var
fix = Assert.Single(fixCollection.Fixes);
1096
var
fix = expectedFixCollection.Fixes.Single();
Microsoft.CodeAnalysis.Features (25)
CodeFixes\CodeFixCollection.cs (3)
11
/// Represents a collection of <see cref="
CodeFix
"/>es supplied by a given fix provider
17
ImmutableArray<
CodeFix
> fixes,
24
public ImmutableArray<
CodeFix
> Fixes { get; } = fixes.NullToEmpty();
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (4)
55
public Task<ImmutableArray<
CodeFix
>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken)
58
public Task<ImmutableArray<
CodeFix
>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken)
61
private static ImmutableArray<
CodeFix
> GetConfigurations(Project project, IEnumerable<Diagnostic> diagnostics)
63
var result = ArrayBuilder<
CodeFix
>.GetInstance();
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (4)
47
public Task<ImmutableArray<
CodeFix
>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken)
50
public Task<ImmutableArray<
CodeFix
>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken)
53
private static ImmutableArray<
CodeFix
> GetConfigurations(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken)
55
var result = ArrayBuilder<
CodeFix
>.GetInstance();
CodeFixes\Service\CodeFixService.cs (3)
629
private static async Task<ImmutableArray<
CodeFix
>> GetCodeFixesAsync(
638
using var fixesDisposer = ArrayBuilder<
CodeFix
>.GetInstance(out var fixes);
751
Func<ImmutableArray<Diagnostic>, Task<ImmutableArray<
CodeFix
>>> getFixes,
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (6)
140
public Task<ImmutableArray<
CodeFix
>> GetFixesAsync(
144
return Task.FromResult(ImmutableArray<
CodeFix
>.Empty);
155
private async Task<ImmutableArray<
CodeFix
>> GetSuppressionsAsync(
168
public async Task<ImmutableArray<
CodeFix
>> GetFixesAsync(
184
private async Task<ImmutableArray<
CodeFix
>> GetSuppressionsAsync(
203
var result = ArrayBuilder<
CodeFix
>.GetInstance();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
89
var
newSuppressionFix = newSuppressionFixes.SingleOrDefault();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (1)
48
var
removeSuppressionFix = removeSuppressionFixes.SingleOrDefault();
CodeFixes\Suppression\WrapperCodeFixProvider.cs (2)
40
private static void RegisterSuppressionFixes(CodeFixContext context, ImmutableArray<
CodeFix
> suppressionFixes)
44
foreach (
var
suppressionFix in suppressionFixes)
Copilot\ICopilotChangeAnalysisService.cs (1)
153
private static CodeAction GetFirstAction(
CodeFix
codeFix)
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Features\UnifiedSuggestions\UnifiedSuggestedActions\ICodeFixSuggestedAction.cs (1)
15
CodeFix
CodeFix { get; }
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedCodeFixSuggestedAction.cs (2)
17
public
CodeFix
CodeFix { get; }
27
CodeFix
codeFix,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (5)
134
ImmutableArray<
CodeFix
> codeFixes)
136
foreach (
var
fix in codeFixes)
145
async Task<IUnifiedSuggestedAction> GetUnifiedSuggestedActionAsync(Solution originalSolution, CodeAction action,
CodeFix
fix)
177
CodeFix
fix, IUnifiedSuggestedAction suggestedAction,
192
static CodeFixGroupKey GetGroupKey(
CodeFix
fix)
Microsoft.CodeAnalysis.Workspaces (4)
CodeFixes\Supression\IConfigurationFixProvider.cs (4)
27
/// <returns>A list of zero or more potential <see cref="
CodeFix
"/>'es. It is also safe to return null if there are none.</returns>
28
Task<ImmutableArray<
CodeFix
>> GetFixesAsync(TextDocument document, TextSpan span, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken);
33
/// <returns>A list of zero or more potential <see cref="
CodeFix
"/>'es. It is also safe to return null if there are none.</returns>
34
Task<ImmutableArray<
CodeFix
>> GetFixesAsync(Project project, IEnumerable<Diagnostic> diagnostics, CancellationToken cancellationToken);