Skip to content

Commit efbd09f

Browse files
committed
Reformat
1 parent bfe1695 commit efbd09f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Sources/SwiftSyntaxMacros/MacroReplacement.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ extension MacroDeclSyntax {
193193
/// Recognize the deprecated syntax A.B. Clients will need to
194194
/// handle this themselves.
195195
if let memberAccess = originalDefinition.as(MemberAccessExprSyntax.self),
196-
let base = memberAccess.base,
197-
let baseName = base.as(IdentifierExprSyntax.self)?.identifier
196+
let base = memberAccess.base,
197+
let baseName = base.as(IdentifierExprSyntax.self)?.identifier
198198
{
199199
let memberName = memberAccess.name
200200
return .deprecatedExternal(
@@ -257,9 +257,10 @@ extension MacroDeclSyntax {
257257
) -> ExprSyntax {
258258
// FIXME: Do real call-argument matching between the argument list and the
259259
// macro parameter list, porting over from the compiler.
260-
let arguments: [ExprSyntax] = argumentList?.map { element in
261-
element.expression
262-
} ?? []
260+
let arguments: [ExprSyntax] =
261+
argumentList?.map { element in
262+
element.expression
263+
} ?? []
263264

264265
return MacroExpansionRewriter(
265266
parameterReplacements: Dictionary(

Tests/SwiftSyntaxMacrosTest/MacroReplacementTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class MacroReplacementTests: XCTestCase {
4444

4545
let diags: [Diagnostic]
4646
do {
47-
_ = try macro.as(MacroDeclSyntax.self)!.checkDefinition()
47+
_ = try macro.as(MacroDeclSyntax.self)!.checkDefinition()
4848
XCTFail("should have failed with an error")
4949
fatalError()
5050
} catch let diagError as DiagnosticsError {

0 commit comments

Comments
 (0)