From 7e0f0a8059d302a4f699b48644d636d9550bfe83 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Tue, 23 Jul 2024 22:18:31 -0700 Subject: [PATCH] Adjustments to allow SourceKit-LSP to build in Swift 6 mode --- Sources/ISDBTestSupport/TibsTestWorkspace.swift | 2 +- Sources/IndexStoreDB/IndexStoreDB.swift | 2 +- Sources/IndexStoreDB/SymbolLocation.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ISDBTestSupport/TibsTestWorkspace.swift b/Sources/ISDBTestSupport/TibsTestWorkspace.swift index 43073733..6012adc5 100644 --- a/Sources/ISDBTestSupport/TibsTestWorkspace.swift +++ b/Sources/ISDBTestSupport/TibsTestWorkspace.swift @@ -304,7 +304,7 @@ extension XCTestCase { }() /// The path to the built products directory. - public static var productsDirectory: URL = { + public static let productsDirectory: URL = { #if os(macOS) return testBundle.bundleURL.deletingLastPathComponent() #else diff --git a/Sources/IndexStoreDB/IndexStoreDB.swift b/Sources/IndexStoreDB/IndexStoreDB.swift index bf9eb04e..98b19aec 100644 --- a/Sources/IndexStoreDB/IndexStoreDB.swift +++ b/Sources/IndexStoreDB/IndexStoreDB.swift @@ -38,7 +38,7 @@ public struct PathMapping { } } -public enum SymbolProviderKind { +public enum SymbolProviderKind: Sendable { case clang case swift diff --git a/Sources/IndexStoreDB/SymbolLocation.swift b/Sources/IndexStoreDB/SymbolLocation.swift index ca4f458e..7b03761a 100644 --- a/Sources/IndexStoreDB/SymbolLocation.swift +++ b/Sources/IndexStoreDB/SymbolLocation.swift @@ -14,7 +14,7 @@ import CIndexStoreDB import Foundation -public struct SymbolLocation: Equatable { +public struct SymbolLocation: Equatable, Sendable { public var path: String /// The date at which the unit file that contains a symbol has last been modified. public var timestamp: Date