Skip to content

Commit b3d38fd

Browse files
committed
Fix swift-format errors.
1 parent bc84e48 commit b3d38fd

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Sources/SwiftParser/Expressions.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,12 @@ extension Parser {
481481
// what we have done for the consume keyword.
482482
switch self.peek() {
483483
case TokenSpec(.identifier, allowAtStartOfLine: false),
484-
TokenSpec(.dollarIdentifier, allowAtStartOfLine: false),
485-
TokenSpec(.self, allowAtStartOfLine: false):
484+
TokenSpec(.dollarIdentifier, allowAtStartOfLine: false),
485+
TokenSpec(.self, allowAtStartOfLine: false):
486486
break
487487
default:
488-
break EXPR_PREFIX // Break out of `outer switch` on failure.
488+
// Break out of `outer switch` on failure.
489+
break EXPR_PREFIX
489490
}
490491

491492
let copyTok = self.eat(handle)
@@ -509,11 +510,12 @@ extension Parser {
509510
// what we have done for the consume keyword.
510511
switch self.peek() {
511512
case TokenSpec(.identifier, allowAtStartOfLine: false),
512-
TokenSpec(.dollarIdentifier, allowAtStartOfLine: false),
513-
TokenSpec(.self, allowAtStartOfLine: false):
513+
TokenSpec(.dollarIdentifier, allowAtStartOfLine: false),
514+
TokenSpec(.self, allowAtStartOfLine: false):
514515
break
515516
default:
516-
break EXPR_PREFIX // break out of the outer `switch`
517+
// Break out of the outer `switch`.
518+
break EXPR_PREFIX
517519
}
518520

519521
let consumeTok = self.eat(handle)

Tests/SwiftParserTest/translated/MoveExprTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ final class MoveExprTests: XCTestCase {
9595
fallthrough
9696
}
9797
}
98-
""")
98+
"""
99+
)
99100
}
100101
}
101-

0 commit comments

Comments
 (0)