Commit Graph

60369 Commits

Author SHA1 Message Date
Pavel Kirpichenkov d9ef7d0c8a [NI] Update / mute diagnostics
Update diagnostics for new inference.
'Not enough information for parameter' should not be reported for
fake calls and functions with error return type, muted in tests.
2019-12-11 17:53:43 +03:00
Pavel Kirpichenkov 6fa11d1573 Drop deprecated displayName from descriptor visibility
Deprecated displayName has been replaced with internal and external display
names for better diagnostic messages.
2019-12-11 17:30:29 +03:00
Simon Ogorodnik ebc1562b32 Filter out non-xml model files in modularized test 2019-12-11 17:21:02 +03:00
Simon Ogorodnik 48a05e3688 Support prefixed modularized test-data installation 2019-12-11 17:21:01 +03:00
pyos 498b41b148 JVM_IR: do not do invokeinterface on Object methods
This works on HotSpot, but might confuse other VMs.
2019-12-11 15:09:37 +01:00
Ilmir Usmanov df0a86ea57 Add NOP as first instruction in coroutine's try blocks
#KT-35035 Fixed
2019-12-11 15:01:41 +01:00
Mark Punzalan 4777dd652b [FIR] Add tests to catch issues with smartcasting of accesses to functions
and properties (type information is stored for the symbol and ALL accesses
to the same symbol are smartcasted).
2019-12-11 16:57:41 +03:00
Mark Punzalan f031b47363 [FIR] Fix issue with multiple smartcasts of this. 2019-12-11 16:57:41 +03:00
Mark Punzalan 91f97fa611 [FIR] Support FirCheckNotNullCall in HTML dump. 2019-12-11 16:54:15 +03:00
Mark Punzalan 6e00df06e8 [FIR] Add data flow analysis for FirCheckNotNullCall. 2019-12-11 16:54:15 +03:00
Mark Punzalan 692a83f7bb [FIR] Add FirCheckNotNullCall converted to CHECK_NOT_NULL intrinsic
function call.
2019-12-11 16:54:15 +03:00
Ilya Matveev 6bc0fe121a Gradle: Escape TC service messages in debug logs
The MPP plugin uses TC service messages to interact with JS and
native test runs an writes received messages to a debug log. But
if a build is executed by TeamCity, these log messages may be
treated by TC as actual service messages.

