Skip to content

Commit a3f1a14

Browse files
committed
Update swift-tools-version to 6.2 and swift-syntax to 602.0.0 and fix minor build issues
1 parent 9dce398 commit a3f1a14

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

Package.resolved

Lines changed: 4 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 6.2
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -11,7 +11,7 @@ let package = Package(
1111
.library(name: "Buildable", targets: ["Buildable"])
1212
],
1313
dependencies: [
14-
.package(url: "https://github.com/apple/swift-syntax.git", .upToNextMajor(from: "510.0.0")),
14+
.package(url: "https://github.com/apple/swift-syntax.git", .upToNextMajor(from: "602.0.0")),
1515
],
1616
targets: [
1717
.macro(

Sources/BuildableMacro/StructAndClass/Helper/ExtractMembers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Created by Alexander Schmutz on 03.07.23.
66
//
77

8+
import Foundation
89
import SwiftSyntax
910

1011
func extractMembersFrom(_ memberBlockItemList: MemberBlockItemListSyntax) -> [StructMember] {

Sources/BuildableMacro/StructAndClass/Helper/GetDefaultValueForType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private func closureCodeBlock(
6565
}
6666
}
6767

68-
private var mapping: [String: ExprSyntax] = [
68+
private let mapping: [String: ExprSyntax] = [
6969
"String": "\"\"",
7070
"Int": "0",
7171
"Int8": "0",

0 commit comments

Comments
 (0)