11 references to CodeActionPurpose
Microsoft.CodeAnalysis.CSharp.Features (11)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (6)
67
private static async Task<Solution> EnableNullableReferenceTypesAsync(Project project,
CodeActionPurpose
purpose, CodeActionOptionsProvider fallbackOptions, CancellationToken cancellationToken)
79
if (purpose is
CodeActionPurpose
.Apply)
259
private readonly Func<
CodeActionPurpose
, CancellationToken, Task<Solution>> _createChangedSolution;
261
public CustomCodeAction(Func<
CodeActionPurpose
, CancellationToken, Task<Solution>> createChangedSolution)
264
cancellationToken => createChangedSolution(
CodeActionPurpose
.Apply, cancellationToken),
272
var changedSolution = await _createChangedSolution(
CodeActionPurpose
.Preview, cancellationToken).ConfigureAwait(false);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (5)
39
async Task<Solution> EnableNullableReferenceTypesInSolutionAsync(
CodeActionPurpose
purpose, CancellationToken cancellationToken)
58
private readonly Func<
CodeActionPurpose
, CancellationToken, Task<Solution>> _createChangedSolution;
60
public FixAllCodeAction(Func<
CodeActionPurpose
, CancellationToken, Task<Solution>> createChangedSolution)
63
cancellationToken => createChangedSolution(
CodeActionPurpose
.Apply, cancellationToken),
71
var changedSolution = await _createChangedSolution(
CodeActionPurpose
.Preview, cancellationToken).ConfigureAwait(false);