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