Ilya Gorbunov
455fee29e4
Find correct next match after matchAt and matchEntire KT-47676
2021-07-10 21:31:20 +03:00
Ilya Gorbunov
28a0698463
Regex.matchAt/matchesAt #KT-34021
2021-07-10 21:31:19 +03:00
Alexander Udalov
a7e48c3af1
Improve toString of platform types created by typeOf
...
In the stdlib implementation, render "!" if the type is only
nullability-flexible. Otherwise, render "($lower..$upper)".
Note that full kotlin-reflect has a much more complicated logic (see
`DescriptorRendererImpl.renderFlexibleType`) that renders things like
`(Mutable)List` and so on. It is not a goal of the stdlib implementation
to replicate all of that, since it requires copying a large amount of
code, namely the entirety of `JavaToKotlinClassMap` to map Java class
names to Kotlin.
2021-07-09 14:53:56 +02:00
Alexander Udalov
ddfa94e7e9
Support Nothing type in typeOf
...
The proper support will come in KT-15518, but that would be a breaking
change even for stable Kotlin without kotlin-reflect. Before that issue
is fixed, represent Nothing in types with the Void class, and use a flag
in the no-reflect implementation to remember that it's not actually the
Void class itself.
#KT-39166 Fixed
2021-07-09 14:40:05 +02:00
Yahor Berdnikau
7789054547
Migrate repo to use JVM toolchains Gradle feature.
...
^KT-46972 Fixed
2021-07-05 14:11:12 +00:00
Yahor Berdnikau
08d831934a
Revert "Build: add temporary option to suppress jdkHome warning"
...
This reverts commit 1dfcec3a93 .
2021-07-05 14:11:11 +00:00
Igor Laevsky
74a87e2b79
WASM: Add few helper array library functions from Slava's changes
2021-07-02 15:39:26 +03:00
Alexander Udalov
012c7c39af
Improve KType.toString for primitive type arguments in stdlib implementation
2021-07-01 19:33:55 +02:00
Alexander Udalov
0cb905a4b1
Support mutable collection types in typeOf
...
flexibleTypes_1_6.kt is fixed for JVM IR in a subsequent commit.
#KT-35877 Fixed
2021-07-01 19:33:55 +02:00
Alexander Udalov
6e975b3498
Support flexible types internally in typeOf
...
#KT-45066 Fixed
2021-07-01 19:33:55 +02:00
Ilya Goncharov
82f979b11f
[JS IR] Add property name to boolean in externals diagnostic
2021-06-29 10:12:55 +00:00
Ilya Goncharov
21a3494bca
[JS IR] Add test with boolean in external interface
...
[JS IR] Add possibility to safely access Boolean in external declaration
[JS IR] Add diagnostic for booleans in externals
2021-06-29 10:12:54 +00:00
Abduqodiri Qurbonzoda
47aa04d55d
Test fix: java6 doesn't throw on invalid AbstractMutableList.addAll index
...
If the collection of elements to be added is empty, java6 implementation
of AbstractMutableList.addAll doesn't throw on invalid index.
The failing test was introduced in 59031543e2
which fixed #KT-47211.
2021-06-28 13:58:41 +00:00
Alexander Udalov
f430d569d0
Fix warnings in js-ir/runtime/jsIntrinsics.kt
...
Suppress "UNUSED_PARAMETER" to fix compilation warnings. Also suppress
"unused" to make the file less yellow in the IDE.
Also enable `-Werror`, unless Gradle property
`kotlin.build.disable.werror` is set to true.
2021-06-28 12:19:35 +02:00
Abduqodiri Qurbonzoda
aabc00f53f
Throw IllegalStateException from MapBuilder iterator.remove() #KT-47419
2021-06-24 22:59:15 +00:00
Anton Bannykh
48fe46303d
JS IR: declare intrinsics for lowerings in stdlib
...
- simplifies lowered IR serialization
- removes some hacks in jsOperators.kt
- intrinsics can be directly invoked in stdlib
2021-06-18 15:26:52 +03:00
Vyacheslav Gerasimov
73d4110c92
Build: Rollback kotlin-stdlib-jvm-minimal-for-test publication
...
Continue publishing to the internal/repo only
2021-06-17 19:43:11 +03:00
Abduqodiri Qurbonzoda
59031543e2
Throw on invalid AbstractMutableList.addAll index #KT-47211
2021-06-16 11:59:46 +00:00
Vyacheslav Gerasimov
06b4fe1613
Build: Fix kotlin-stdlib-jvm-minimal-for-test usages
...
Name changed after publishing with main artifacts for external usage
2021-06-12 04:33:32 +03:00
Steffi Stumpos
8baf570ee7
Build: Publish the new compiler test infrastructure
2021-06-12 04:33:31 +03:00
Abduqodiri Qurbonzoda
0b521b5183
Get rid of platform differences in Regex.findAll() doc
2021-06-08 00:32:32 +00:00
Abduqodiri Qurbonzoda
53b6c25533
Get rid of platform differences in Grouping<T, K>.eachCount() doc
2021-06-08 00:32:31 +00:00
Abduqodiri Qurbonzoda
91d1baf3b5
Get rid of platform differences in Array.orEmpty() doc
2021-06-08 00:32:30 +00:00
Abduqodiri Qurbonzoda
cc3c33b8ae
Get rid of platform differences in Collection<T>.toTypedArray() doc
2021-06-08 00:32:29 +00:00
Abduqodiri Qurbonzoda
c64592665b
Get rid of platform differences in MutableList.sortWith() doc
2021-06-08 00:32:29 +00:00
Abduqodiri Qurbonzoda
a9946b01e6
Get rid of platform differences in MutableList.sort() doc
2021-06-08 00:32:28 +00:00
Abduqodiri Qurbonzoda
225be54c61
Get rid of platform differences in Regex.find doc
2021-06-08 00:32:27 +00:00
Abduqodiri Qurbonzoda
d934c97bf5
Equivalize isLowerCase and isUpperCase behavior in all platforms #KT-46184
2021-05-31 13:42:46 +03:00
Alexander Udalov
1dfcec3a93
Build: add temporary option to suppress jdkHome warning
2021-05-28 15:41:17 +02:00
Abduqodiri Qurbonzoda
54994a289f
Support all digit chars on JS and Native #KT-46002
2021-05-27 06:56:52 +03:00
Anton Bannykh
6633a9edc0
[JS IR] add a flag which enable safe property access
...
If an accessor is not available at runtime we fall back
to the property access.
This is useful in cases when JS objects are casted to Kotlin
classes implicitly. This pattern did work in the old BE, which
lead to a significant amount of code which doesn't work anymore.
2021-05-20 16:37:34 +03:00
Ilya Gorbunov
ed3542cdf5
Support covariant MutableMap.entries.remove in JS/IR
...
Workaround for KT-43321
Follow up to KT-41278
2021-04-26 17:45:27 +03:00
Ilya Gorbunov
a9cc046ec9
Add missing constructor for expect annotation class JvmRecord
...
KT-46280
2021-04-26 10:41:49 +00:00
Ilya Gorbunov
b59f668a50
Change the way kotlin.js source map paths are postprocessed
...
The idea is that we do no longer use `sourceMapBaseDirs` parameter
of `compileKotlin2Js` task to remove prefix from source paths,
but instead preserve the full paths relative to the output directory.
This allows us to avoid duplicate file names and to identify
source files more reliably.
Then, after sources have been embedded in the source map, we remove
several relative prefixes from source paths.
2021-04-26 13:13:21 +03:00
Abduqodiri Qurbonzoda
57c4f79c1c
Update Char.digitToInt documentation
2021-04-20 04:36:05 +03:00
Abduqodiri Qurbonzoda
bb2a50a4eb
Fix Char.isISOControl doc
2021-04-19 19:14:17 +03:00
Abduqodiri Qurbonzoda
d1f18c4651
Add @see doc references to java isUpperCase and isLowerCase
2021-04-19 19:14:14 +03:00
Abduqodiri Qurbonzoda
22dcc92951
Fix Char.isTitleCase doc
2021-04-19 19:14:13 +03:00
Abduqodiri Qurbonzoda
36aee8f2b4
Fix String.replace doc
2021-04-19 19:14:10 +03:00
Abduqodiri Qurbonzoda
dab09e7052
Fix CharSequence.repeat doc
2021-04-19 19:14:08 +03:00
Abduqodiri Qurbonzoda
3a8d1c4b5e
Remove redundant @OptIn
2021-04-16 19:01:28 +03:00
Abduqodiri Qurbonzoda
f253b1fb15
Incorrect description for JVM toUpperCase method #KT-45884
2021-04-16 19:01:09 +03:00
Ilya Gorbunov
ce7092a638
More efficient Char(Int) in common, JS, and JS-IR
2021-04-16 03:58:34 +03:00
Alexander Udalov
168d8b07a8
Minor, fix warnings on new stdlib API
...
In modules where allWarningsAsErrors is not yet enabled.
2021-04-15 18:39:06 +02:00
Abduqodiri Qurbonzoda
98d31a1813
Expand KDoc of inc() and dec() operators #KT-43701
2021-04-10 03:23:04 +03:00
Ilya Gorbunov
d062f54360
Remove test exclusions after KT-45136 is fixed
2021-04-09 06:45:11 +03:00
Abduqodiri Qurbonzoda
46338224e1
Remove deprecated JQuery
2021-04-08 18:43:16 +03:00
Mikhail Glukhikh
addfa27980
Fix various EXPOSED_FROM_PRIVATE_IN_FILE deprecations
2021-04-08 09:41:25 +03:00
Abduqodiri Qurbonzoda
33b44585c4
Deprecate sumBy and sumByDouble with WARNING
2021-04-08 03:48:01 +03:00
Abduqodiri Qurbonzoda
aa543c6631
Migrate stdlib, tests and samples to new case conversion api
2021-04-08 03:22:01 +03:00