Denis Zharkov
0e132b9857
Move all coroutine-related declarations from built-ins to stdlib
...
Also move internal declarations from runtime.jvm module into new package
kotlin.coroutines.jvm.internal in stdlib
The necessity of these declarations being in built-ins is controversial,
but also it will complicate the migration of current coroutine runtime
to a separate jar if we ever need this
2017-01-27 23:24:13 +03:00
Denis Zharkov
b61c152b4e
Minor. Drop a couple of unused properties
2017-01-27 23:24:13 +03:00
Zalim Bashorov
4a72404ac2
Support a larger set of symbols as module name in "MODULE" directive
2017-01-27 23:15:43 +03:00
Zalim Bashorov
66fd566df0
KJS: fix inlining from modules with non valid identifier name
2017-01-27 23:13:53 +03:00
Zalim Bashorov
487419e762
KJS: don't export inline functions with InlineOnly annotation and inline functions with reified generic parameter
2017-01-27 22:47:10 +03:00
Zalim Bashorov
16405d080d
Minor: remove outdated references form jslib_files.xml
2017-01-27 22:47:09 +03:00
Ilya Gorbunov
267703e6b7
Change references to kotlin-stdlib-js.jar in plugin.
...
Change test projects for js project configurator.
#KT-15940
2017-01-27 22:19:49 +03:00
Ilya Gorbunov
0df31f1223
Build kotlin-stdlib-js.jar in ant
...
#KT-15940
2017-01-27 22:19:40 +03:00
Ilya Gorbunov
d0e917e7f9
Fix maven references to stdlib-js in IDEA project
...
#KT-15940
2017-01-27 22:19:35 +03:00
Ilya Gorbunov
078f606cdc
List artifacts required for maven plugin IT in extraArtifacts rather than in dependencies.
...
#KT-15940
2017-01-27 22:19:31 +03:00
Ilya Gorbunov
ea9be01034
Fix maven references to stdlib-js
...
#KT-15940
2017-01-27 22:19:26 +03:00
Ilya Gorbunov
ba1d7104a3
Rename JS standard library artifact #KT-15940
2017-01-27 22:09:46 +03:00
Simon Ogorodnik
2a08e3c679
KT-14767 typealias to annotation class should appear in the completion list
...
#KT-14767 fixed
2017-01-27 21:29:23 +03:00
Alexey Andreev
4c831cab9e
JS: regenerate stdlib files from IDL
2017-01-27 20:54:43 +03:00
Alexey Andreev
72bcdf8869
JS: add enum emulation to IDL2K
2017-01-27 20:54:43 +03:00
Alexey Andreev
04e9405082
JS: regenerate stdlib files from IDL
2017-01-27 20:54:42 +03:00
Alexey Andreev
68d14de000
JS: add support of Promise<T> in IDL2K
2017-01-27 20:54:42 +03:00
Alexey Andreev
563a3a25cb
JS: add Promise class
2017-01-27 20:54:41 +03:00
Mikhail Glukhikh
f5d5079b0d
1.1.0 change log update
2017-01-27 20:19:13 +03:00
Alexey Sedunov
be3e33051e
Kotlin Facet: Fix Gradle import without "module per source set" option
...
#KT-15812 Fixed
2017-01-27 20:05:01 +03:00
Alexey Sedunov
34b0e175ca
Configuration: Prohibit api-version > language-version in Facet and Project Settings
...
#KT-16015 Fixed
2017-01-27 20:05:00 +03:00
Alexey Tsvetkov
1420bd1b33
Add Kotlin Gradle DSL to configure coroutines from build.gradle
2017-01-27 19:04:49 +03:00
Mikhail Glukhikh
08caf0a011
Object literal to lambda: handle last comment correctly #KT-15670 Fixed
2017-01-27 18:15:56 +03:00
Mikhail Glukhikh
c0f5cafbd8
Set type reference: destructuring support #KT-14994 Fixed
2017-01-27 18:15:54 +03:00
Mikhail Glukhikh
f4513e9c70
Remove explicit lambda parameter types: destructuring support #KT-15162 Fixed
...
Also #KT-14993 Fixed
2017-01-27 18:15:52 +03:00
Nikolay Krasko
2c17773715
Minor: better name
2017-01-27 18:00:14 +03:00
Nikolay Krasko
370e7cd9f5
Stop considering injected files as Kotlin source roots (KT-15032)
...
We should have a special facade for them as descriptors are not
present in ordinal project facade.
Caused by change in idea 171 (https://github.com/JetBrains/intellij-community/commit/b3527d9a20f4b9391e98b426beb2548fb3efc0fe )
#KT-15032 Fixed
2017-01-27 18:00:14 +03:00
Dmitry Jemerov
1361d5e915
EA-85853 - (KT-13415) AIOOBE: LightClassUtilsKt.toPsiTypeParameters
2017-01-27 14:48:05 +01:00
Dmitry Jemerov
59e2645293
EA-82902 - IOOBE: KtLightAnnotation$LightExpressionValue.unwrapArray
2017-01-27 14:48:05 +01:00
Kirill Rakhman
956094e062
Add Merge ifs intention ( #975 )
...
Fixes #KT-9912
2017-01-27 14:20:11 +01:00
Mikhael Bogdanov
456037a30d
Generate proper annotaions on parameters for @JvmOverloads;
...
Fix for KT-15743: Overloaded Kotlin extensions annotates wrong parameters in java
#KT-15743 Fixed
2017-01-27 14:09:13 +01:00
Mikhael Bogdanov
ab464ea86e
Fix for KT-15726: Kotlin can't compile nested try-catch with return
...
#KT-15726 Fixed
2017-01-27 14:09:13 +01:00
Dmitry Jemerov
2c1c3d1f31
Workaround for compilation issue: don't use a Java shim to access token name, use toString() instead (for all relevant tokens, it will return the name, and for all others, the return value won't match the Java keyword filter regexp)
2017-01-27 13:32:20 +01:00
Dmitry Petrov
de14d4abc8
KT-15748 Type alias constructor return type should have a corresponding abbreviation
2017-01-27 15:16:04 +03:00
Ilya Gorbunov
dbaf31effe
sourceDirs exclude the original test dir, so add it explicitly.
2017-01-27 14:53:33 +03:00
Ilya Gorbunov
01f53d0173
Return NaN as an average of an empty collection.
...
#KT-15399 Fixed
2017-01-27 14:53:33 +03:00
Dmitry Jemerov
6704ba05de
Don't try to get siblings of PsiDirectory either (EA-94811 - assert: FileManagerImpl.findDirectory)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
731aeac04f
Delete quick fix which was needed to migrate users to the version of Kotlin which was the latest in 2014 (EA-93982 - assert: PsiModificationTrackerImpl.fireEvent)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
6cbb2a4491
Replace incorrect assertion with explicit check (EA-93946 - assert: UnusedSymbolInspection.hasNonTrivialUsages)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
7236aa45f2
Fix IAE when rendering unknown type (EA-89031 - IAE: SmartTypeRenderer.render)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
2342aeef49
Don't try to resolve a class with no containing file (such as LightBRClass) to descriptor (EA-91890 - (AS only, no containing file, from Java light classes) LET: GetModuleInfoKt$getModuleInfo$.invoke)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
1337a5216c
Don't try to get text for invalid file (EA-86393 - PIEAE: PsiFileImpl.getText)
2017-01-27 12:47:41 +01:00
Dmitry Jemerov
b987e37e82
Diagnostics for EA-86712
2017-01-27 12:47:41 +01:00
Ilya Gorbunov
661ff81e67
Specify names for parameters of functional types with two or more parameters to ease lambda completion.
...
#KT-13826
2017-01-27 14:46:29 +03:00
Kirill Rakhman
96d0f91afc
Implement Smart Enter handler for class body ( #1022 )
...
Fixes #KT-9011
2017-01-27 12:35:33 +01:00
Dmitry Jemerov
e6a7808d8e
Fix ConfigureKotlinUtilTest
2017-01-27 12:27:39 +01:00
Mikhail Zarechenskiy
0c6a860a22
ReplaceWith annotation resolver: use module from resolution facade to build imports scope
...
#KT-15873 Fixed
Using module from original element may lead to exceptions as it could be
<built-ins module> (after deprecation of `mod` operator)
2017-01-27 14:13:13 +03:00
Dmitry Petrov
e05f2eaff6
KT-15017 Throwing exception in the end of inline suspend-functions lead to internal compiler error
...
Suspend function call with a reachable (alive) begin marker and unreachable (dead) end marker
is an exit point for the corresponding coroutine.
It isn't a suspension point, and doesn't introduce a new state in the coroutine FSM.
2017-01-27 10:43:00 +03:00
Ilya Gorbunov
3be1174824
Replace @native with external in tests
2017-01-27 01:29:15 +03:00
Ilya Gorbunov
20f175d091
Soften back deprecation level for nativeGetter/Setter/Invoke annotations.
2017-01-27 00:48:46 +03:00