@@ -86,7 +86,7 @@ extension ModuleDependencyId: Codable {
86
86
}
87
87
88
88
/// Bridging header
89
- public struct BridgingHeader : Codable {
89
+ public struct BridgingHeader : Codable , Hashable {
90
90
var path : TextualVirtualPath
91
91
/// The source files referenced by the bridging header.
92
92
var sourceFiles : [ TextualVirtualPath ]
@@ -95,7 +95,7 @@ public struct BridgingHeader: Codable {
95
95
}
96
96
97
97
/// Details specific to Swift modules.
98
- public struct SwiftModuleDetails : Codable {
98
+ public struct SwiftModuleDetails : Codable , Hashable {
99
99
/// The module interface from which this module was built, if any.
100
100
public var moduleInterfacePath : TextualVirtualPath ?
101
101
@@ -141,7 +141,7 @@ public struct SwiftModuleDetails: Codable {
141
141
}
142
142
143
143
/// Details specific to Swift placeholder dependencies.
144
- public struct SwiftPlaceholderModuleDetails : Codable {
144
+ public struct SwiftPlaceholderModuleDetails : Codable , Hashable {
145
145
/// The path to the .swiftModuleDoc file.
146
146
var moduleDocPath : TextualVirtualPath ?
147
147
@@ -150,7 +150,7 @@ public struct SwiftPlaceholderModuleDetails: Codable {
150
150
}
151
151
152
152
/// Details specific to Swift externally-pre-built modules.
153
- public struct SwiftPrebuiltExternalModuleDetails : Codable {
153
+ public struct SwiftPrebuiltExternalModuleDetails : Codable , Hashable {
154
154
/// The path to the already-compiled module that must be used instead of
155
155
/// generating a job to build this module.
156
156
public var compiledModulePath : TextualVirtualPath
@@ -185,7 +185,7 @@ public struct SwiftPrebuiltExternalModuleDetails: Codable {
185
185
}
186
186
187
187
/// Details specific to Clang modules.
188
- public struct ClangModuleDetails : Codable {
188
+ public struct ClangModuleDetails : Codable , Hashable {
189
189
/// The path to the module map used to build this module.
190
190
public var moduleMapPath : TextualVirtualPath
191
191
@@ -215,7 +215,7 @@ public struct ClangModuleDetails: Codable {
215
215
}
216
216
}
217
217
218
- public struct ModuleInfo : Codable {
218
+ public struct ModuleInfo : Codable , Hashable {
219
219
/// The path for the module.
220
220
public var modulePath : TextualVirtualPath
221
221
@@ -229,7 +229,7 @@ public struct ModuleInfo: Codable {
229
229
public var details : Details
230
230
231
231
/// Specific details of a particular kind of module.
232
- public enum Details {
232
+ public enum Details : Hashable {
233
233
/// Swift modules may be built from a module interface, and may have
234
234
/// a bridging header.
235
235
case swift( SwiftModuleDetails )
0 commit comments