private static SwitchSectionSyntax AddBraces(SwitchSectionSyntax section) { StatementSyntax blockStatement = SyntaxFactory.Block(section.Statements).WithoutTrailingTrivia(); return(section.Update(section.Labels, SyntaxFactory.SingletonList(blockStatement))); }
private static SwitchSectionSyntax AddBraces(SwitchSectionSyntax section) { StatementSyntax blockStatement = SyntaxFactory.Block(section.Statements).WithoutTrailingTrivia(); return section.Update(section.Labels, SyntaxFactory.SingletonList(blockStatement)); }