File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
ExplicitModuleBuilds/InterModuleDependencies Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public struct ModuleInfo: Codable {
167
167
public var modulePath : TextualVirtualPath
168
168
169
169
/// The source files used to build this module.
170
- public var sourceFiles : [ TextualVirtualPath ] ?
170
+ public var sourceFiles : [ String ] ?
171
171
172
172
/// The set of direct module dependencies of this module.
173
173
public var directDependencies : [ ModuleDependencyId ] ?
@@ -193,7 +193,7 @@ public struct ModuleInfo: Codable {
193
193
}
194
194
195
195
public init ( modulePath: TextualVirtualPath ,
196
- sourceFiles: [ TextualVirtualPath ] ? ,
196
+ sourceFiles: [ String ] ? ,
197
197
directDependencies: [ ModuleDependencyId ] ? ,
198
198
details: Details ) {
199
199
self . modulePath = modulePath
Original file line number Diff line number Diff line change @@ -89,11 +89,9 @@ private extension SwiftScan {
89
89
// Decode module path and source file locations
90
90
let modulePathStr = try toSwiftString ( api. swiftscan_module_info_get_module_path ( moduleInfoRef) )
91
91
let modulePath = TextualVirtualPath ( path: try VirtualPath ( path: modulePathStr) )
92
- let sourceFiles : [ TextualVirtualPath ] ?
92
+ let sourceFiles : [ String ] ?
93
93
if let sourceFilesSetRef = api. swiftscan_module_info_get_source_files ( moduleInfoRef) {
94
- sourceFiles = try toSwiftStringArray ( sourceFilesSetRef. pointee) . map {
95
- TextualVirtualPath ( path: try VirtualPath ( path: $0) )
96
- }
94
+ sourceFiles = try toSwiftStringArray ( sourceFilesSetRef. pointee)
97
95
} else {
98
96
sourceFiles = nil
99
97
}
You can’t perform that action at this time.
0 commit comments