Dmitry Savvinov
2783e9939b
Fix internal-visibility mangling in IDE
...
Collect module name properly from facets settings, using CLI arguments
which define module name ('-module-name' on JVM and Common,
'-output-file' on JS).
^KT-23668 Fixed
2018-07-09 18:50:50 +03:00
Dmitry Savvinov
04f12846f1
Minor: reformat ModuleDescriptorImpl.kt
2018-07-09 18:50:35 +03:00
Nikolay Krasko
b709012dea
Minor: "Recheck now" -> "Check again"
2018-07-09 18:07:25 +03:00
Nikolay Krasko
aa21e9c3bc
Show current Kotlin installed version in update form (KT-25255)
...
#KT-25255 Fixed
2018-07-09 18:07:25 +03:00
Nikolay Krasko
90f1829fb8
Minor: find tested element with <caret> in ResolveElementCacheTest.kt
2018-07-09 18:07:24 +03:00
Mikhael Bogdanov
66e68fbb53
Generate sam wrappers in inlined lambda in same way as in inline function
...
#KT-24825 Fixed
2018-07-09 15:52:54 +02:00
Alexey Tsvetkov
93e183c2e4
Test for KT-25051
2018-07-09 15:50:06 +03:00
Alexey Tsvetkov
f735586819
Remove redundant test
...
`testMultiModuleICNonAndroidModuleIsChanged` already tested
android and non-android change
2018-07-09 15:50:05 +03:00
Alexey Tsvetkov
5760b8cf8b
Register kotlin_module as output of all files
...
Previously kotlin_module was registered as output
only for files containing top-level declarations
2018-07-09 15:48:11 +03:00
Alexey Tsvetkov
63b4302cea
Always generate kotlin_module
...
#KT-25133 fixed
#KT-25051 fixed
2018-07-09 15:48:11 +03:00
Denis Zharkov
4bf51af2fa
Fix reference-public-api
...
It's necessary because of the changes in 3497880f203449121ea8035c49b792cc4dc53bd6
2018-07-09 15:27:19 +03:00
Denis Zharkov
0b3048f60a
Replace trivial usages of suspendCoroutineOrReturn in tests
...
This is necessary since suspendCoroutineOrReturn gets removed in 1.3
2018-07-09 15:27:19 +03:00
Denis Zharkov
a23ce42c80
Replace a couple of usages of suspendCoroutineOrReturn in tests
2018-07-09 15:27:19 +03:00
Denis Zharkov
e753e0978f
Fix dispatchResume.kt tests after suspendCoroutineOrReturn removal
...
To leave them COMMON_COROUTINES_TEST use suspendCoroutine instead
But, since it requires for continuation to be called externally
the tests are rewritten
2018-07-09 15:27:19 +03:00
Denis Zharkov
8c65e55c02
Fix some of the bytecodeText tests
...
The changes are necessary because of release coroutines support:
- Get rid of suspendCoroutineOrReturn calls. It's anyway irrelevant
to what is being tested here
- In varValueConflictsWithTable.kt, variables slots have been shifted
because the variable for continuation's exception was removed
- In varValueConflictsWithTableSameSort.kt, a variable has been introduced
to preserve the same slot numbers for old variables.
Otherwise, they become shifted and to the second slot,
and there are a lot of irrelevant "ALOAD 2" instructions
This change is another example of why bytecode text tests are evil
2018-07-09 15:27:19 +03:00
Denis Zharkov
820506d9c6
Fix tests after new Continuation API support
...
#KT-24863 Fixed
2018-07-09 15:27:19 +03:00
Denis Zharkov
170086250b
Support new Continuation API in JVM BE
...
#KT-24863 Fixed
2018-07-09 15:27:19 +03:00
Denis Zharkov
aee0afbff1
Support CoroutineUtil.kt helpers within AbstractCompileKotlinAgainstKotlinTest
2018-07-09 15:27:19 +03:00
Denis Zharkov
f23a0c8fea
Add ContinuationAdapter to coroutine tests helpers
...
It allows having the same Continuation implementations for different
API versions
2018-07-09 15:27:19 +03:00
Denis Zharkov
f01e690f49
Minor. Use coroutine test helpers for inline/diagnostics tests
...
It should help with decreasing test data copy-pasting when
testing against release / pre-release coroutines
2018-07-09 15:27:19 +03:00
Denis Zharkov
2c195555ad
Minor. Reformat CoroutineCodegen.kt
2018-07-09 15:27:19 +03:00
Denis Zharkov
1ced127660
Minor. Move helpers for coroutines tests to kt-file
2018-07-09 15:27:19 +03:00
Roman Elizarov
3aa76c58fc
Updated SuccessOrFailure class corresponding to KEEP-127 and docs.
2018-07-09 15:27:19 +03:00
Roman Elizarov
33f4a3fcbf
Extracted BaseContinuationImpl
2018-07-09 15:27:19 +03:00
Roman Elizarov
38c17249b9
releaseInterceptedContinuation clarified and ref check in impl fixed
2018-07-09 15:27:19 +03:00
Roman Elizarov
d33409ff8a
Fixed boxing of SuccessOrFailure inside SafeContinuation impl
2018-07-09 15:27:19 +03:00
Roman Elizarov
0370fac0b6
Further design improvements for coroutines 1.3 APIs
...
* Documentation improvements and clarification
* Dropped legacy intrinsic functions
* Remove context parameter default from Continuation builder function
2018-07-09 15:27:19 +03:00
Roman Elizarov
719d45510a
Continuation builder function
2018-07-09 15:27:19 +03:00
Roman Elizarov
0b17c619bc
Fixed ContinuationImpl.intercepted
2018-07-09 15:27:19 +03:00
Roman Elizarov
7513557315
Unroll recursion in resumeWith
...
Fixes KT-18987
2018-07-09 15:27:19 +03:00
Roman Elizarov
af9743709c
Implement COROUTINE_SUSPENDED as a property with getter
2018-07-09 15:27:19 +03:00
Roman Elizarov
aaabfa6382
Missing SinceKotlin declarations added for resume extensions
2018-07-09 15:27:19 +03:00
Roman Elizarov
b06d626b21
releaseInterceptedContinuation and few other minor fixes
2018-07-09 15:27:19 +03:00
Roman Elizarov
8e2fae3322
More work on draft coroutines 1.3 ABI & API:
...
* SuspendFunction[01] interfaces removed, moved to RestrictedContinuationImpl
* validateContext introduced to check restricted coroutines
* Distinguish SuspendLambda as being lambda/coroutine and provide a separate
toString implementation (draft) in its coroutine incarnation.
2018-07-09 15:27:19 +03:00
Roman Elizarov
29dcc4f18c
Better support for mixed-version libs (override old method, too)
2018-07-09 15:27:19 +03:00
Roman Elizarov
8bbd78ca9a
Draft Kotlin Coroutines 1.3 ABI & API:
...
* SuccessOrFailure inline class is introduced
* Continuation.resumeWith(SuccessOrFailure)
* createCoroutineUnintercepted
* [Restricted]ContinuationImpl as named suspending function base
* [Restricted]SuspendLambda as suspending lambda base
* SuspendFunction[01] interfaces for efficient createCoroutine
* Serializable coroutine classes
2018-07-09 15:27:19 +03:00
Alexander Podkhalyuzin
fb5e11dfc6
simple public interface is Java, not Kotlin
...
#KT-22823 Fixed
2018-07-09 15:23:52 +03:00
Alexander Podkhalyuzin
04fd4ef9de
Do not stop recursive visitor with return
...
#KT-23627 Fixed
2018-07-09 15:19:38 +03:00
Simon Ogorodnik
2d4cbc712d
KT-25012: Use index to check is java file selected instead of traversing file tree
...
Add initial estimation via fileType index
#KT-25012 fixed
2018-07-09 14:37:11 +03:00
Alexander Podkhalyuzin
a92ce467a7
Fixed patchset branches
2018-07-06 18:31:21 +03:00
Alexander Podkhalyuzin
571fda0f45
Fixed deprecation of ConcurrentFactoryMap()
...
#KT-24892 Fixed
2018-07-06 17:20:46 +03:00
Mikhail Zarechenskiy
6dc36055b8
Make diagnostic about redundant spread in @Foo(s = *[A]) more clear
2018-07-06 15:54:23 +03:00
Mikhail Zarechenskiy
513b27f65f
Make tests about varargs compatible with 1.2 and 1.3 versions
2018-07-06 15:23:33 +03:00
Mikhail Zarechenskiy
c032a02373
Prohibit assigning single elements into varargs in named form
...
#KT-20588 Fixed
#KT-20589 Fixed
2018-07-06 15:23:31 +03:00
Alexander Udalov
959c2f4843
Get rid of split packages in descriptors, descriptors.jvm, deserialization
...
Also move some other files to related packages and reformat moved files
2018-07-06 14:08:35 +02:00
Natalia Selezneva
4b1ce15619
Run script dependencies update on editor focus change
...
^KT-24588 Fixed
2018-07-06 11:58:35 +03:00
Sergey Rostov
7408504356
Fix StringIndexOutOfBoundsException in KotlinConsoleFilterProvider.kt (EA-118757)
2018-07-06 11:35:26 +03:00
Denis Zharkov
0d00eb7de3
Add postfix template for listOf/setOf/etc
...
#KT-25239 Fixed
2018-07-06 10:06:56 +03:00
Denis Zharkov
4ab97e8454
Minor. Reformat org.jetbrains.kotlin.idea.codeInsight.postfix
2018-07-06 10:06:56 +03:00
Denis Zharkov
6f4aa2296d
Implement quickfix wrapping elements in collection literal calls
...
#KT-25238 Fixed
2018-07-06 10:06:56 +03:00