Skip to content

Commit a331c6a

Browse files
committed
Fix typo
1 parent d5c4d5a commit a331c6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Testing/SourceAttribution/SourceLocation.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,16 @@ extension SourceLocation: CustomStringConvertible, CustomDebugStringConvertible
165165
// MARK: - Codable
166166

167167
extension SourceLocation: Codable {
168-
private enum CodingKeys: String, CodingKey {
168+
private enum _CodingKeys: String, CodingKey {
169169
case fileID
170170
case filePath
171171
case _filePath
172172
case line
173173
case column
174174
}
175175

176-
func encode(to encoder: any Encoder) throws {
177-
var container = encoder.container(keyedBy: CodingKeys.self)
176+
public func encode(to encoder: any Encoder) throws {
177+
var container = encoder.container(keyedBy: _CodingKeys.self)
178178
try container.encode(fileID, forKey: .fileID)
179179
try container.encode(line, forKey: .line)
180180
try container.encode(column, forKey: .column)
@@ -184,8 +184,8 @@ extension SourceLocation: Codable {
184184
try container.encode(filePath, forKey: .filePath)
185185
}
186186

187-
init(from decoder: any Decoder) throws {
188-
let container = try decoder.container(keyedBy: CodingKeys.self)
187+
public init(from decoder: any Decoder) throws {
188+
let container = try decoder.container(keyedBy: _CodingKeys.self)
189189
fileID = try container.decode(String.self, forKey: .fileID)
190190
line = try container.decode(Int.self, forKey: .line)
191191
column = try container.decode(Int.self, forKey: .column)

0 commit comments

Comments
 (0)