Skip to content

Commit

Permalink
Updated swift-syntax version
Browse files Browse the repository at this point in the history
  • Loading branch information
emilrb committed Sep 3, 2024
1 parent a3aeaf9 commit fcab291
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"originHash" : "4d6992754ae66d7ddcfb651a36cb1a6af9be4d4d3a67281ac47e14997f92abf6",
"originHash" : "03fee4c85a76c55e4f3e95863e1921ee158154061a62a4737ea3bbb2b3b8bf58",
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
"revision" : "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
"version" : "510.0.3"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"),
.package(url: "https://github.com/apple/swift-syntax.git", from: "510.0.0"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct PublicMemberwiseInitializerMacro: MemberMacro {
}
let variableDeclarations = declaration.memberBlock.members.compactMap({ $0.decl.as(VariableDeclSyntax.self) })
let rows = try variableDeclarations.flatMap { declaration in
try (declaration.bindings.as(PatternBindingListSyntax.self)?.compactMap { patternBinding -> (IdentifierPatternSyntax, TypeSyntax?)? in
try (declaration.bindings.compactMap { patternBinding -> (IdentifierPatternSyntax, TypeSyntax?)? in
guard patternBinding.accessorBlock == nil && patternBinding.initializer == nil else {
return nil // Ignore computed properties
}
Expand All @@ -27,7 +27,7 @@ public struct PublicMemberwiseInitializerMacro: MemberMacro {
return (identifier, patternBinding.typeAnnotation?.type)
}
return nil
} ?? []
}
)
.reversed()
// Backfill any ommited types
Expand Down

0 comments on commit fcab291

Please sign in to comment.