Sources
A grouping of related source files.
struct Sources
A grouping of related source files.
struct Sources
import PackageModel
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
init(from decoder: any Decoder) throws
init(paths: [AbsolutePath], root: AbsolutePath)
var containsCXXFiles: Bool { get }
Returns true if the sources contain C++ files.
var containsNonSwiftFiles: Bool { get }
var containsObjcFiles: Bool { get }
Returns true if the sources contain C++ files.
var paths: [AbsolutePath] { get }
The list of absolute paths of all files.
var relativePaths: [RelativePath]
The subpaths within the root.
let root: AbsolutePath
The root of the sources.