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