1 write to Guards
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.AnalyzedNodes.cs (1)
50
Guards
= guards;
4 references to Guards
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
51
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
Microsoft.CodeAnalysis.Features (1)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
176
return supportsOrPattern && section.Labels.All(label => label.
Guards
.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ConvertIfToSwitch\VisualBasicConvertIfToSwitchCodeRefactoringProvider.Rewriting.vb (1)
36
Debug.Assert(label.
Guards
.IsDefaultOrEmpty)