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