Skip to content

Commit

Permalink
Conform Identifier to Sendable
Browse files Browse the repository at this point in the history
This isn't explicitly needed for this problem but it seems as though
the default for all types that can conform to Sendable should

This also sets up this new type for Swift 6.0 (and the current Swift 5.10)
to pass this type around safely when needed
  • Loading branch information
adammcarter committed Mar 28, 2024
1 parent f24cf8c commit 7d0faac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftSyntax/Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import Foundation

/// An abstraction for sanitized values on a token.
public struct Identifier: Equatable {
public struct Identifier: Equatable, Sendable {
/// The sanitized `text` of a token.
public let name: String

Expand Down

0 comments on commit 7d0faac

Please sign in to comment.