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