20 references to CSharpSelectionResult
Microsoft.CodeAnalysis.CSharp.Features (20)
ExtractMethod\CSharpExtractMethodService.cs (2)
21CSharpSelectionResult, 28protected override CSharpMethodExtractor CreateMethodExtractor(CSharpSelectionResult selectionResult, ExtractMethodGenerationOptions options, bool localFunction)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (2)
15private sealed class CSharpAnalyzer(CSharpSelectionResult selectionResult, bool localFunction, CancellationToken cancellationToken) : Analyzer(selectionResult, localFunction, cancellationToken) 19public static AnalyzerResult Analyze(CSharpSelectionResult selectionResult, bool localFunction, CancellationToken cancellationToken)
ExtractMethod\CSharpMethodExtractor.cs (5)
20internal sealed partial class CSharpMethodExtractor(CSharpSelectionResult result, ExtractMethodGenerationOptions options, bool localFunction) 21: MethodExtractor<CSharpSelectionResult, StatementSyntax, ExpressionSyntax>(result, options, localFunction) 26protected override AnalyzerResult Analyze(CSharpSelectionResult selectionResult, bool localFunction, CancellationToken cancellationToken) 157protected override async Task<TriviaResult> PreserveTriviaAsync(CSharpSelectionResult selectionResult, CancellationToken cancellationToken) 160protected override Task<GeneratedCode> GenerateCodeAsync(InsertionPoint insertionPoint, CSharpSelectionResult selectionResult, AnalyzerResult analyzeResult, ExtractMethodGenerationOptions options, CancellationToken cancellationToken)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (3)
47CSharpSelectionResult selectionResult, 58CSharpSelectionResult selectionResult, 76CSharpSelectionResult selectionResult,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
25CSharpSelectionResult selectionResult,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.MultipleStatementsCodeGenerator.cs (1)
24CSharpSelectionResult selectionResult,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.SingleStatementCodeGenerator.cs (1)
21CSharpSelectionResult selectionResult,
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (1)
22public static async Task<CSharpTriviaResult> ProcessAsync(CSharpSelectionResult selectionResult, CancellationToken cancellationToken)
ExtractMethod\CSharpSelectionResult.cs (1)
33public static async Task<CSharpSelectionResult> CreateAsync(
ExtractMethod\CSharpSelectionValidator.cs (3)
26bool localFunction) : SelectionValidator<CSharpSelectionResult, StatementSyntax>(document, textSpan) 30public override async Task<(CSharpSelectionResult, OperationStatus)> GetValidSelectionAsync(CancellationToken cancellationToken) 74var result = await CSharpSelectionResult.CreateAsync(