5 references to Body
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (2)
40return SwitchExpressionArm(DiscardPattern(), AsExpressionSyntax(section.Body)); 55return SwitchExpressionArm(pattern, whenClause, AsExpressionSyntax(section.Body));
Microsoft.CodeAnalysis.Features (3)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (2)
132if (!sections.Any(static section => GetSwitchArmKind(section.Body) == OperationKind.Return)) 158if (GetSwitchArmKind(section.Body) == default)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
60var statements = AsSwitchSectionStatements(section.Body);