Remove special case of generation for numeric and toPrimitiveArrays.

This commit is contained in:
Ilya Gorbunov
2015-07-24 05:00:13 +03:00
parent dd71cbb96e
commit 2f1c8a3dfa
4 changed files with 403 additions and 418 deletions
@@ -64,7 +64,7 @@ fun toPrimitiveArrays(): List<GenericFunction> =
val arrayType = primitive.name + "Array"
f("to$arrayType()") {
only(ArraysOfObjects, Collections)
only(primitive)
buildFamilies.forEach { family -> onlyPrimitives(family, primitive) }
doc(ArraysOfObjects) { "Returns an array of ${primitive.name} containing all of the elements of this generic array." }
doc(Collections) { "Returns an array of ${primitive.name} containing all of the elements of this collection." }
returns(arrayType)