2 instantiations of ExtractMethodResult
Microsoft.CodeAnalysis.Features (2)
ExtractMethod\ExtractMethodResult.cs (2)
41
=>
new
(status.Succeeded, status.Reasons, getDocumentAsync: null);
47
return
new
(status.Succeeded, status.Reasons, getDocumentAsync);
13 references to ExtractMethodResult
Microsoft.CodeAnalysis.Features (13)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (2)
71
var
result = await ExtractMethodService.ExtractMethodAsync(
103
var
localFunctionResult = await ExtractMethodService.ExtractMethodAsync(
ExtractMethod\AbstractExtractMethodService.cs (2)
29
public async Task<
ExtractMethodResult
> ExtractMethodAsync(
42
return
ExtractMethodResult
.Fail(status);
ExtractMethod\ExtractMethodResult.cs (2)
40
public static
ExtractMethodResult
Fail(OperationStatus status)
43
public static
ExtractMethodResult
Success(
ExtractMethod\ExtractMethodService.cs (1)
14
public static Task<
ExtractMethodResult
> ExtractMethodAsync(Document document, TextSpan textSpan, bool localFunction, ExtractMethodGenerationOptions options, CancellationToken cancellationToken)
ExtractMethod\IExtractMethodService.cs (1)
14
Task<
ExtractMethodResult
> ExtractMethodAsync(Document document, TextSpan textSpan, bool localFunction, ExtractMethodGenerationOptions options, CancellationToken cancellationToken);
ExtractMethod\MethodExtractor.cs (5)
48
public
ExtractMethodResult
ExtractMethod(OperationStatus initialStatus, CancellationToken cancellationToken)
55
return
ExtractMethodResult
.Fail(status);
60
return
ExtractMethodResult
.Fail(canAddStatus);
67
return
ExtractMethodResult
.Fail(statements.Status);
69
return
ExtractMethodResult
.Success(