@@ -165,16 +165,16 @@ extension SourceLocation: CustomStringConvertible, CustomDebugStringConvertible
165
165
// MARK: - Codable
166
166
167
167
extension SourceLocation : Codable {
168
- private enum CodingKeys : String , CodingKey {
168
+ private enum _CodingKeys : String , CodingKey {
169
169
case fileID
170
170
case filePath
171
171
case _filePath
172
172
case line
173
173
case column
174
174
}
175
175
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)
178
178
try container. encode ( fileID, forKey: . fileID)
179
179
try container. encode ( line, forKey: . line)
180
180
try container. encode ( column, forKey: . column)
@@ -184,8 +184,8 @@ extension SourceLocation: Codable {
184
184
try container. encode ( filePath, forKey: . filePath)
185
185
}
186
186
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)
189
189
fileID = try container. decode ( String . self, forKey: . fileID)
190
190
line = try container. decode ( Int . self, forKey: . line)
191
191
column = try container. decode ( Int . self, forKey: . column)
0 commit comments