4 instantiations of FixAllContext
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
CodeActions\AbstractCodeActionTest.cs (1)
88var fixAllContext = new FixAllContext(fixAllState, new ProgressTracker(), CancellationToken.None);
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\FixAllOccurences\FixAllCodeRefactoringCodeAction.cs (1)
22=> new FixAllContext((FixAllState)fixAllState, progressTracker, cancellationToken);
Microsoft.CodeAnalysis.Workspaces (2)
CodeRefactorings\FixAllOccurences\FixAllContext.cs (2)
103return new FixAllContext(State, this.ProgressTracker, cancellationToken); 119return State == newState ? this : new FixAllContext(newState, ProgressTracker, CancellationToken);
21 references to FixAllContext
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (1)
34public override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext)
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
CodeActions\AbstractCodeActionTest.cs (1)
88var fixAllContext = new FixAllContext(fixAllState, new ProgressTracker(), CancellationToken.None);
Microsoft.CodeAnalysis.Workspaces (19)
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (9)
27/// <see cref="FixAllAsync(FixAllContext, Document, Optional{ImmutableArray{TextSpan}})"/> is invoked for each document for implementors to process. 47/// cref="GetFixAsync(FixAllContext)"/>. Override this if customizing that title is desired. 49protected virtual string GetFixAllTitle(FixAllContext fixAllContext) 53/// Apply fix all operation for the code refactoring in the <see cref="FixAllContext.Document"/> 66protected abstract Task<Document?> FixAllAsync(FixAllContext fixAllContext, Document document, Optional<ImmutableArray<TextSpan>> fixAllSpans); 71public sealed override Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext) 75private Task<Solution?> FixAllContextsHelperAsync(FixAllContext originalFixAllContext, ImmutableArray<FixAllContext> fixAllContexts) 88FixAllContext fixAllContext, IProgressTracker progressTracker)
CodeRefactorings\FixAllOccurences\FixAllContext.cs (3)
94/// Gets a new <see cref="FixAllContext"/> with the given cancellationToken. 96public FixAllContext WithCancellationToken(CancellationToken cancellationToken) 113internal FixAllContext With(
CodeRefactorings\FixAllOccurences\FixAllProvider.cs (7)
41public abstract Task<CodeAction?> GetFixAsync(FixAllContext fixAllContext); 45=> this.GetFixAsync((FixAllContext)fixAllContext); 59public static FixAllProvider Create(Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> fixAllAsync) 79Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> fixAllAsync, 96private readonly Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> _fixAllAsync; 99Func<FixAllContext, Document, Optional<ImmutableArray<TextSpan>>, Task<Document?>> fixAllAsync, 106protected override Task<Document?> FixAllAsync(FixAllContext context, Document document, Optional<ImmutableArray<TextSpan>> fixAllSpans)