19 references to SelectionType
Microsoft.CodeAnalysis.CSharp.Features (10)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (3)
54
SelectionType
.Expression => new ExpressionCodeGenerator(selectionResult, analyzerResult, options, localFunction),
55
SelectionType
.SingleStatement => new SingleStatementCodeGenerator(selectionResult, analyzerResult, options, localFunction),
56
SelectionType
.MultipleStatements => new MultipleStatementsCodeGenerator(selectionResult, analyzerResult, options, localFunction),
ExtractMethod\CSharpSelectionResult.cs (3)
25
SelectionType
selectionType,
45
var
selectionType = selectionInfo.GetSelectionType();
48
return selectionType ==
SelectionType
.Expression
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
26
SelectionType
selectionType,
ExtractMethod\CSharpSelectionResult.StatementResult.cs (1)
24
SelectionType
selectionType,
ExtractMethod\CSharpSelectionValidator.cs (2)
172
if (selectionInfo.GetSelectionType() ==
SelectionType
.MultipleStatements)
285
if (selectionInfo.GetSelectionType() !=
SelectionType
.MultipleStatements && commonNode.HasDiagnostics())
Microsoft.CodeAnalysis.Features (9)
ExtractMethod\SelectionInfo.cs (4)
99
public
SelectionType
GetSelectionType()
102
return
SelectionType
.Expression;
107
return
SelectionType
.SingleStatement;
109
return
SelectionType
.MultipleStatements;
ExtractMethod\SelectionResult.cs (5)
26
SelectionType
selectionType,
37
public
SelectionType
SelectionType { get; } = selectionType;
75
public bool IsExtractMethodOnExpression => this.SelectionType ==
SelectionType
.Expression;
76
public bool IsExtractMethodOnSingleStatement => this.SelectionType ==
SelectionType
.SingleStatement;
77
public bool IsExtractMethodOnMultipleStatements => this.SelectionType ==
SelectionType
.MultipleStatements;