Skip to content

Commit b15d289

Browse files
authored
Merge pull request #4 from luppoalberto111/main
Updated iOS target for SwiftMacros for minimum iOS13
2 parents 8c82ef2 + 5a87f20 commit b15d289

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Package.resolved

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

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import CompilerPluginSupport
77
let package = Package(
88
name: "SwiftMacros",
99
platforms: [
10-
.macOS(.v12)
10+
.macOS(.v12),
11+
.iOS(.v13),
1112
],
1213
products: [
1314
.library(
@@ -18,7 +19,7 @@ let package = Package(
1819
)
1920
],
2021
dependencies: [
21-
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.0")
22+
.package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"603.0.0")
2223
],
2324
targets: [
2425
.macro(

Sources/Macros/AssociatedValues/AssociatedValuesMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ struct AssociatedValuesMacro: MemberMacro {
66
static func expansion(
77
of node: AttributeSyntax,
88
providingMembersOf declaration: some DeclGroupSyntax,
9+
conformingTo _: [TypeSyntax],
910
in context: some MacroExpansionContext
1011
) throws -> [DeclSyntax] {
1112
guard let enumDecl = declaration.as(EnumDeclSyntax.self) else {

Sources/Macros/Singleton/SingletonMacro.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ struct SingletonMacro: MemberMacro {
66
static func expansion(
77
of node: AttributeSyntax,
88
providingMembersOf declaration: some DeclGroupSyntax,
9+
conformingTo _: [TypeSyntax],
910
in context: some MacroExpansionContext
1011
) throws -> [DeclSyntax] {
1112
guard [SwiftSyntax.SyntaxKind.classDecl, .structDecl].contains(declaration.kind) else {

0 commit comments

Comments
 (0)