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