PoC of a class-dumpy tool for Swift classes.
$ file test
test: Mach-O 64-bit executable x86_64
$ ./swift-dump.rb test
// Code generated from `test`
import Foundation
class Foo {
let i: Int = 0
var j: Int = 0
var k: Int { return 0 }
func add(Int, b : Int) -> String { return "" }
func bar() -> Int { return 0 }
func nothing() -> () {}
}
This is very limited right now, with no support for structs, generics or initializers.
Boris Bügling, [email protected]
Follow @NeoNacho to help me beat @orta in followers count.
swift-dump is available under the MIT license. See the LICENSE file for more info.