Anton Bannykh
995ac7aac2
[JS IR BE]: make deleteProperty non-inline due to new inliner limitations
2018-10-18 14:24:05 +03:00
Alexander Udalov
f868964e25
Fix most unchecked/deprecation javac warnings in compiler modules
2018-10-17 18:39:49 +02:00
romanart
6a66663739
Update IR Runtime
2018-10-17 14:10:37 +03:00
Roman Elizarov
1a86411139
Removed todo from Continuation.context
...
The design decision was the we would not provide its default impl
2018-10-17 11:59:26 +03:00
Svyatoslav Kuzmich
5a057f8ca6
[JS IR BE] Support 'is Number' and 'is Comparable<>'
2018-10-14 23:53:03 +03:00
Svyatoslav Kuzmich
783f27c554
[JS IR BE] Support Number.to(Byte|Short|Int|Float|Double|Long)
2018-10-14 23:53:03 +03:00
Svyatoslav Kuzmich
bad9534abd
[JS IR BE] Support integer operation overflow
2018-10-14 23:53:02 +03:00
Nikolay Krasko
e3d930a6a1
Build maven-like stdlib sources artifacts during dist
...
This is needed to emulate gradle and maven like projects in plugin tests.
2018-10-12 18:50:04 +03:00
Ilya Gorbunov
27dc160aef
Rename Random companion object to Default
...
#KT-27508
2018-10-11 19:06:12 +03:00
Svyatoslav Kuzmich
7074909230
[JS IR BE] Support enumValues<T>() and enumValueOf<T>(name)
2018-10-10 19:35:17 +03:00
Svyatoslav Kuzmich
bdc3daf972
[JS IR BE] Support Enum::values
2018-10-10 19:35:17 +03:00
Pavel Punegov
f543170998
Increase tolerance for Float asin test
2018-10-10 19:05:44 +03:00
Sergey Bogolepov
2f1f32bbf4
Replace random val in companion object with top level val
2018-10-10 19:04:55 +03:00
Svyatoslav Kuzmich
c7bde6a5e6
[JS IR BE] Fix runtime compareTo(Number, Long)
2018-10-10 17:27:36 +03:00
Ilya Gorbunov
d6beddaac5
Document the requirement for 'minus(elements)' to have stable hashCode
...
#KT-24536
2018-10-01 18:09:09 +03:00
Ilya Gorbunov
27beadad18
Summary for new packages: kotlin.coroutines, kotlin.contracts, kotlin.random
2018-10-01 18:03:28 +03:00
Ilya Gorbunov
08822ff14b
Document that lines and lineSequence do not preserve line separators
2018-10-01 18:03:23 +03:00
Ilya Gorbunov
9f9033870c
Add a note about non-atomic behavior of MutableMap.getOrPut
...
#KT-13821
2018-10-01 18:03:23 +03:00
Ilya Gorbunov
bb9e9ac1ee
Seeded random docs: add a note about repeatability not being preserved
...
We're not ready to give a guarantee that the seeded generator
implementation will never change in future versions.
2018-10-01 18:03:23 +03:00
Alexander Udalov
55c8b35eee
Remove unneeded default imports in stdlib and tests
2018-10-01 13:39:02 +02:00
Svyatoslav Kuzmich
334c776b92
[JS IR BE] Fix @DoNotIntrinsify processing. Reuse it for compareTo
2018-09-28 20:27:01 +03:00
Ilya Gorbunov
12a31637d1
Improve groupingBy samples
2018-09-28 19:59:30 +03:00
Ilya Gorbunov
3a40e3f041
Move groupingByEachCount together with the new Grouping samples
2018-09-28 19:51:07 +03:00
Itsuki Aoyagi
039d41679e
Add samples for groupingBy operations
2018-09-28 19:51:07 +03:00
Ilya Gorbunov
0c81e30d46
Make a more correct implementation of unsigned arrays copyInto
...
Return the destination array instead of the destination storage array
wrapped in a new unsigned array. The difference should be
indistinguishable, however in JS, where inline classes are not inlined yet,
it had resulted in an extra wrapper.
2018-09-26 22:57:14 +03:00
ymnder
1a20b1f357
Add sample for 'repeat' function
...
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-09-26 22:39:56 +03:00
shiraji
0c97d99d77
KT-20357 Add sample code for Regex.find
...
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-09-26 22:24:53 +03:00
takattata
f06ea6fddd
KT-20357 Add sample code for Char extensions
2018-09-26 21:58:50 +03:00
Takayuki Matsubara
d26c0f777b
KT-20357 Add samples for Map.containsValue
...
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-09-26 21:03:57 +03:00
Keita Watanabe
12ec4fdce0
KT-20357 Add sample for mutableSet function
2018-09-26 20:44:40 +03:00
Ilya Gorbunov
df6ccbca49
KT-20357 Add samples for elementAtOrElse
...
Move samples to Elements nested class.
2018-09-26 20:44:40 +03:00
Takayuki Matsubara
7d5efe7f51
KT-20357 Add samples for elementAtOrNull
2018-09-26 20:44:40 +03:00
Takayuki Matsubara
ad9b700ec4
KT-20357 Add samples for elementAt
2018-09-26 20:44:40 +03:00
Ilya Gorbunov
7b66a4d295
Remove links to contract samples as these samples are not supported by Dokka
2018-09-26 18:15:52 +03:00
Ilya Gorbunov
b2b23ac282
Improve contract API documentation
2018-09-26 18:15:52 +03:00
Ilya Gorbunov
f2a51f96a5
Improve documentation of experimental annotations
2018-09-26 18:15:52 +03:00
Yuki Miida
af1fc5b668
Add sample for orEmpty method
2018-09-26 05:54:40 +03:00
Svyatoslav Kuzmich
b79dcbe8e6
[JS IR BE] Refactor equals and compareTo lowering
2018-09-24 18:21:57 +03:00
Ilya Gorbunov
974837654e
Remove workaround for complex default value in Array.copyInto
...
#KT-22818
2018-09-22 18:24:00 +03:00
Anton Bannykh
8e347f9f39
[JS IR BE] lateinit support
...
* Functions with IrExpressionBody are lowered to IrBlockBody
* Implemented throwUninitializedPropertyAccessException function
2018-09-21 18:20:11 +03:00
Anton Bannykh
beaf6df8c5
[JS IR BE] support CharSequence and String methods
2018-09-21 18:16:03 +03:00
Ilya Gorbunov
1d7ee22bdc
Simplify comparisons for small unsigned types that can fit in Int
...
UByte and UShort can be extended to Int exactly and then compared as ints
2018-09-18 22:25:36 +03:00
Ilya Gorbunov
af29dced98
Make overridden compareTo in unsigned types inline only
2018-09-18 22:25:36 +03:00
Ilya Gorbunov
9e0708e85a
Make most of unsigned operations inline only
2018-09-18 22:25:36 +03:00
Ilya Gorbunov
d793221a7b
Extract unsigned type related extensions to separate classes
...
- Rename class with unsigned number to string conversions to UStringsKt
- Extract Random unsigned extensions to URandomKt
2018-09-18 22:25:36 +03:00
Mikhail Zarechenskiy
d7f2eeb6e8
Add BuildInference annotation onto stdlib coroutine builders
2018-09-18 18:55:26 +03:00
Mikhail Zarechenskiy
a293aded5d
Introduce builder-like inference with an explicit opt-in for it
...
- Add marker for the experimental type inference features
- Add annotation that will control builder-like inference
- Require that annotation on corresponding parameters and extensions
- Allow to use builder inference without suspendability
Changes in tests and refactorings (rename mainly) are going to be
introduced in further commits
2018-09-18 18:55:25 +03:00
Anton Bannykh
7d5a304cf6
[JS IR BE] support Char.rangeTo()
2018-09-18 15:43:55 +03:00
Anton Bannykh
2e709a81fa
[JS IR BE] Arrays, varargs
2018-09-18 14:36:20 +03:00
Ilya Gorbunov
cb47b0cde1
Fix sourcemap of stdlib/js to include new source sets
2018-09-17 17:58:28 +03:00