Include property type to KProperty.toString

This commit is contained in:
Alexander Udalov
2015-08-24 17:43:27 +03:00
parent d36ef90dd6
commit ea8fe56704
5 changed files with 16 additions and 10 deletions
@@ -56,11 +56,14 @@ object ReflectionObjectRenderer {
}
}
// TODO: include visibility, return type
// TODO: include visibility
fun renderProperty(descriptor: PropertyDescriptor): String {
return StringBuilder {
append(if (descriptor.isVar) "var " else "val ")
appendReceiversAndName(descriptor)
append(": ")
append(renderType(descriptor.type))
}.toString()
}