4 references to Guards
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (3)
50Debug.Assert(label.Guards.Length == 0, "We shouldn't have guards when we're combining multiple cases into a single arm"); 82=> AsWhenClause(label.Guards 91if (label.Guards.IsEmpty)
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
177return supportsOrPattern && section.Labels.All(label => label.Guards.IsDefaultOrEmpty);