Skip to content

Commit 0c1f86c

Browse files
Reorder Implementation properties into logical order
1 parent f0ae707 commit 0c1f86c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Sources/EvolutionMetadataExtraction/Extractors/FieldExtractors/ImplementationExtractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct ImplementationExtractor: MarkupWalker, ValueExtractor {
7979
return
8080
}
8181

82-
let newValue = Proposal.Implementation(account: account, id: implID, repository: repository, type: type)
82+
let newValue = Proposal.Implementation(account: account, repository: repository, type: type, id: implID)
8383
_implementaton.append(newValue)
8484
}
8585
}

Sources/EvolutionMetadataModel/Proposal+Implementation.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@
88
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
99

1010
extension Proposal {
11+
12+
/// Type of implementation code details .
1113
public struct Implementation: Sendable, Equatable, Codable {
1214
public let account: String
13-
public let id: String
1415
public let repository: String
1516
public let type: String
17+
public let id: String
1618

17-
public init(account: String, id: String, repository: String, type: String) {
19+
public init(account: String, repository: String, type: String, id: String) {
1820
self.account = account
19-
self.id = id
2021
self.repository = repository
2122
self.type = type
23+
self.id = id
2224
}
2325
}
2426
}

0 commit comments

Comments
 (0)