Skip to content

Commit

Permalink
Use SwiftSyntax 6
Browse files Browse the repository at this point in the history
  • Loading branch information
sidepelican committed Oct 22, 2024
1 parent dff67bf commit 64d2ca7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,4 @@ xcuserdata/
# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
Packages/
Package.pins
Package.resolved
.build/
23 changes: 23 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "swift-argument-parser",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser",
"state" : {
"revision" : "41982a3656a71c768319979febd796c6fd111d5c",
"version" : "1.5.0"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "0687f71944021d616d34d922343dcef086855920",
"version" : "600.0.1"
}
}
],
"version" : 2
}
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ let package = Package(
.library(name: "MockoloFramework", targets: ["MockoloFramework"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", from: "510.0.1"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"),
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.1"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
],
targets: [
.executableTarget(
Expand Down
4 changes: 2 additions & 2 deletions Sources/MockoloFramework/Parsers/SwiftSyntaxExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ extension FunctionDeclSyntax {
genericTypeParams: genericTypeParams,
genericWhereClause: genericWhereClause,
params: params,
throwsOrRethrows: self.signature.effectSpecifiers?.throwsSpecifier?.text,
throwsOrRethrows: self.signature.effectSpecifiers?.throwsClause?.throwsSpecifier.text,
asyncOrReasync: self.signature.effectSpecifiers?.asyncSpecifier?.text,
isStatic: isStatic,
offset: self.offset,
Expand Down Expand Up @@ -473,7 +473,7 @@ extension InitializerDeclSyntax {
genericTypeParams: genericTypeParams,
genericWhereClause: genericWhereClause,
params: params,
throwsOrRethrows: self.signature.effectSpecifiers?.throwsSpecifier?.text,
throwsOrRethrows: self.signature.effectSpecifiers?.throwsClause?.throwsSpecifier.text,
asyncOrReasync: self.signature.effectSpecifiers?.asyncSpecifier?.text,
isStatic: false,
offset: self.offset,
Expand Down

0 comments on commit 64d2ca7

Please sign in to comment.