15
15
/// The raw values for these enumerations describe the default extension for
16
16
/// the file type.
17
17
public enum FileType : String , Hashable , CaseIterable , Codable {
18
- /// Swift source file.
18
+ /// Swift source file
19
19
case swift
20
20
21
21
/// (Canonical) SIL source file
@@ -27,34 +27,34 @@ public enum FileType: String, Hashable, CaseIterable, Codable {
27
27
/// AST dump
28
28
case ast
29
29
30
- /// An executable image.
30
+ /// An executable image
31
31
case image = " out "
32
32
33
- /// An object file.
33
+ /// An object file
34
34
case object = " o "
35
35
36
- /// A dSYM directory.
36
+ /// A dSYM directory
37
37
case dSYM
38
38
39
- /// A file containing make-style dependencies.
39
+ /// A file containing make-style dependencies
40
40
case dependencies = " d "
41
41
42
42
/// An autolink input file
43
43
case autolink
44
44
45
- /// A compiled Swift module file.
45
+ /// A compiled Swift module file
46
46
case swiftModule = " swiftmodule "
47
47
48
- /// Swift documentation for a module.
48
+ /// Swift documentation for a module
49
49
case swiftDocumentation = " swiftdoc "
50
50
51
- /// A textual Swift interface file.
51
+ /// A textual Swift interface file
52
52
case swiftInterface = " swiftinterface "
53
53
54
- /// An SPI Swift Interface file.
54
+ /// An SPI Swift Interface file
55
55
case privateSwiftInterface = " private.swiftinterface "
56
56
57
- /// Serialized source information.
57
+ /// Serialized source information
58
58
case swiftSourceInfoFile = " swiftsourceinfo "
59
59
60
60
/// Assembler source.
@@ -78,16 +78,19 @@ public enum FileType: String, Hashable, CaseIterable, Codable {
78
78
/// Objective-C header
79
79
case objcHeader = " h "
80
80
81
- /// Swift dependencies file.
81
+ /// Swift dependencies file
82
82
case swiftDeps = " swiftdeps "
83
83
84
+ /// Serialized dependency scanner state
85
+ case modDepCache = " moddepcache "
86
+
84
87
/// Remapping file
85
88
case remap
86
89
87
90
/// Imported modules.
88
91
case importedModules = " importedmodules "
89
92
90
- /// Text-based dylib (TBD) file.
93
+ /// Text-based dylib (TBD) file
91
94
case tbd
92
95
93
96
/// JSON-based Module Dependency Scanner output
@@ -102,27 +105,27 @@ public enum FileType: String, Hashable, CaseIterable, Codable {
102
105
/// JSON-based binary Swift module artifact description
103
106
case jsonSwiftArtifacts = " artifacts.json "
104
107
105
- /// Module trace file.
108
+ /// Module trace file
106
109
///
107
110
/// Module traces are used by Apple's internal build infrastructure. Apple
108
111
/// engineers can see more details on the "Swift module traces" page in the
109
112
/// Swift section of the internal wiki.
110
113
case moduleTrace = " trace.json "
111
114
112
- /// Indexing data directory.
115
+ /// Indexing data directory
113
116
///
114
- /// The extension isn't real.
117
+ /// The extension isn't real, rather this FileType specifies a directory path .
115
118
case indexData
116
119
117
120
/// Output path to record in the indexing data store
118
121
///
119
122
/// This is only needed for use as a key in the output file map.
120
123
case indexUnitOutputPath
121
124
122
- /// Optimization record.
125
+ /// Optimization record
123
126
case yamlOptimizationRecord = " opt.yaml "
124
127
125
- /// Bitstream optimization record.
128
+ /// Bitstream optimization record
126
129
case bitstreamOptimizationRecord = " opt.bitstream "
127
130
128
131
/// Clang compiler module file
@@ -169,6 +172,9 @@ extension FileType: CustomStringConvertible {
169
172
case . swiftDeps:
170
173
return " swift-dependencies "
171
174
175
+ case . modDepCache:
176
+ return " dependency-scanner-cache "
177
+
172
178
case . jsonDependencies:
173
179
return " json-dependencies "
174
180
@@ -218,7 +224,7 @@ extension FileType {
218
224
. swiftDeps, . moduleTrace, . tbd, . yamlOptimizationRecord, . bitstreamOptimizationRecord,
219
225
. swiftInterface, . privateSwiftInterface, . swiftSourceInfoFile, . jsonDependencies,
220
226
. clangModuleMap, . jsonTargetInfo, . jsonCompilerFeatures, . jsonSwiftArtifacts,
221
- . indexUnitOutputPath:
227
+ . indexUnitOutputPath, . modDepCache :
222
228
return false
223
229
}
224
230
}
@@ -289,6 +295,8 @@ extension FileType {
289
295
return " objc-header "
290
296
case . swiftDeps:
291
297
return " swift-dependencies "
298
+ case . modDepCache:
299
+ return " dependency-scanner-cache "
292
300
case . jsonDependencies:
293
301
return " json-dependencies "
294
302
case . jsonTargetInfo:
@@ -327,7 +335,7 @@ extension FileType {
327
335
case . image, . object, . dSYM, . pch, . sib, . raw_sib, . swiftModule,
328
336
. swiftDocumentation, . swiftSourceInfoFile, . llvmBitcode, . diagnostics,
329
337
. pcm, . swiftDeps, . remap, . indexData, . bitstreamOptimizationRecord,
330
- . indexUnitOutputPath:
338
+ . indexUnitOutputPath, . modDepCache :
331
339
return false
332
340
}
333
341
}
@@ -341,7 +349,7 @@ extension FileType {
341
349
case . swift, . sil, . sib, . ast, . image, . dSYM, . dependencies, . autolink,
342
350
. swiftModule, . swiftDocumentation, . swiftInterface, . privateSwiftInterface,
343
351
. swiftSourceInfoFile, . raw_sil, . raw_sib, . diagnostics, . objcHeader, . swiftDeps, . remap,
344
- . importedModules, . tbd, . moduleTrace, . indexData, . yamlOptimizationRecord,
352
+ . importedModules, . tbd, . moduleTrace, . indexData, . yamlOptimizationRecord, . modDepCache ,
345
353
. bitstreamOptimizationRecord, . pcm, . pch, . jsonDependencies, . clangModuleMap,
346
354
. jsonCompilerFeatures, . jsonTargetInfo, . jsonSwiftArtifacts, . indexUnitOutputPath:
347
355
return false
0 commit comments