Skip to content

Commit cf81bab

Browse files
committed
[Macros] Adjust test case because accessors are only separated by a single line
1 parent 4bc5fe0 commit cf81bab

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

test/SourceKit/Macros/macro_basic.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ macro anonymousTypes(_: () -> String) = #externalMacro(module: "MacroDefinition"
211211
// NESTED_ATTACHED_EXPAND-NEXT: get {
212212
// NESTED_ATTACHED_EXPAND-NEXT: _storage.x
213213
// NESTED_ATTACHED_EXPAND-NEXT: }
214-
// NESTED_ATTACHED_EXPAND-EMPTY:
215214
// NESTED_ATTACHED_EXPAND-NEXT: set {
216215
// NESTED_ATTACHED_EXPAND-NEXT: _storage.x = newValue
217216
// NESTED_ATTACHED_EXPAND-NEXT: }
@@ -226,7 +225,6 @@ macro anonymousTypes(_: () -> String) = #externalMacro(module: "MacroDefinition"
226225
// ACCESSOR1_EXPAND-NEXT: get {
227226
// ACCESSOR1_EXPAND-NEXT: _storage.x
228227
// ACCESSOR1_EXPAND-NEXT: }
229-
// ACCESSOR1_EXPAND-EMPTY:
230228
// ACCESSOR1_EXPAND-NEXT: set {
231229
// ACCESSOR1_EXPAND-NEXT: _storage.x = newValue
232230
// ACCESSOR1_EXPAND-NEXT: }
@@ -241,7 +239,6 @@ macro anonymousTypes(_: () -> String) = #externalMacro(module: "MacroDefinition"
241239
// ACCESSOR2_EXPAND-NEXT: get {
242240
// ACCESSOR2_EXPAND-NEXT: _storage.y
243241
// ACCESSOR2_EXPAND-NEXT: }
244-
// ACCESSOR2_EXPAND-EMPTY:
245242
// ACCESSOR2_EXPAND-NEXT: set {
246243
// ACCESSOR2_EXPAND-NEXT: _storage.y = newValue
247244
// ACCESSOR2_EXPAND-NEXT: }

test/SourceKit/Macros/syntactic_expansion.swift.expected

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ source.edit.kind.active:
1515
get {
1616
_value.wrappedValue
1717
}
18-
1918
set {
2019
_value.wrappedValue = newValue
2120
}
@@ -92,7 +91,6 @@ source.edit.kind.active:
9291
get {
9392
_value.wrappedValue
9493
}
95-
9694
set {
9795
_value.wrappedValue = newValue
9896
}

0 commit comments

Comments
 (0)