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 {
193
193
/// Recognize the deprecated syntax A.B. Clients will need to
194
194
/// handle this themselves.
195
195
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
198
198
{
199
199
let memberName = memberAccess. name
200
200
return . deprecatedExternal(
@@ -257,9 +257,10 @@ extension MacroDeclSyntax {
257
257
) -> ExprSyntax {
258
258
// FIXME: Do real call-argument matching between the argument list and the
259
259
// 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
+ } ?? [ ]
263
264
264
265
return MacroExpansionRewriter (
265
266
parameterReplacements: Dictionary (
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ final class MacroReplacementTests: XCTestCase {
44
44
45
45
let diags : [ Diagnostic ]
46
46
do {
47
- _ = try macro. as ( MacroDeclSyntax . self) !. checkDefinition ( )
47
+ _ = try macro. as ( MacroDeclSyntax . self) !. checkDefinition ( )
48
48
XCTFail ( " should have failed with an error " )
49
49
fatalError ( )
50
50
} catch let diagError as DiagnosticsError {
You can’t perform that action at this time.
0 commit comments