Inline-only in generated code

This commit is contained in:
Ilya Gorbunov
2016-01-27 21:27:54 +03:00
parent 8c0008aa2e
commit c7bd70732c
16 changed files with 350 additions and 175 deletions
@@ -6,6 +6,7 @@ fun arrays(): List<GenericFunction> {
val templates = arrayListOf<GenericFunction>()
templates add f("isEmpty()") {
inline(Inline.Only)
only(ArraysOfObjects, ArraysOfPrimitives)
doc { "Returns `true` if the array is empty." }
returns("Boolean")
@@ -15,6 +16,7 @@ fun arrays(): List<GenericFunction> {
}
templates add f("isNotEmpty()") {
inline(Inline.Only)
only(ArraysOfObjects, ArraysOfPrimitives)
doc { "Returns `true` if the array is not empty." }
returns("Boolean")