@@ -3,12 +3,12 @@ import Foundation
3
3
// MARK: - Symbol Protocol
4
4
5
5
/// Represents a Swift type or symbol
6
- public protocol Symbol {
6
+ public protocol Symbol : Sendable {
7
7
var children : [ Symbol ] { get }
8
8
}
9
9
10
10
/// Represent a Swift type that can inherit from or conform to other types
11
- public protocol InheritingSymbol {
11
+ public protocol InheritingSymbol : Sendable {
12
12
var name : String { get }
13
13
var inheritedTypes : [ String ] { get }
14
14
}
@@ -18,60 +18,60 @@ public protocol InheritingSymbol {
18
18
/// A swift protocol
19
19
public typealias ProtocolType = Protocol
20
20
21
- public struct Protocol : Symbol , InheritingSymbol {
21
+ public struct Protocol : Symbol , InheritingSymbol , Sendable {
22
22
public let name : String
23
23
public let children : [ Symbol ]
24
24
public let inheritedTypes : [ String ]
25
25
}
26
26
27
27
/// A swift class
28
- public struct Class : Symbol , InheritingSymbol {
28
+ public struct Class : Symbol , InheritingSymbol , Sendable {
29
29
public let name : String
30
30
public let children : [ Symbol ]
31
31
public let inheritedTypes : [ String ]
32
32
}
33
33
34
34
/// A swift actor
35
- public struct Actor : Symbol , InheritingSymbol {
35
+ public struct Actor : Symbol , InheritingSymbol , Sendable {
36
36
public let name : String
37
37
public let children : [ Symbol ]
38
38
public let inheritedTypes : [ String ]
39
39
}
40
40
41
41
/// A swift struct
42
- public struct Struct : Symbol , InheritingSymbol {
42
+ public struct Struct : Symbol , InheritingSymbol , Sendable {
43
43
public let name : String
44
44
public let children : [ Symbol ]
45
45
public let inheritedTypes : [ String ]
46
46
}
47
47
48
48
/// A swift enum
49
- public struct Enum : Symbol , InheritingSymbol {
49
+ public struct Enum : Symbol , InheritingSymbol , Sendable {
50
50
public let name : String
51
51
public let children : [ Symbol ]
52
52
public let inheritedTypes : [ String ]
53
53
}
54
54
55
55
/// A single case of a swift enum
56
- public struct EnumCase : Symbol {
56
+ public struct EnumCase : Symbol , Sendable {
57
57
public let children : [ Symbol ]
58
58
}
59
59
60
60
/// A single element of a swift enum case
61
- public struct EnumCaseElement : Symbol {
61
+ public struct EnumCaseElement : Symbol , Sendable {
62
62
public let name : String
63
63
public let children : [ Symbol ]
64
64
}
65
65
66
66
/// A swift typealias to an existing type
67
- public struct Typealias : Symbol {
67
+ public struct Typealias : Symbol , Sendable {
68
68
public let name : String
69
69
public let existingType : String
70
70
public let children : [ Symbol ] = [ ]
71
71
}
72
72
73
73
/// A swift extension
74
- public struct Extension : Symbol , InheritingSymbol {
74
+ public struct Extension : Symbol , InheritingSymbol , Sendable {
75
75
public let name : String
76
76
public let children : [ Symbol ]
77
77
public let inheritedTypes : [ String ]
0 commit comments