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