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)
17private sealed class CSharpAnalyzer(CSharpSelectionResult selectionResult, bool localFunction, CancellationToken cancellationToken) : Analyzer(selectionResult, localFunction, cancellationToken) 21public static AnalyzerResult Analyze(CSharpSelectionResult selectionResult, bool localFunction, CancellationToken cancellationToken)
ExtractMethod\CSharpMethodExtractor.cs (5)
22internal sealed partial class CSharpMethodExtractor(CSharpSelectionResult result, ExtractMethodGenerationOptions options, bool localFunction) 23: MethodExtractor<CSharpSelectionResult, StatementSyntax, ExpressionSyntax>(result, options, localFunction) 28protected override AnalyzerResult Analyze(CSharpSelectionResult selectionResult, bool localFunction, CancellationToken cancellationToken) 155protected override async Task<TriviaResult> PreserveTriviaAsync(CSharpSelectionResult selectionResult, CancellationToken cancellationToken) 158protected override Task<GeneratedCode> GenerateCodeAsync(InsertionPoint insertionPoint, CSharpSelectionResult selectionResult, AnalyzerResult analyzeResult, CodeGenerationOptions options, CancellationToken cancellationToken)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (3)
46CSharpSelectionResult selectionResult, 57CSharpSelectionResult selectionResult, 75CSharpSelectionResult 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)
24public 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(