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);
14 references to ExtractMethodResult
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
ExtractMethod\ExtractMethodBase.cs (1)
138
var
result = extractor.ExtractMethod(status, CancellationToken.None);
Microsoft.CodeAnalysis.Features (13)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (2)
75
var
result = await ExtractMethodService.ExtractMethodAsync(
107
var
localFunctionResult = await ExtractMethodService.ExtractMethodAsync(
ExtractMethod\AbstractExtractMethodService.cs (2)
26
public async Task<
ExtractMethodResult
> ExtractMethodAsync(
39
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)
52
public
ExtractMethodResult
ExtractMethod(OperationStatus initialStatus, CancellationToken cancellationToken)
60
return
ExtractMethodResult
.Fail(status);
65
return
ExtractMethodResult
.Fail(canAddStatus);
72
return
ExtractMethodResult
.Fail(statements.Status);
74
return
ExtractMethodResult
.Success(