Ilya Gorbunov
e7b445e4b5
Fix incorrect @returns tag usage and improve padStart/End docs
...
#KT-24371 Fixed
2018-05-16 17:43:12 +03:00
Yan Zhulanow
c439b6d38b
Pill: Import common modules as libraries
2018-05-15 16:29:47 +03:00
Yan Zhulanow
ba5836d666
Pill: Introduce pill{} extension to set extended Pill configuration
...
Also introduce the flavor concept which allows to specify what part of Kotlin project should be imported.
2018-05-15 16:29:45 +03:00
Florian Steitz
8453ed1803
[KT-10456] Move tests from StringNumberConversionJVMTest to StringNumberConversionTest
2018-05-11 15:42:11 +03:00
Florian Steitz
d7bada0c29
[KT-10456] Added JS implementation for Int.toString(radix) and similar overloads
2018-05-11 15:42:11 +03:00
Alexander Udalov
2fea2135f8
Add TYPEALIAS target to UseExperimental
2018-05-07 11:37:31 +02:00
Alexander Udalov
7d74508529
Report experimental diagnostics on inaccessible (wrt SinceKotlin) API
...
If a declaration is annotated both with SinceKotlin and WasExperimental
and the SinceKotlin version makes it inaccessible, the experimental
checker must regard it as experimental, with markers specified in the
WasExperimental annotation arguments. So only errors/warnings about the
experimentality are going to be reported in this case, and no error that
the declaration is unavailable because of a low API version
2018-05-07 11:37:31 +02:00
Alexander Udalov
ed6f044fb0
Add internal WasExperimental for stdlib
...
Usages of declarations annotated with WasExperimental are allowed even
if the API version requirement is not satisfied, provided that the
opt-in to all mentioned markers is given. This is needed for smooth
graduation of API in kotlin-stdlib
2018-05-07 11:37:31 +02:00
Ilmir Usmanov
fad5596ef9
Minor: remove builtins from kotlin-stdlib-coroutines.jar
2018-05-07 10:34:50 +03:00
Ilmir Usmanov
5e4ce4f880
Remove coroutineContext from kotlin.coroutines.experimental.intrinsics package
...
#KT-22400: Fixed
2018-05-07 10:28:54 +03:00
Alexander Udalov
c57864e46c
Require "-Xuse-experimental=kotlin.Experimental" on usages of Experimental
...
Since we're not yet sure of the design of Experimental/UseExperimental,
we're making them "experimental" themselves in some sense, in that the
user is required to provide the magic argument
"-Xuse-experimental=kotlin.Experimental" to be allowed to use either
Experimental or UseExperimental. This is more convenient than the
previous approach of "-language-version 1.3
-Xskip-metadata-version-check" because it's simpler and does not cause
pre-release binaries to be produced
2018-05-04 13:48:24 +02:00
Alexander Udalov
4f53a54115
Drop Experimental.Impact, simplify related code and tests
...
See https://github.com/Kotlin/KEEP/issues/95#issuecomment-383889404
Drop Experimental.changesMayBreak, Experimental.Impact, the concept of
signature/body usage, same module exemption. Make the majority of tests
single-module because there is now no difference in the checker between
usages from the same module or from another module
2018-05-04 13:48:24 +02:00
Ilya Gorbunov
2c9c6eb746
Reformat stdlib: new coroutines
2018-04-28 18:58:56 +03:00
Ilya Gorbunov
ecf0d7ec0d
Reformat stdlib tests and samples
...
#KT-5558
2018-04-27 05:28:57 +03:00
Ilya Gorbunov
add09e0f2e
Reformat stdlib: js part
...
#KT-5558
2018-04-27 05:28:48 +03:00
Ilya Gorbunov
e3883d8d6d
Reformat stdlib: jvm part
...
#KT-5558
2018-04-27 05:28:38 +03:00
Ilya Gorbunov
c53a2d57c3
Reformat stdlib: common code
...
#KT-5558
2018-04-27 00:50:16 +03:00
Ilya Gorbunov
ad43c0f4cb
Reformat stdlib: collections
...
#KT-5558
2018-04-27 00:49:06 +03:00
Ilya Gorbunov
d3156c33be
Update copyrights in builtin sources
...
Read copyright template from .idea/copyright/apache.xml profile
2018-04-26 21:57:50 +03:00
Ilya Gorbunov
502418e690
Put copyrights to the generated standard library sources
...
Read copyright template from .idea/copyright/apache.xml profile
2018-04-26 21:57:50 +03:00
Ilya Gorbunov
e21c235bbb
Add or update copyrights in the standard library sources
2018-04-26 21:57:50 +03:00
Ilya Gorbunov
40cd02bba6
idl2k: read copyright from profile and put it in the generated files
...
Also reword autogenerated warning a bit.
2018-04-26 21:57:50 +03:00
Ilya Gorbunov
579822c114
Regenerate w3c declarations to get new MDN references
2018-04-26 14:09:05 +03:00
Zalim Bashorov
8871cf660c
[stdlib-js] Split core.kt in stdlib-js into few files to simplify using part of it in JS IR BE related tests
2018-04-25 22:18:57 +03:00
Ilmir Usmanov
39f4a449ad
Remove JvmVersion from kotlin-stdlib-coroutines
2018-04-23 22:20:41 +03:00
Ilmir Usmanov
30ab1e2b35
Move coroutines to kotlin.coroutines package: stdlib
...
Copy everything from kotlin.coroutines.experimental to
kotlin.coroutines. The latter is separate source set to be packed into
separate kotlin-stdlib-coroutines.jar
#KT-23362
2018-04-23 21:51:58 +03:00
Ilya Gorbunov
2c74b91de4
Remove JvmVersion annotation and its usages
2018-04-23 19:05:13 +03:00
Ilya Gorbunov
c239d346f7
Correctly indent upper bound separator in the generated stdlib code
2018-04-20 23:14:57 +03:00
Ilya Gorbunov
5381d0ed58
Move sequence operation classification higher than sample
...
Otherwise it gets eaten by that @sample tag.
2018-04-20 22:40:35 +03:00
Ilya Gorbunov
908d2d6975
Introduce kotlin-stdlib-generator dsl block for specifying sample reference
2018-04-20 22:40:35 +03:00
J.T. Gilkeson
7a538accff
Fix problem with trimEnd wiping out spans in SpannableStringBuilder
...
If I pass in a CharSequence with different spans, the original trimEnd using substring incorrectly wiped out the spans.
changing to subSequence correctly preserves the span data
#KT-23920 Fixed
2018-04-20 18:04:13 +03:00
Ilya Gorbunov
481620ba32
Suppress dokka warnings for external classes exposing JS API to Kotlin
...
Usually MDN link in the class description is enough.
2018-04-20 06:39:01 +03:00
Swapnil Sankla
b93e385181
Add sample for setOf method
...
Ilya Gorbunov: Improve sample to illustrate stable iteration order and set equality.
2018-04-20 06:03:05 +03:00
Ilya Gorbunov
c5aed06110
Clarify docs for downTo and until
2018-04-20 05:25:31 +03:00
Ilya Gorbunov
501d969a38
Improve docs wording of zip function
2018-04-20 02:44:48 +03:00
Ilya Gorbunov
0eae27e03f
Add samples for zip on sequences and strings
2018-04-20 02:00:36 +03:00
TakuyaKodama
2d4e591b5d
Add samples for zip on arrays and collections
...
Write the sample references in the template and run the generator
2018-04-20 02:00:36 +03:00
Ilya Gorbunov
4f80f6d715
Sort .js files before passing them to merger to ensure stable output
...
#KT-23705 Fixed
2018-04-19 01:22:13 +03:00
Ilya Gorbunov
9c7fefba69
Restore default values in actual functions that have default values in expect
...
Suppress error about default argument values in actuals.
The suppression can be removed when/if KT-23548 is implemented.
This is to avoid degrading experience in docs and IDE when working with
these functions.
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
f7546c809d
Minor: use common implementation of doubleTotalOrderEquals for tests
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
2826733e87
Put common sources into kotlin-stdlib-sources going into dist
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
7ccbd36304
Set module name for common projects, this isn't done automatically yet
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
0e4925a20f
Remove UNUSED_PARAMETER warning suppression from actual declarations
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
ac3de447ae
Do not use code preprocessing anymore
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
9dd87d89ba
Remove default values in actual functions that have default values in expect
...
Remove suppressions about default values in expect declarations
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
f7b2eba680
Do not mix expect/non-expect overloads of minOf/maxOf
...
Workaround for KT-22520
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
912c69aaa3
Suppress expect-actual mismatch for relaxed array extensions
...
Due to KT-21937
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
38be99daa3
Build stdlib-jdk7/8 tests as multiplatform manually
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
9b38e5e7b5
stdlib tests: move JVM-only test source files
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
ba873e2b46
stdlib tests: provide expect/actual helper functions
2018-04-12 17:53:00 +03:00