Files
swift-mirror/test/refactoring/AddCodableImplementation/Outputs/empty/codable.swift.expected
Louis D'hauwe 5d36507a2f [Refactoring] Add Codable refactoring action
Inserts the synthesized implementation.
As part of this, fix some ASTPrinter bugs.

rdar://87904700
2022-02-02 14:14:23 -08:00

16 lines
240 B
Plaintext

struct User: Codable {
enum CodingKeys: CodingKey {
}
init(from decoder: Decoder) throws {
}
func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: User.CodingKeys.self)
}
}