9 references to Labels
Microsoft.CodeAnalysis.Features (9)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (7)
113var labelCount = sections.Sum(section => section.Labels.IsDefault ? 1 : section.Labels.Length); 126if (!sections.Any(static section => section.Labels.IsDefault)) 160if (section.Labels.IsDefault) 164if (section.Labels.Length == 1) 167if (section.Labels.Length == 0) 175return supportsOrPattern && section.Labels.All(label => label.Guards.IsDefaultOrEmpty);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
63var sectionNode = section.Labels.IsDefault 65: generator.SwitchSectionFromLabels(section.Labels.Select(label => AsSwitchLabelSyntax(label, feature)), statements);