11 references to CodeActionPurpose
Microsoft.CodeAnalysis.CSharp.Features (11)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (6)
69Project project, CodeActionPurpose purpose, CancellationToken cancellationToken) 87if (purpose is CodeActionPurpose.Apply) 266Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> createChangedSolution) 269(progress, cancellationToken) => createChangedSolution(CodeActionPurpose.Apply, progress, cancellationToken), 272private readonly Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> _createChangedSolution = createChangedSolution; 276var changedSolution = await _createChangedSolution(CodeActionPurpose.Preview, CodeAnalysisProgress.None, cancellationToken).ConfigureAwait(false);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (5)
40CodeActionPurpose purpose, IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken) 56private sealed class FixAllCodeAction(Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> createChangedSolution) 59(progress, cancellationToken) => createChangedSolution(CodeActionPurpose.Apply, progress, cancellationToken), 62private readonly Func<CodeActionPurpose, IProgress<CodeAnalysisProgress>, CancellationToken, Task<Solution>> _createChangedSolution = createChangedSolution; 67CodeActionPurpose.Preview, CodeAnalysisProgress.None, cancellationToken).ConfigureAwait(false);