Generate JvmMultifileClass annotation on parts.

This commit is contained in:
Ilya Gorbunov
2015-09-16 21:24:34 +03:00
parent 2bc1fbab3f
commit 473698a7e8
7 changed files with 21 additions and 13 deletions
@@ -54,13 +54,7 @@ fun arrays(): List<GenericFunction> {
}
}
return templates
}
fun toPrimitiveArrays(): List<GenericFunction> =
PrimitiveType.values().map { primitive ->
templates addAll PrimitiveType.values().map { primitive ->
val arrayType = primitive.name + "Array"
f("to$arrayType()") {
only(ArraysOfObjects, Collections)
@@ -88,3 +82,6 @@ fun toPrimitiveArrays(): List<GenericFunction> =
}
}
}
return templates
}