2
2
//
3
3
// This source file is part of the Swift Package Collection Generator open source project
4
4
//
5
- // Copyright (c) 2020 Apple Inc. and the Swift Package Collection Generator project authors
5
+ // Copyright (c) 2020-2021 Apple Inc. and the Swift Package Collection Generator project authors
6
6
// Licensed under Apache License v2.0
7
7
//
8
8
// See LICENSE.txt for license information
12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- import PackageCollections
15
+ import PackageCollectionsModel
16
16
17
- extension JSONPackageCollectionModel . V1 . Collection : CustomStringConvertible {
17
+ extension PackageCollectionModel . V1 . Collection : CustomStringConvertible {
18
18
public var description : String {
19
19
"""
20
20
Collection {
@@ -31,13 +31,13 @@ extension JSONPackageCollectionModel.V1.Collection: CustomStringConvertible {
31
31
}
32
32
}
33
33
34
- extension JSONPackageCollectionModel . V1 . Collection . Author : CustomStringConvertible {
34
+ extension PackageCollectionModel . V1 . Collection . Author : CustomStringConvertible {
35
35
public var description : String {
36
36
self . name
37
37
}
38
38
}
39
39
40
- extension JSONPackageCollectionModel . V1 . Collection . Package : CustomStringConvertible {
40
+ extension PackageCollectionModel . V1 . Collection . Package : CustomStringConvertible {
41
41
public var description : String {
42
42
"""
43
43
Package {
@@ -52,7 +52,7 @@ extension JSONPackageCollectionModel.V1.Collection.Package: CustomStringConverti
52
52
}
53
53
}
54
54
55
- extension JSONPackageCollectionModel . V1 . Collection . Package . Version : CustomStringConvertible {
55
+ extension PackageCollectionModel . V1 . Collection . Package . Version : CustomStringConvertible {
56
56
public var description : String {
57
57
"""
58
58
Version {
@@ -69,7 +69,7 @@ extension JSONPackageCollectionModel.V1.Collection.Package.Version: CustomString
69
69
}
70
70
}
71
71
72
- extension JSONPackageCollectionModel . V1 . Target : CustomStringConvertible {
72
+ extension PackageCollectionModel . V1 . Target : CustomStringConvertible {
73
73
public var description : String {
74
74
"""
75
75
Target(
@@ -80,7 +80,7 @@ extension JSONPackageCollectionModel.V1.Target: CustomStringConvertible {
80
80
}
81
81
}
82
82
83
- extension JSONPackageCollectionModel . V1 . Product : CustomStringConvertible {
83
+ extension PackageCollectionModel . V1 . Product : CustomStringConvertible {
84
84
public var description : String {
85
85
"""
86
86
Product(
@@ -92,25 +92,25 @@ extension JSONPackageCollectionModel.V1.Product: CustomStringConvertible {
92
92
}
93
93
}
94
94
95
- extension JSONPackageCollectionModel . V1 . PlatformVersion : CustomStringConvertible {
95
+ extension PackageCollectionModel . V1 . PlatformVersion : CustomStringConvertible {
96
96
public var description : String {
97
97
" \( self . name) ( \( self . version) ) "
98
98
}
99
99
}
100
100
101
- extension JSONPackageCollectionModel . V1 . Compatibility : CustomStringConvertible {
101
+ extension PackageCollectionModel . V1 . Compatibility : CustomStringConvertible {
102
102
public var description : String {
103
103
" ( \( self . platform) , \( self . swiftVersion) ) "
104
104
}
105
105
}
106
106
107
- extension JSONPackageCollectionModel . V1 . Platform : CustomStringConvertible {
107
+ extension PackageCollectionModel . V1 . Platform : CustomStringConvertible {
108
108
public var description : String {
109
109
self . name
110
110
}
111
111
}
112
112
113
- extension JSONPackageCollectionModel . V1 . License : CustomStringConvertible {
113
+ extension PackageCollectionModel . V1 . License : CustomStringConvertible {
114
114
public var description : String {
115
115
" License( \( self . url) \( self . name. map { " , \( $0) " } ?? " " ) ) "
116
116
}
0 commit comments