Work in progress
Example:
arrayOf(1,2,3).toKotlin() == "arrayOf(1, 2, 3)"
arrayOf<Int>().toKotlin() == "arrayOf<Int>()"
Purpose of this is to create test doubles easily.
Uses generics reflection with reified
. Is extension function. Meant as development tool.
Arrays, Lists, Maps, Sets
- Data classes
- Functions
- Lambdas ( probably not possible without parsing all codebase )