1 instantiation of AnalyzedSwitchLabel
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
227
return new
AnalyzedSwitchLabel
(pattern, guards.ToImmutable());
11 references to AnalyzedSwitchLabel
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (3)
50
var
label = section.Labels[i];
81
private static WhenClauseSyntax? AsWhenClause(
AnalyzedSwitchLabel
label)
89
public override SyntaxNode AsSwitchLabelSyntax(
AnalyzedSwitchLabel
label, Feature feature)
Microsoft.CodeAnalysis.Features (7)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.AnalyzedNodes.cs (2)
26
public readonly ImmutableArray<
AnalyzedSwitchLabel
> Labels;
30
public AnalyzedSwitchSection(ImmutableArray<
AnalyzedSwitchLabel
> labels, IOperation body, SyntaxNode syntaxToRemove)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (4)
183
using var _ = ArrayBuilder<
AnalyzedSwitchLabel
>.GetInstance(out var labels);
198
private bool ParseSwitchLabels(IOperation operation, ArrayBuilder<
AnalyzedSwitchLabel
> labels)
210
var
label = ParseSwitchLabel(operation);
220
private
AnalyzedSwitchLabel
? ParseSwitchLabel(IOperation operation)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
25
public abstract SyntaxNode AsSwitchLabelSyntax(
AnalyzedSwitchLabel
label, Feature feature);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ConvertIfToSwitch\VisualBasicConvertIfToSwitchCodeRefactoringProvider.Rewriting.vb (1)
35
Public Overrides Function AsSwitchLabelSyntax(label As
AnalyzedSwitchLabel
, feature As Feature) As SyntaxNode