Skip to content

Commit f358e1c

Browse files
authored
Merge pull request #53 from p-x9/feature/swift-syntax-603
Support swift-syntax version <603.0.0
2 parents 9454715 + 2aeac8e commit f358e1c

3 files changed

Lines changed: 34 additions & 26 deletions

File tree

Package.resolved

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ let package = Package(
1818
dependencies: [
1919
.package(
2020
url: "https://github.com/swiftlang/swift-syntax.git",
21-
"509.0.0"..<"603.0.0"
21+
"509.0.0"..<"604.0.0"
2222
),
2323
.package(
2424
url: "https://github.com/p-x9/swift-literal-type-inference.git",
25-
from: "0.5.0"
25+
from: "0.6.0"
2626
),
2727
.package(
2828
url: "https://github.com/p-x9/swift-object-association.git",

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)