Prettify kdocs and exception messages in the generated code.

This commit is contained in:
Ilya Gorbunov
2015-05-27 18:21:17 +03:00
parent fe49a2ee51
commit ae60f7a32f
28 changed files with 1523 additions and 1522 deletions
+45 -45
View File
@@ -11,7 +11,7 @@ import java.util.*
import java.util.Collections // TODO: it's temporary while we have java.util.Collections in js
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun <T> Array<out T>.asIterable(): Iterable<T> {
return object : Iterable<T> {
@@ -20,7 +20,7 @@ public fun <T> Array<out T>.asIterable(): Iterable<T> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun BooleanArray.asIterable(): Iterable<Boolean> {
return object : Iterable<Boolean> {
@@ -29,7 +29,7 @@ public fun BooleanArray.asIterable(): Iterable<Boolean> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun ByteArray.asIterable(): Iterable<Byte> {
return object : Iterable<Byte> {
@@ -38,7 +38,7 @@ public fun ByteArray.asIterable(): Iterable<Byte> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun CharArray.asIterable(): Iterable<Char> {
return object : Iterable<Char> {
@@ -47,7 +47,7 @@ public fun CharArray.asIterable(): Iterable<Char> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun DoubleArray.asIterable(): Iterable<Double> {
return object : Iterable<Double> {
@@ -56,7 +56,7 @@ public fun DoubleArray.asIterable(): Iterable<Double> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun FloatArray.asIterable(): Iterable<Float> {
return object : Iterable<Float> {
@@ -65,7 +65,7 @@ public fun FloatArray.asIterable(): Iterable<Float> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun IntArray.asIterable(): Iterable<Int> {
return object : Iterable<Int> {
@@ -74,7 +74,7 @@ public fun IntArray.asIterable(): Iterable<Int> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun LongArray.asIterable(): Iterable<Long> {
return object : Iterable<Long> {
@@ -83,7 +83,7 @@ public fun LongArray.asIterable(): Iterable<Long> {
}
/**
* Returns the Iterable that wraps the original array
* Returns the Iterable that wraps the original array.
*/
public fun ShortArray.asIterable(): Iterable<Short> {
return object : Iterable<Short> {
@@ -92,235 +92,235 @@ public fun ShortArray.asIterable(): Iterable<Short> {
}
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val <T> Array<out T>.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val BooleanArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val ByteArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val CharArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val DoubleArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val FloatArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val IntArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val LongArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns the range of valid indices for the array
* Returns the range of valid indices for the array.
*/
public val ShortArray.indices: IntRange
get() = IntRange(0, lastIndex)
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun <T> Array<out T>.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun BooleanArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun ByteArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun CharArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun DoubleArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun FloatArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun IntArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun LongArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is empty
* Returns `true` if the array is empty.
*/
public fun ShortArray.isEmpty(): Boolean {
return size() == 0
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun <T> Array<out T>.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun BooleanArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun ByteArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun CharArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun DoubleArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun FloatArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun IntArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun LongArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns true if the array is not empty
* Returns `true` if the array is not empty.
*/
public fun ShortArray.isNotEmpty(): Boolean {
return !isEmpty()
}
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val <T> Array<out T>.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val BooleanArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val ByteArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val CharArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val DoubleArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val FloatArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val IntArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val LongArray.lastIndex: Int
get() = size() - 1
/**
* Returns the last valid index for the array
* Returns the last valid index for the array.
*/
public val ShortArray.lastIndex: Int
get() = size() - 1