1 instantiation of AnalyzedSwitchLabel
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
235return new AnalyzedSwitchLabel(pattern, guards.ToImmutable());
10 references to AnalyzedSwitchLabel
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (3)
49var label = section.Labels[i]; 81private static WhenClauseSyntax? AsWhenClause(AnalyzedSwitchLabel label) 89public override SyntaxNode AsSwitchLabelSyntax(AnalyzedSwitchLabel label, Feature feature)
Microsoft.CodeAnalysis.Features (7)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.AnalyzedNodes.cs (2)
24internal sealed class AnalyzedSwitchSection(ImmutableArray<AnalyzedSwitchLabel> labels, IOperation body, SyntaxNode syntaxToRemove) 26public readonly ImmutableArray<AnalyzedSwitchLabel> Labels = labels;
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (4)
191using var _ = ArrayBuilder<AnalyzedSwitchLabel>.GetInstance(out var labels); 206private bool ParseSwitchLabels(IOperation operation, ArrayBuilder<AnalyzedSwitchLabel> labels) 218var label = ParseSwitchLabel(operation); 228private AnalyzedSwitchLabel? ParseSwitchLabel(IOperation operation)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
24public abstract SyntaxNode AsSwitchLabelSyntax(AnalyzedSwitchLabel label, Feature feature);