3 instantiations of FixAllContext
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
441var context = new FixAllContext(
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
442var context = new FixAllContext(
Microsoft.CodeAnalysis.Workspaces (1)
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
344: new FixAllContext(newState, this.Progress, newCancellationToken);
99 references to FixAllContext
Microsoft.Analyzers.Extra.Tests (2)
Resources\RoslynTestUtils.cs (2)
441var context = new FixAllContext( 510internal class TestDiagnosticProvider : FixAllContext.DiagnosticProvider
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
442var context = new FixAllContext( 511internal class TestDiagnosticProvider : FixAllContext.DiagnosticProvider
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (2)
28public override async Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 51static async Task<ImmutableArray<Diagnostic>> GetSolutionDiagnosticsAsync(FixAllContext fixAllContext)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextExtensions.cs (1)
12public static string GetDefaultFixAllTitle(this FixAllContext context)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Formatting\CodeCleanupTests.TestFixers.cs (2)
85public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 141public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext)
Microsoft.CodeAnalysis.CSharp.Features (8)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorFixAllProvider.cs (4)
31public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 37private static async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts) 44foreach (var currentContext in contexts)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockFixAllProvider.cs (4)
23public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 29private static async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts) 35foreach (var currentContext in contexts)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
CodeActions\OmniSharpCodeFixContextFactory.cs (2)
38public static FixAllContext CreateFixAllContext( 46FixAllContext.DiagnosticProvider fixAllDiagnosticProvider,
Microsoft.CodeAnalysis.Features (15)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (4)
30public override async Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 46FixAllContext fixAllContext) 76FixAllContext fixAllContext) 136FixAllContext fixAllContext)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.FixAllProvider.cs (1)
29public override async Task<CodeAction> GetFixAsync(FixAllContext fixAllContext)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (2)
28public override async Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 51static async Task<ImmutableArray<Diagnostic>> GetSolutionDiagnosticsAsync(FixAllContext fixAllContext)
SyncNamespaces\AbstractSyncNamespacesService.cs (4)
50var fixAllContext = await GetFixAllContextAsync( 95private static async Task<FixAllContext> GetFixAllContextAsync( 138FixAllContext fixAllContext, 152private sealed class DiagnosticProvider : FixAllContext.DiagnosticProvider
UseAutoProperty\UseAutoPropertyFixAllProvider.cs (4)
25public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 29private async Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalContext, ImmutableArray<FixAllContext> contexts) 40foreach (var currentContext in contexts)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\CodeFixes\CodeFixService.cs (1)
777: (FixAllContext.DiagnosticProvider)new FixAllDiagnosticProvider(_diagnosticService, diagnosticIds);
Features\CodeFixes\CodeFixService.FixAllDiagnosticProvider.cs (1)
19private sealed class FixAllDiagnosticProvider : FixAllContext.SpanBasedDiagnosticProvider
Features\CodeFixes\CodeFixService.FixAllPredefinedDiagnosticProvider.cs (1)
17private class FixAllPredefinedDiagnosticProvider : FixAllContext.DiagnosticProvider
Microsoft.CodeAnalysis.Workspaces (54)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (9)
34public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 39FixAllContext originalFixAllContext, 40ImmutableArray<FixAllContext> fixAllContexts) 55foreach (var fixAllContext in fixAllContexts) 78FixAllContext fixAllContext, IProgress<CodeAnalysisProgress> progressTracker, Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger) 87private static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> DetermineDiagnosticsAsync(FixAllContext fixAllContext, IProgress<CodeAnalysisProgress> progressTracker) 108FixAllContext fixAllContext, 138FixAllContext fixAllContext, ImmutableArray<Diagnostic> orderedDiagnostics) 198FixAllContext fixAllContext,
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (8)
26/// cref="FixAllAsync(FixAllContext, Document, ImmutableArray{Diagnostic})"/> for implementors to process. 39/// cref="GetFixAsync(FixAllContext)"/>. Override this if customizing that title is desired. 41protected virtual string GetFixAllTitle(FixAllContext fixAllContext) 58protected abstract Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, ImmutableArray<Diagnostic> diagnostics); 63public sealed override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 67private Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalFixAllContext, ImmutableArray<FixAllContext> fixAllContexts) 76FixAllContext fixAllContext, Func<Document, Document?, ValueTask> onDocumentFixed)
CodeFixes\FixAllOccurrences\FixAllContext.cs (12)
38/// Document within which fix all occurrences was triggered, null if the <see cref="FixAllContext"/> is scoped to a project. 93/// Creates a new <see cref="FixAllContext"/>. 98/// For those fix all scopes, use the <see cref="FixAllContext"/> constructor that 109/// <see cref="DiagnosticProvider"/> to fetch document/project diagnostics to fix in a <see cref="FixAllContext"/>. 133/// Creates a new <see cref="FixAllContext"/> with an associated <paramref name="diagnosticSpan"/>. 146/// <see cref="DiagnosticProvider"/> to fetch document/project diagnostics to fix in a <see cref="FixAllContext"/>. 173/// Creates a new <see cref="FixAllContext"/>. 182/// <see cref="DiagnosticProvider"/> to fetch document/project diagnostics to fix in a <see cref="FixAllContext"/>. 274var getDiagnosticsTask = State.DiagnosticProvider is FixAllContext.SpanBasedDiagnosticProvider spanBasedDiagnosticProvider 328/// Gets a new <see cref="FixAllContext"/> with the given cancellationToken. 330public FixAllContext WithCancellationToken(CancellationToken cancellationToken) 333internal FixAllContext With(
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (7)
23/// Diagnostic provider to fetch document/project diagnostics to fix in a <see cref="FixAllContext"/>. 28/// Gets all the diagnostics to fix in the given document in a <see cref="FixAllContext"/>. 33/// Gets all the project-level diagnostics to fix, i.e. diagnostics with no source location, in the given project in a <see cref="FixAllContext"/>. 38/// Gets all the diagnostics to fix in the given project in a <see cref="FixAllContext"/>. 43internal static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixAsync(FixAllContext fixAllContext) 50static async Task<ImmutableDictionary<Document, ImmutableArray<Diagnostic>>> GetDocumentDiagnosticsToFixWorkerAsync(FixAllContext fixAllContext) 68FixAllContext fixAllContext)
CodeFixes\FixAllOccurrences\FixAllContext.SpanBasedDiagnosticProvider.cs (2)
18/// Diagnostic provider to fetch document/project diagnostics to fix in a <see cref="FixAllContext"/>, 32/// Gets all the diagnostics to fix for the given <paramref name="fixAllSpan"/> in the given <paramref name="document"/> in a <see cref="FixAllContext"/>.
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (2)
22FixAllContext fixAllContext) 109FixAllContext fixAllContext,
CodeFixes\FixAllOccurrences\FixAllProvider.cs (6)
45public abstract Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext); 58public static FixAllProvider Create(Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync) 78Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 95=> this.GetFixAsync((FixAllContext)fixAllContext); 99Func<FixAllContext, Document, ImmutableArray<Diagnostic>, Task<Document?>> fixAllAsync, 102protected override Task<Document?> FixAllAsync(FixAllContext context, Document document, ImmutableArray<Diagnostic> diagnostics)
CodeFixes\FixAllOccurrences\FixAllState.cs (2)
20public FixAllContext.DiagnosticProvider DiagnosticProvider { get; } 36FixAllContext.DiagnosticProvider fixAllDiagnosticProvider)
CodeFixes\FixAllOccurrences\FixAllState.FixMultipleDiagnosticProvider.cs (2)
17/// Diagnostic provider to fetch document/project diagnostics to fix in a <see cref="FixAllContext"/>. 19internal sealed class FixMultipleDiagnosticProvider : FixAllContext.DiagnosticProvider
CodeFixes\FixAllOccurrences\NoOpFixAllProvider.cs (3)
12/// This is only used by public constructors for <see cref="FixAllContext"/>, 15/// helps us to avoid a nullable <see cref="FixAllContext.FixAllProvider"/>. 25public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextExtensions.cs (1)
12public static string GetDefaultFixAllTitle(this FixAllContext context)
Microsoft.Interop.ComInterfaceGenerator (3)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
169public override async Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext)
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (2)
15public static async Task<ImmutableArray<Diagnostic>> GetDiagnosticsInScopeAsync(this FixAllContext context) 48public static async Task<ImmutableArray<Project>> GetProjectsWithDiagnosticsAsync(this FixAllContext context)
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
29public override async Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 87private static async Task<ImmutableArray<Diagnostic>> GetAllDiagnosticsInScope(FixAllContext context)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
169public override async Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext)
src\libraries\System.Runtime.InteropServices\gen\Common\FixAllContextExtensions.cs (2)
15public static async Task<ImmutableArray<Diagnostic>> GetDiagnosticsInScopeAsync(this FixAllContext context) 48public static async Task<ImmutableArray<Project>> GetProjectsWithDiagnosticsAsync(this FixAllContext context)