Skip to content

Commit

Permalink
Update SwiftSyntax to 0.50600.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed Mar 16, 2022
1 parent ca2712a commit b60cf2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
},
{
"package": "SwiftSyntax",
"repositoryURL": "https://github.com/apple/swift-syntax.git",
"repositoryURL": "https://github.com/apple/swift-syntax",
"state": {
"branch": null,
"revision": "cf40be70deaf4ce7d44eb1a7e14299c391e2363f",
"branch": "0.50600.0",
"revision": "0467d94e8123071e8e6c24039aadb405318f1838",
"version": null
}
},
Expand Down
10 changes: 6 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ private let addCryptoSwift = true
#endif

#if os(macOS)
private let staticSwiftSyntax = true
// TODO: Set back to true when a Swift 5.6 release of
// StaticInternalSwiftSyntaxParser is available
private let staticSwiftSyntax = false
#else
private let staticSwiftSyntax = false
#endif
Expand All @@ -22,8 +24,7 @@ let package = Package(
],
dependencies: [
.package(name: "swift-argument-parser", url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "1.0.3")),
.package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git",
.revision("cf40be70deaf4ce7d44eb1a7e14299c391e2363f")),
.package(url: "https://github.com/apple/swift-syntax.git", branch: "0.50600.0"),
.package(url: "https://github.com/jpsim/SourceKitten.git", from: "0.32.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "4.0.2"),
.package(url: "https://github.com/scottrhoyt/SwiftyTextTable.git", from: "0.9.0"),
Expand All @@ -41,7 +42,8 @@ let package = Package(
name: "SwiftLintFramework",
dependencies: [
.product(name: "SourceKittenFramework", package: "SourceKitten"),
"SwiftSyntax",
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxParser", package: "swift-syntax"),
"Yams",
]
+ (addCryptoSwift ? ["CryptoSwift"] : [])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation
import SourceKittenFramework
import SwiftSyntax
import SwiftSyntaxParser

private typealias FileCacheKey = UUID
private var responseCache = Cache({ file -> [String: SourceKitRepresentable]? in
Expand Down

0 comments on commit b60cf2d

Please sign in to comment.