Skip to content

Commit 02c9ff2

Browse files
committed
PackageModel: add doc comments for some types
1 parent 8e3c204 commit 02c9ff2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/PackageModel/Destination.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public struct Destination: Encodable, Equatable {
238238
}
239239
return _sdkPlatformFrameworkPath
240240
}
241+
241242
/// Cache storage for sdk platform path.
242243
private static var _sdkPlatformFrameworkPath: (fwk: AbsolutePath, lib: AbsolutePath)? = nil
243244

@@ -299,10 +300,12 @@ extension Destination {
299300
}
300301
}
301302

303+
/// Version of the schema of `destination.json` files used for cross-compilation.
302304
fileprivate struct VersionInfo: Codable {
303305
let version: Int
304306
}
305307

308+
/// Represents v1 schema of `destination.json` files used for cross-compilation.
306309
fileprivate struct DestinationInfoV1: Codable {
307310
let target: String?
308311
let sdk: AbsolutePath?
@@ -321,6 +324,7 @@ fileprivate struct DestinationInfoV1: Codable {
321324
}
322325
}
323326

327+
/// Represents v2 schema of `destination.json` files used for cross-compilation.
324328
fileprivate struct DestinationInfoV2: Codable {
325329
let sdkRootDir: String
326330
let toolchainBinDir: String

0 commit comments

Comments
 (0)