Skip to content

Adopt Sendability in Remaining Models #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/IndexStoreDB/IndexDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@_implementationOnly import IndexStoreDB_CIndexStoreDB

public struct StoreUnitInfo {
public struct StoreUnitInfo: Sendable {
public let mainFilePath: String
public let unitName: String
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/IndexStoreDB/IndexStoreDB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Bionic
import Darwin.POSIX
#endif

public struct PathMapping: Equatable {
public struct PathMapping: Equatable, Sendable {
/// Path prefix to be replaced, typically the canonical or hermetic path.
public let original: String

Expand Down
2 changes: 1 addition & 1 deletion Sources/IndexStoreDB/IndexStoreDBError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import IndexStoreDB_CIndexStoreDB

import Foundation

public enum IndexStoreDBError: Error {
public enum IndexStoreDBError: Error, Sendable {
case create(String)
case loadIndexStore(String)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/IndexStoreDB/SymbolOccurrence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@_implementationOnly
import IndexStoreDB_CIndexStoreDB

public struct SymbolOccurrence: Equatable {
public struct SymbolOccurrence: Equatable, Sendable {
public var symbol: Symbol
public var location: SymbolLocation
public var roles: SymbolRole
Expand Down Expand Up @@ -48,7 +48,7 @@ extension SymbolOccurrence: CustomStringConvertible {
}
}

public struct SymbolRelation: Equatable {
public struct SymbolRelation: Equatable, Sendable {
public var symbol: Symbol
public var roles: SymbolRole

Expand Down