単純なstructにCodableを適用しただけのコードです。これをSwift4のコンパイラに食わせて-print-astで字句構文解析&型チェック後の抽象構文木をPretty-Printさせてみます。 internal struct Comic : Codable { internal let title: String internal let volume: Int internal init(title: String, volume: Int) private enum CodingKeys : CodingKey { case title case volume internal var stringValue: String { get } internal init?(stringValue: String) internal var intValue: Int? { ge