We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 825f3f0 + aff4e09 commit 243db9eCopy full SHA for 243db9e
Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift
@@ -759,7 +759,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
759
760
// An if-configuration clause around a switch-case encloses the case's node, so an
761
// if-configuration clause requires a break here in order to be allowed on a new line.
762
- for ifConfigDecl in node.cases.filter({ $0.is(IfConfigDeclSyntax.self) }) {
+ for ifConfigDecl in node.cases where ifConfigDecl.is(IfConfigDeclSyntax.self) {
763
if config.indentSwitchCaseLabels {
764
before(ifConfigDecl.firstToken(viewMode: .sourceAccurate), tokens: .break(.open))
765
after(ifConfigDecl.lastToken(viewMode: .sourceAccurate), tokens: .break(.close, size: 0))
0 commit comments