Skip to content

Commit 2aeac8e

Browse files
committed
Fixes for warnings
- logStringInterpolationParsingError
1 parent 3cc5a3c commit 2aeac8e

1 file changed

Lines changed: 20 additions & 12 deletions

File tree

Tests/AssociatedObjectTests/PatternBindingSyntax+Tests.swift

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ final class PatternBindingSyntaxTests: XCTestCase {
8282
binding = .init(
8383
pattern: IdentifierPatternSyntax(identifier: .identifier("value")),
8484
accessorBlock: .init(
85-
accessors: .getter(.init {
86-
DeclSyntax("\"hello\"")
87-
})
85+
accessors: .getter(
86+
.init {
87+
"\"hello\""
88+
}
89+
)
8890
)
8991
)
9092

@@ -105,9 +107,11 @@ final class PatternBindingSyntaxTests: XCTestCase {
105107

106108
let newGetter = AccessorDeclSyntax(
107109
accessorSpecifier: .keyword(.get),
108-
body: .init(statements: CodeBlockItemListSyntax {
109-
.init(item: .decl("\"hello\""))
110-
})
110+
body: .init(
111+
statements: .init {
112+
"\"hello\""
113+
}
114+
)
111115
)
112116

113117
binding.getter = newGetter
@@ -117,9 +121,11 @@ final class PatternBindingSyntaxTests: XCTestCase {
117121
binding = .init(
118122
pattern: IdentifierPatternSyntax(identifier: .identifier("value")),
119123
accessorBlock: .init(
120-
accessors: .getter(.init {
121-
DeclSyntax("\"hello\"")
122-
})
124+
accessors: .getter(
125+
.init {
126+
"\"hello\""
127+
}
128+
)
123129
)
124130
)
125131

@@ -184,9 +190,11 @@ final class PatternBindingSyntaxTests: XCTestCase {
184190

185191
let newWillSet = AccessorDeclSyntax(
186192
accessorSpecifier: .keyword(.willSet),
187-
body: .init(statements: CodeBlockItemListSyntax {
188-
.init(item: .decl("\"hello\""))
189-
})
193+
body: .init(
194+
statements: .init {
195+
"\"hello\""
196+
}
197+
)
190198
)
191199

192200
binding.willSet = newWillSet

0 commit comments

Comments
 (0)