Skip to content

Commit 73c1ce9

Browse files
committed
Reformat
1 parent c0e763c commit 73c1ce9

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CodeGeneration/Sources/SyntaxSupport/CommonNodes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public let COMMON_NODES: [Node] = [
172172
kind: .token(choices: [.keyword(.async)]),
173173
documentation: "The `async` keyword.",
174174
isOptional: true
175-
),
175+
)
176176
]
177177
),
178178

Sources/SwiftParser/Specifiers.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,11 @@ extension Parser {
669669
}
670670

671671
// If needed, form a throws clause from just the throws keyword.
672-
throwsClause = throwsClause ?? throwsKeyword.map {
673-
RawThrowsClauseSyntax(throwsSpecifier: $0, leftParen: nil, type: nil, rightParen: nil, arena: self.arena)
674-
}
672+
throwsClause =
673+
throwsClause
674+
?? throwsKeyword.map {
675+
RawThrowsClauseSyntax(throwsSpecifier: $0, leftParen: nil, type: nil, rightParen: nil, arena: self.arena)
676+
}
675677

676678
return S(
677679
RawUnexpectedNodesSyntax(unexpectedBeforeAsync, arena: self.arena),

Tests/SwiftSyntaxBuilderTest/FunctionSignatureSyntaxTests.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import XCTest
1616

1717
final class FunctionSignatureSyntaxTests: XCTestCase {
1818
func testFunctionEffectSpecifiersSyntax() throws {
19-
let functionEffects = FunctionEffectSpecifiersSyntax(asyncSpecifier: .keyword(.async), throwsClause: ThrowsClauseSyntax(throwsSpecifier: .keyword(.rethrows)))
19+
let functionEffects = FunctionEffectSpecifiersSyntax(
20+
asyncSpecifier: .keyword(.async),
21+
throwsClause: ThrowsClauseSyntax(throwsSpecifier: .keyword(.rethrows))
22+
)
2023
let buildable = FunctionSignatureSyntax(
2124
parameterClause: .init(parameters: []),
2225
effectSpecifiers: functionEffects,

0 commit comments

Comments
 (0)