This patch transforms the logged messages to avoid this issue.
2019-12-11 19:57:22 +07:00
Ilya Matveev 33df86338b Gradle, tests: Improve tests for running simulator unit-tests 2019-12-11 19:57:22 +07:00
Ilya Matveev 254864a49d Gradle, native, JS: Support excluding tests using TestFilter
TestFilter.excludePatterns was introduced in Gradle 5.0. This
patch adds support for this API in native and JS test tasks
and deprecates the old property used for test excludes.
2019-12-11 19:57:21 +07:00
Ilya Matveev cc3438f20c Gradle, native: Add separate classes for targets with different tests 2019-12-11 19:57:21 +07:00
Ilya Matveev e6ab70c18d Gradle, native: Support simulator tests 2019-12-11 19:57:21 +07:00
Mikhael Bogdanov 8225c5a9ce Remove obsolete logic to IS_BUILT_WITH_ASM6 2019-12-11 13:49:34 +01:00
victor.petukhov a92f58b1ac Revert "NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed ^KT-32435 Fixed"
This reverts commit 09c2b92b
2019-12-11 15:32:46 +03:00
Ilya Goncharov ccea2b73da [Gradle, JS] Add using Debuggable non headless chrome 2019-12-11 14:29:12 +03:00
Ilya Chernikov 354be2b14f [minor] Change expression evaluation cli argument to -Xexpression 2019-12-11 12:20:49 +01:00
Ilya Chernikov ba056bf78c [minor] Remove irrelevant part of the test 2019-12-11 12:20:48 +01:00
Yan Zhulanow 748cbd7eec Import Kotlin JUnit run configuration settings from Gradle 2019-12-11 20:04:03 +09:00
Yan Zhulanow 0a9a08eab6 Rename Kotlin-specific Gradle configuration to "Kotlin Gradle" to avoid disambiguation 2019-12-11 20:04:03 +09:00
Yan Zhulanow 1bdff8f884 Rename Kotlin-specific JUnit configuration to "Kotlin JUnit" to avoid disambiguation 2019-12-11 20:04:03 +09:00
Toshiaki Kameyama 8477c1935c Run configuration: do not contain FQN in name
#KT-16886 Fixed
2019-12-11 20:04:03 +09:00
Yan Zhulanow ce21a55943 Debugger: Add IR-powered ranking tests 2019-12-11 20:04:03 +09:00
Dmitry Gridin 31596f0d0b Formatter: fix some cases of call chain with wrap first call chain
#KT-35388 Fixed
2019-12-11 18:00:39 +07:00
Dmitry Gridin e7ff0315d4 Formatter: fix line break before value parameter with annotation
#KT-23811 Fixed
2019-12-11 17:57:11 +07:00
Vladimir Ilmov f05a452ef2 [coroutine][debugger] Unit test support added for Gradle run configurations. 2019-12-11 11:46:28 +01:00
Vladimir Ilmov 82cdcb421b jdi.StringReferenceImpl references replaced with StringReference 2019-12-11 11:44:02 +01:00
Egor Ushakov e2010cb90d Do not cast to jdi impl classes 2019-12-11 13:16:27 +03:00
Mikhail Glukhikh 038ec8edcf Rethrow ProcessCanceledException in FIR resolve
Before this commit, we catched all exceptions at some points
and wrap them. For ProcessCanceledException it's incorrect,
because IDE logic does not expect wrapping of ProcessCanceledException
2019-12-11 13:01:38 +03:00
Mikhail Glukhikh 2b82618715 Fix unresolved references in bunch generate tests 2019-12-11 13:01:38 +03:00
Mikhail Glukhikh 9e263b6af2 FIR IDE: use registry to obtain kotlin.use.fir.resolution 2019-12-11 13:01:38 +03:00
Mikhail Zarechenskiy cad0d7ff7f Fix compilation of maven-plugin test after 508330e0bb 2019-12-11 12:43:23 +03:00
Victor Petukhov 09c2b92b1d NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed
^KT-32435 Fixed
2019-12-11 12:15:02 +03:00
pyos 78dfcef160 JVM_IR: move generateParameterNames to FunctionCodegen.kt 2019-12-11 08:19:55 +01:00
pyos 13a2879b78 JVM_IR: generate more correct parameter metadata 2019-12-11 08:19:55 +01:00
Tillmann Berg cf86dc9a89 KT-20357: Add sample for Collections distinct and distinctBy methods 2019-12-11 07:42:05 +03:00
Ilya Gorbunov f0e67f8397 Fix coreLibsInstall composite task
It was broken after the commit bbdbc2896b,
which included kotlin-stdlib-js-ir project into coreLibs list,
but that project didn't have 'install' task, on which 'coreLibsInstall' depends
2019-12-11 06:36:40 +03:00
Igor Yakovlev 6792d22c31 Fix minor bugs for UL methods and parameters representation
Remove INSTANCE field for local object declarations
Remove private suspend functions create from UL
Add correct extension function parameter name
Add support for setparam annotation modifier
2019-12-10 18:26:08 +03:00
Georgy Bronnikov 094de9fb5e IR: Do not capture variables from method calls in ClosureAnnotator
To call a method of a class, you never need to supply any values of
local variables (they would always be provided to the constructor).
2019-12-10 17:31:12 +03:00
Mikhail Glukhikh 344bc33096 [FIR TEST]: add problematic test with WeakHashMap.get ambiguity 2019-12-10 16:25:01 +03:00
Toshiaki Kameyama 12f17a6724 "Add constructor parameters" quick fix should add default parameters from super class (#2869)
#KT-33109 Fixed
2019-12-10 13:09:31 +01:00
Denis Zharkov f0298aad77 FIR: Refine SAM support for methods with names from j.l.Object 2019-12-10 14:21:21 +03:00
Denis Zharkov e89c777fc6 FIR: Create DefinitelyNotNull only for annotated types 2019-12-10 14:21:21 +03:00
Abduqodiri Qurbonzoda 56cae75404 Fix StringBuilder reverse test 2019-12-10 13:07:27 +03:00
Mikhail Glukhikh edf5675415 [FIR TEST]: add problematic test with covariant array as receiver 2019-12-10 12:58:40 +03:00
Mikhail Glukhikh 7d62e3ce56 FIR: fix hasTopLevelClassOf optimization in deserialized provider
Before this commit, we answered 'no top level class' if Java class finder
could not calculate known class names. However, it's incorrect,
because this situation means 'don't actually know'.

To precise semantics, function name was also inverted
2019-12-10 12:58:39 +03:00
Mikhail Glukhikh fa89aa0b49 Do not use member scope provider from FIR resolution API
In this commit we build self importing scope from scratch.
Using member scope provider is probably incorrect because of possible changes.
At any invalidation we should rebuild it.
2019-12-10 12:58:39 +03:00