diff --git a/js/js.libraries/src/core/dom.kt b/js/js.libraries/src/core/dom.kt index 6930eea617d..a6600897ad9 100644 --- a/js/js.libraries/src/core/dom.kt +++ b/js/js.libraries/src/core/dom.kt @@ -136,9 +136,9 @@ native public trait Element: Node { public val tagName: String public fun getAttribute(arg1: String?): String = js.noImpl public fun setAttribute(arg1: String?, arg2: String?): Unit = js.noImpl + public fun removeAttribute(arg1: String?): Unit = js.noImpl public fun getElementsByTagName(arg1: String?): NodeList = js.noImpl public fun getElementsByTagNameNS(arg1: String?, arg2: String?): NodeList = js.noImpl - public fun removeAttribute(arg1: String?): Unit = js.noImpl public fun getAttributeNode(arg1: String?): Attr = js.noImpl public fun removeAttributeNode(arg1: Attr): Attr = js.noImpl public fun getAttributeNS(arg1: String?, arg2: String?): String = js.noImpl @@ -221,7 +221,7 @@ native public trait Node { public fun lookupNamespaceURI(arg1: String?): String = js.noImpl public fun isEqualNode(arg1: Node): Boolean = js.noImpl - public class object { + class object { public val ELEMENT_NODE: Short = 1 public val ATTRIBUTE_NODE: Short = 2 public val TEXT_NODE: Short = 3 diff --git a/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt index aa7cc45dd9c..c5794f3a888 100644 --- a/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun Array.reduceRight(operation: (T, T) -> T): T = reverse( */ public inline fun Array.groupBy(toKey: (T) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun Array.groupByTo(result: Map>, toKey: (T) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun Array.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt index 884b0654750..d8da94ea2fe 100644 --- a/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/BooleanArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun BooleanArray.reduceRight(operation: (Boolean, Boolean) -> Bool */ public inline fun BooleanArray.groupBy(toKey: (Boolean) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun BooleanArray.groupByTo(result: Map>, toKey: (Boolean) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun BooleanArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt index ed6c87d76d8..cdcac6bdbcc 100644 --- a/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ByteArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun ByteArray.reduceRight(operation: (Byte, Byte) -> Byte): Byte = */ public inline fun ByteArray.groupBy(toKey: (Byte) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun ByteArray.groupByTo(result: Map>, toKey: (Byte) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun ByteArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt index fa8fb1dbdf8..a3ff314a7c7 100644 --- a/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/CharArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun CharArray.reduceRight(operation: (Char, Char) -> Char): Char = */ public inline fun CharArray.groupBy(toKey: (Char) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun CharArray.groupByTo(result: Map>, toKey: (Char) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun CharArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt index 6c03f330ffe..a4b765a3306 100644 --- a/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/DoubleArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun DoubleArray.reduceRight(operation: (Double, Double) -> Double) */ public inline fun DoubleArray.groupBy(toKey: (Double) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun DoubleArray.groupByTo(result: Map>, toKey: (Double) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun DoubleArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt index 00ca183972e..d6f478ead8b 100644 --- a/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/FloatArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun FloatArray.reduceRight(operation: (Float, Float) -> Float): Fl */ public inline fun FloatArray.groupBy(toKey: (Float) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun FloatArray.groupByTo(result: Map>, toKey: (Float) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun FloatArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt index d3b4a25723c..a5d0957592f 100644 --- a/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/IntArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun IntArray.reduceRight(operation: (Int, Int) -> Int): Int = reve */ public inline fun IntArray.groupBy(toKey: (Int) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun IntArray.groupByTo(result: Map>, toKey: (Int) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun IntArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt b/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt index 7591b57acbd..cade276358b 100644 --- a/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/JUtilIteratorsFromJLangIterables.kt @@ -182,27 +182,21 @@ public inline fun java.util.Iterator.reduceRight(operation: (T, T) -> T): */ public inline fun java.util.Iterator.groupBy(toKey: (T) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun java.util.Iterator.groupByTo(result: Map>, toKey: (T) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun java.util.Iterator.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt index 54e9b5177d8..678788b6f27 100644 --- a/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/LongArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun LongArray.reduceRight(operation: (Long, Long) -> Long): Long = */ public inline fun LongArray.groupBy(toKey: (Long) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun LongArray.groupByTo(result: Map>, toKey: (Long) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun LongArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt b/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt index bb55738749c..cc0a7fbee6f 100644 --- a/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/ShortArraysFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun ShortArray.reduceRight(operation: (Short, Short) -> Short): Sh */ public inline fun ShortArray.groupBy(toKey: (Short) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun ShortArray.groupByTo(result: Map>, toKey: (Short) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun ShortArray.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder() diff --git a/libraries/stdlib/src/generated/StandardFromJLangIterables.kt b/libraries/stdlib/src/generated/StandardFromJLangIterables.kt index e1381a366ce..55e914b893e 100644 --- a/libraries/stdlib/src/generated/StandardFromJLangIterables.kt +++ b/libraries/stdlib/src/generated/StandardFromJLangIterables.kt @@ -184,27 +184,21 @@ public inline fun Iterable.reduceRight(operation: (T, T) -> T): T = rever */ public inline fun Iterable.groupBy(toKey: (T) -> K) : Map> = groupByTo(HashMap>(), toKey) -/** - * Groups the elements in the collection into the given [[Map]] using the supplied *toKey* function to calculate the key to group the elements by - * - * @includeFunctionBody ../../test/CollectionTest.kt groupBy - */ public inline fun Iterable.groupByTo(result: Map>, toKey: (T) -> K) : Map> { for (element in this) { val key = toKey(element) val list = result.getOrPut(key) { ArrayList() } list.add(element) + + val some = key + val more = some + val onceMore = more + val again = println(more) } return result } /** - * Creates a string from all the elements separated using the *separator* and using the given *prefix* and *postfix* if supplied. - * - * If a collection could be huge you can specify a non-negative value of *limit* which will only show a subset of the collection then it will - * a special *truncated* separator (which defaults to "..." - * - * @includeFunctionBody ../../test/CollectionTest.kt makeString */ public inline fun Iterable.makeString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "..."): String { val buffer = StringBuilder()