Skip to content

Commit 67b30a4

Browse files
committed
[NFC] Fix formatting of expanded extensions in SourceKit tests.
1 parent 680c0b2 commit 67b30a4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test/SourceKit/Macros/macro_basic.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ macro anonymousTypes(_: () -> String) = #externalMacro(module: "MacroDefinition"
263263
//##-- Expansion on a conformance macro.
264264
// RUN: %sourcekitd-test -req=refactoring.expand.macro -pos=51:5 %s -- ${COMPILER_ARGS[@]} | %FileCheck -check-prefix=CONFORMANCE_EXPAND %s
265265
// CONFORMANCE_EXPAND: source.edit.kind.active:
266-
// CONFORMANCE_EXPAND-NEXT: 52:14-52:14 (@__swiftmacro_9MacroUser2S48HashablefMc_.swift) "extension S4 : Hashable {}"
266+
// CONFORMANCE_EXPAND-NEXT: 52:14-52:14 (@__swiftmacro_9MacroUser2S48HashablefMc_.swift) "extension S4: Hashable {
267+
// CONFORMANCE_EXPAND-NEXT: }"
267268
// CONFORMANCE_EXPAND-NEXT: source.edit.kind.active:
268269
// CONFORMANCE_EXPAND-NEXT: 51:1-51:10 ""
269270

test/SourceKit/Macros/syntactic_expansion.swift.expected

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ source.edit.kind.active:
66
Element.requirement()
77
}"
88
source.edit.kind.active:
9-
13:2-13:2 "extension Generic : P where Element: P {}"
9+
13:2-13:2 "extension Generic: P where Element: P {
10+
}"
1011
source.edit.kind.active:
1112
5:3-5:21 ""
1213
source.edit.kind.active:
@@ -105,4 +106,5 @@ source.edit.kind.active:
105106
Element.requirement()
106107
}"
107108
source.edit.kind.active:
108-
13:2-13:2 "extension Generic : P where Element: P {}"
109+
13:2-13:2 "extension Generic: P where Element: P {
110+
}"

0 commit comments

Comments
 (0)