File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ struct MetaSubtype {
50
50
let type = Type ( identifier: subtype. typeID ( ) )
51
51
. with ( accessLevel: . public)
52
52
. adding ( inheritedType: . codable)
53
+ . adding ( inheritedType: subtype. sendable ? . sendable : nil )
53
54
. adding ( inheritedType: . hashable)
54
55
55
56
switch subtype. items {
Original file line number Diff line number Diff line change @@ -757,6 +757,7 @@ extension Subtype: Codable {
757
757
case objc
758
758
case objcNoneCase
759
759
case platforms
760
+ case sendable
760
761
}
761
762
762
763
public init ( from decoder: Decoder ) throws {
@@ -765,6 +766,7 @@ extension Subtype: Codable {
765
766
name = try container. decode ( String . self, forKey: . name)
766
767
manualImplementations = Set ( try container. decodeIfPresent ( [ `Protocol` ] . self, forKey: . manualImplementations) ?? [ ] )
767
768
platforms = try container. decodeIfPresent ( Set< Platform> . self , forKey: . platforms) ?? DescriptionDefaults . platforms
769
+ sendable = try container. decodeIfPresent ( Bool . self, forKey: . sendable) ?? DescriptionDefaults . sendable
768
770
769
771
if let usedCases = try container. decodeIfPresent ( [ String ] . self, forKey: . cases) {
770
772
let unusedCases = try container. decodeIfPresent ( [ String ] . self, forKey: . unusedCases) ?? [ ]
Original file line number Diff line number Diff line change @@ -645,6 +645,8 @@ public struct Subtype: Equatable {
645
645
public let objc : Bool
646
646
647
647
public let platforms : Set < Platform >
648
+
649
+ public let sendable : Bool
648
650
}
649
651
650
652
// MARK: - Conversions
You can’t perform that action at this time.
0 commit comments