File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Sources/SwiftSyntaxMacros
Tests/SwiftSyntaxMacrosTest Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments