├── .gitignore ├── LICENSE ├── README.md ├── bin └── swift-json-gen ├── example ├── Blog+JsonGen.swift └── Blog.swift ├── lib ├── Extensions.js ├── Extensions.js.map ├── JsonGen.js ├── JsonGen.js.map ├── SwiftAst.js ├── SwiftAst.js.map ├── SwiftPrinter.js └── SwiftPrinter.js.map ├── package.json ├── src ├── Extensions.ts ├── JsonGen.ts ├── SwiftAst.ts ├── SwiftPrinter.ts └── node.d.ts ├── tests ├── Test01+Extensions.swift ├── Test01.swift ├── Test02.swift ├── Test03.swift ├── Test04.swift ├── Test05.swift ├── Test06a.swift ├── Test06b.swift ├── Test07.swift ├── Test08.swift ├── Test09.swift ├── Test10.swift ├── Test11_nested_enums.swift ├── Test12_empty_struct.swift ├── Test13_struct_in_extension.swift ├── Test14_generate_init.swift ├── Test15_keywords.swift └── Test16_inits.swift └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/README.md -------------------------------------------------------------------------------- /bin/swift-json-gen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/bin/swift-json-gen -------------------------------------------------------------------------------- /example/Blog+JsonGen.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/example/Blog+JsonGen.swift -------------------------------------------------------------------------------- /example/Blog.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/example/Blog.swift -------------------------------------------------------------------------------- /lib/Extensions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/Extensions.js -------------------------------------------------------------------------------- /lib/Extensions.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/Extensions.js.map -------------------------------------------------------------------------------- /lib/JsonGen.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/JsonGen.js -------------------------------------------------------------------------------- /lib/JsonGen.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/JsonGen.js.map -------------------------------------------------------------------------------- /lib/SwiftAst.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/SwiftAst.js -------------------------------------------------------------------------------- /lib/SwiftAst.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/SwiftAst.js.map -------------------------------------------------------------------------------- /lib/SwiftPrinter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/SwiftPrinter.js -------------------------------------------------------------------------------- /lib/SwiftPrinter.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/lib/SwiftPrinter.js.map -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/package.json -------------------------------------------------------------------------------- /src/Extensions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/src/Extensions.ts -------------------------------------------------------------------------------- /src/JsonGen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/src/JsonGen.ts -------------------------------------------------------------------------------- /src/SwiftAst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/src/SwiftAst.ts -------------------------------------------------------------------------------- /src/SwiftPrinter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/src/SwiftPrinter.ts -------------------------------------------------------------------------------- /src/node.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/src/node.d.ts -------------------------------------------------------------------------------- /tests/Test01+Extensions.swift: -------------------------------------------------------------------------------- 1 | struct TestExtension { 2 | } -------------------------------------------------------------------------------- /tests/Test01.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test01.swift -------------------------------------------------------------------------------- /tests/Test02.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test02.swift -------------------------------------------------------------------------------- /tests/Test03.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test03.swift -------------------------------------------------------------------------------- /tests/Test04.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test04.swift -------------------------------------------------------------------------------- /tests/Test05.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test05.swift -------------------------------------------------------------------------------- /tests/Test06a.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test06a.swift -------------------------------------------------------------------------------- /tests/Test06b.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test06b.swift -------------------------------------------------------------------------------- /tests/Test07.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test07.swift -------------------------------------------------------------------------------- /tests/Test08.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test08.swift -------------------------------------------------------------------------------- /tests/Test09.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test09.swift -------------------------------------------------------------------------------- /tests/Test10.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test10.swift -------------------------------------------------------------------------------- /tests/Test11_nested_enums.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test11_nested_enums.swift -------------------------------------------------------------------------------- /tests/Test12_empty_struct.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test12_empty_struct.swift -------------------------------------------------------------------------------- /tests/Test13_struct_in_extension.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test13_struct_in_extension.swift -------------------------------------------------------------------------------- /tests/Test14_generate_init.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test14_generate_init.swift -------------------------------------------------------------------------------- /tests/Test15_keywords.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test15_keywords.swift -------------------------------------------------------------------------------- /tests/Test16_inits.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tests/Test16_inits.swift -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tomlokhorst/swift-json-gen/HEAD/tsconfig.json --------------------------------------------------------------------------------