Commit Graph

66577 Commits

Author SHA1 Message Date
Leonid Startsev 02bd8cbd6b Use SYNTHETIC_OFFSET instead of UNDEFINED
because Native's debug information does not accept undefined offsets
2020-06-01 17:48:17 +03:00
Leonid Startsev 7c8c5b057f Extensible mechanism for plugin metadata during descriptor serialization
A mechanism that allows kotlinx.serialization plugin to preserve the
correct (program) order of properties after serializing/deserializing
descriptors to kotlin metadata, which is needed for correct and stable
json serialization of class hierarchies in incremental/multi-module scenario.
It uses protobuf extensions.
2020-06-01 17:48:16 +03:00
Victor Petukhov 8d05253369 NI: take into account effective variance during adding constraints from LHS instead of only use site variance
^KT-39220 Fixed
2020-06-01 17:24:49 +03:00
Alexander Gorshenev 561c6747a6 Remove tests from muted 2020-06-01 17:16:31 +03:00
Nikita Bobko 2ef46b586d Fix broken NavBar for 201
^KT-38466 Fixed
^KT-38260 Fixed
2020-06-01 17:05:10 +03:00
Dmitry Petrov 246c68b0a9 PSI2IR: Don't generate IMPLICIT_INTEGER_COERCION
Generate integer coercion function calls and properly typed constant
expressions instead.
2020-06-01 16:51:47 +03:00
Juan Chen bfac0355bf WIP: [FIR] unmute testKt14227 with FULL_JDK
The test used to fail because it has an augmented assignment for
elements in a HashMap of Strings, and "plus" fails to resolve due to
ambiguity: besides String.plus, BigDecimal.plus in the standard
library is also considered. BigDecimal is not resolved and thus
isError returns true. During type checking, the context has
isErrorTypeEqualsAnything set to true, and BigDecimal is now regarded
as a super type of String and BigDecimal.plus is a valid
candidate. Adding the directive "FULL_JDK" enables resolving of
BigDecimal so that BigDecimal.plus is excluded.
2020-06-01 16:47:15 +03:00
Toshiaki Kameyama 45d60baeb0 Add import for member: don't suggest if a class with the same name has been imported
#KT-38492 Fixed
2020-06-01 21:42:04 +09:00
Toshiaki Kameyama 329f0227ec Remove explicit type specification: do not suggest for suspend function type
#KT-38310 Fixed
2020-06-01 21:42:04 +09:00
Toshiaki Kameyama 098469eb85 Implement members: implement functions in the same order as within Java interface
#KT-31760 Fixed
2020-06-01 21:42:04 +09:00
Yan Zhulanow 741ebeb7b8 Mark semicolons after nullable types redundant, despite of '!' after (KT-38240) 2020-06-01 21:42:04 +09:00
Toshiaki Kameyama 4cf83d9526 Redundant semicolon: don't report when semicolon is between type and '!'
#KT-38240 Fixed
2020-06-01 21:42:04 +09:00
Yan Zhulanow 8e8171547b Add super type in "Convert to anonymous object" test 2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 111b2945e1 "Convert to anonymous object" quickfix: false negative when interface has concrete members
#KT-37908 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 5b927d798c Replace explicit parameter with it: don't suggest if overload resolution ambiguity error occurs
#KT-20795 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 69a2697598 Convert lambda to reference: add type parameter to outer call expression if needed
#KT-37744 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama a4239afcb3 Convert to anonymous function: do not suggest for suspend functions
#KT-37842 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama ded996bdf7 PlatformExtensionReceiverOfInline: fix false positive with extension function with nullable type receiver
#KT-37256 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 6868f53f46 "Change JVM name" (@JvmName) quickfix: improve name suggester for generic functions
#KT-38559 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 5efbbdea57 Lift assignment out: do not report when assignment variables are different
#KT-38649 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 498c40548b Structure view: add visibility sorter
#KT-36444 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama 9aaba8c759 Structure view: add visibility filter for class properties
#KT-38276 Fixed
2020-06-01 21:42:03 +09:00
Yan Zhulanow e2f0b76e2f Minor: extract new line allowance check 2020-06-01 21:42:02 +09:00
Toshiaki Kameyama 25787eb869 TrailingCommaInspection: don't report Missing line break for when entry that has no trailing comma
#KT-38568 Fixed
2020-06-01 21:42:02 +09:00
Toshiaki Kameyama 3272b8fc2c CanSealedSubClassBeObjectInspection: don't report if sub-class has classModifier
#KT-38790 Fixed
2020-06-01 21:42:02 +09:00
Toshiaki Kameyama cea879cbd5 "Make containing function suspend" quickfix: don't suggest for anonymous function
#KT-38948 Fixed
2020-06-01 21:42:02 +09:00
Toshiaki Kameyama 8f3392d635 Convert lambda to reference: fix it works correctly in anonymous object
#KT-31682 Fixed
2020-06-01 21:42:02 +09:00
Toshiaki Kameyama b9fab1123d Convert lambda to reference: fix it works correctly for labeled expression
#KT-37214 Fixed
2020-06-01 21:42:02 +09:00
Toshiaki Kameyama 2a36a8acac JavaMapForEachInspection: don't report if argument is not single
#KT-39151 Fixed
2020-06-01 21:42:02 +09:00
Yan Zhulanow 7d3b28d75b Add missing runReadAction call (EA-223789) 2020-06-01 21:42:02 +09:00
Mikhail Zarechenskiy f073e34926 Update forgotten test-data 2020-06-01 15:35:24 +03:00
Natalia Selezneva fd07d5f301 Scripting setting: auto reloading of script dependencies is now per definition 2020-06-01 15:12:53 +03:00
Roman Golyshev 8726d3dc4e KT-37950 Add io.ktor packages to 'Packages to use * import' list
- Ktor code style [here](https://ktor.io/quickstart/code-style.html)
suggests to use star imports for Ktor packages
- Absence of it in the default code style for Kotlin results in some
inconveniences during auto-import and autocompletion (see the issue)
- Automatic * import should mitigate the issue, since the first
autocompleted item from the proper package should import the whole
package, and then no further auto-import would be required for the
next completions
- KT-37950 Fixed
2020-06-01 14:41:51 +03:00
Yunir Salimzyanov 17a9d93a4f Unmute two successfully finished muted tests for 193 platform 2020-06-01 14:38:55 +03:00
Yan Zhulanow 7014c17a57 IDE plugin dependencies: Publish unshaded kotlin-scripting-compiler 2020-06-01 18:44:44 +09:00
Vyacheslav Gerasimov 8704946498 as41: Fix testResourceBundle hack for AS 4.1 2020-06-01 12:29:10 +03:00
Vyacheslav Gerasimov 7d7835f0f4 as41: Remove ApplicationUtils.kt.as41 which should be same as for 201 2020-06-01 12:29:10 +03:00
Vyacheslav Gerasimov af1e815f47 as41: Remove AbstractModelBuilderTest.java.as41
Should be same as for 201
2020-06-01 12:29:09 +03:00
Roman Golyshev 7fb5acc718 KT-18538 Fix inspection to detect unnecessary grand-base class qualifier
- Add separate option to enable/disable this inspection, as it is not
obvious if it should be always enabled or not
  - This option can be used to detect all unnecessary qualifiers in
  tests
- Add possibility to configure inspections via `settings.xml` in the
`AbstractMultiFileLocalInspectionTest.kt`
- ^KT-18538 Fixed
2020-06-01 08:59:37 +00:00
Roman Golyshev 2c12d26d28 KT-18538 Unwrap fake override in ShortenReferences
- Fake override prevents reference shortener from shortening of static
methods declared in the class bases when they are located not in
direct parent of the class (for example, in grand-
or grand-grand-parent)
- The completion uses descriptor with unwrapped fake override when it
performs the insertion. It leads to inserting the name of the base which
actually contains the static method instead of the direct parent class.
Now, when reference shortener compares unwrapped descriptors, this
problem should be fixed during insertion handling
2020-06-01 08:59:37 +00:00
Roman Golyshev 43bbfa78d1 KT-18538 Cleanup in ShortenReferences 2020-06-01 08:59:36 +00:00
Roman Golyshev 16bdfa4fee KT-18538 Cleanup in RemoveRedundantQualifierNameInspection 2020-06-01 08:59:36 +00:00
Jinseong Jeon 4a511c7721 FIR: extend arrayOf call transformation to other variants 2020-06-01 10:45:42 +03:00
Mikhail Zarechenskiy 7ec8716d65 Introduce HTML redenred version for compatibility warning 2020-06-01 10:19:36 +03:00
Mikhail Zarechenskiy 569b6eaff2 Don't issue compatibility warning for the candidates in the same group 2020-06-01 10:19:35 +03:00
Mikhail Zarechenskiy f922e454f9 Don't propagate compatibility resolve from callable reference arguments 2020-06-01 10:19:35 +03:00
Mikhail Zarechenskiy 599f520fd8 Add compatibility warning for chained sam->suspend-conversion 2020-06-01 10:19:35 +03:00
Mikhail Zarechenskiy a5203428a4 Replace resolution error for suspend-conversion with call checker error 2020-06-01 10:19:34 +03:00
Mikhail Zarechenskiy eaeaf3c8a3 Add compatibility warning for suspend conversions 2020-06-01 10:19:33 +03:00
Mikhail Zarechenskiy 47e6805186 Add compatibility warning for reference adaptation 2020-06-01 10:19:33 +03:00