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