Commit Graph

63600 Commits

Author SHA1 Message Date
Jinseong Jeon ff104f4037 [FIR2IR] Set proper visibility of backing fields 2020-03-31 13:12:36 +03:00
Toshiaki Kameyama 6a1923a477 "Convert to anonymous object" intention: suggest for kotlin fun interface
#KT-37749 Fixed
2020-03-31 12:17:16 +03:00
Pavel Kirpichenkov 0abe3a6c39 [NI] Report not-a-class LHS error for callable reference arguments
^KT-37531 Fixed
2020-03-31 12:04:01 +03:00
Pavel Kirpichenkov b7ea590e23 [IDEA] Add HTML render for ambiguous callable references diagnostic
^KT-36125 Fixed
2020-03-31 12:04:01 +03:00
Pavel Kirpichenkov a416fde814 [NI] Move abstract class instantiation check to call checkers
This way the check works for callable reference arguments.
Also candidate applicability during resolution does not change compared to the old inference.
^KT-37530 Fixed
2020-03-31 12:04:01 +03:00
Nicolay Mitropolsky 3f00de5d7b Uast: fallback to call braces in getting the anchor for call-expressions in complex cases (KT-36273) 2020-03-31 11:56:31 +03:00
Nicolay Mitropolsky f98a1de7c3 Uast: making convertDeclaration always convert the originalElement (KT-35848) 2020-03-31 11:56:31 +03:00
Miguel Serra 61ad32f012 Samples of Map functions "contains" and "isNotEmpty"
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
2020-03-31 04:54:51 +03:00
Ilya Gorbunov 606b4db48a Improve samples for partition: add destructuring 2020-03-31 02:04:56 +03:00
n-p-s 7bb7c86fa9 Add samples for partition 2020-03-31 02:04:55 +03:00
Ilya Gorbunov dd2aa3de28 Add sample for filterNot and improve sample for filter 2020-03-31 02:04:55 +03:00
Brian Plummer f887a29279 Add sample for filter 2020-03-31 02:04:55 +03:00
adammc331 840f222867 Add sample for filterNotNull 2020-03-31 02:04:55 +03:00
Scott Weber e8ee405cdb Add sample for text version of chunked 2020-03-31 02:04:55 +03:00
Vladimir Dolzhenko 3f9892a49d Revert "Avoid run DefinitionsCollectorBackgroundTask on AWT in tests"
This reverts commit 52cc7aa1
2020-03-30 21:17:04 +02:00
Dmitry Petrov 4ade669b9b Minor: unmute 2 tests fixed in FIR 2020-03-30 21:10:59 +03:00
anastasiia.spaseeva 0397470b85 [Spec tests] Update tests with spec version 0.1-313 2020-03-30 19:12:55 +03:00
Vladimir Dolzhenko 52cc7aa117 Avoid run DefinitionsCollectorBackgroundTask on AWT in tests 2020-03-30 17:38:58 +02:00
Vladimir Dolzhenko 5f66458cb5 Fix flaky ConfigureKotlinTest 2020-03-30 17:38:56 +02:00
Pavel Punegov d0e28d7c8d Ignore Java-sepcific test in Native 2020-03-30 18:31:50 +03:00
Nikolay Krasko 02b651ef28 201: Update to 201.6668.13 2020-03-30 18:09:30 +03:00
Nikolay Krasko 1c3c1546b5 Fix JSR223 dependency on daemon in tests 2020-03-30 18:09:30 +03:00
Nikolay Krasko 46174a8c32 201: Apply workaround for IDEA execution in daemon main 2020-03-30 18:09:29 +03:00
Nikolay Krasko 148cbe87f4 201: Use idea.plugins.compatible.build to avoid problems with build number 2020-03-30 18:09:29 +03:00
Nikolay Krasko a8c3e4aa6f 201: Add additional registry key 2020-03-30 18:09:29 +03:00
Nikolay Krasko e618c211b4 Run test with full path to maven (KT-37654)
Prepare to mvn update on build server to fix sporadic
failures on Windows
2020-03-30 18:09:29 +03:00
Georgy Bronnikov 5fe28b3179 IR: explicitly pass isFakeOverride to buildFun and friends 2020-03-30 17:32:02 +03:00
Georgy Bronnikov fb6956f842 IR common: use .isFakeOverride instead of checking origin 2020-03-30 17:32:02 +03:00
Georgy Bronnikov 2784e30fd4 JVM_IR: use .isFakeOverride instead of testing origin 2020-03-30 17:32:02 +03:00
Roman Artemev 0480f2d170 [JS IR] Fix usages of 'IrDeclarationOrigin.FAKE_OVERRIDE' 2020-03-30 17:32:02 +03:00
Roman Artemev e4ad6698fb [IR] Fix fake override checkers 2020-03-30 17:32:02 +03:00
Dmitry Petrov cec64a2ec7 KT-37861 'this' is uninitialized in constructor default parameters 2020-03-30 17:23:15 +03:00
Jinseong Jeon 078cf02c8a FIR: Provide dispatch receiver for 'field' according to property type 2020-03-30 16:57:53 +03:00
Mikhail Glukhikh a0978a50e8 [FIR2IR] Correct 'this' conversion when it points to non-closest class 2020-03-30 16:57:52 +03:00
Jinseong Jeon 4388b30f87 [FIR] Fix anonymous object handling as 'this' receiver 2020-03-30 16:57:52 +03:00
Victor Petukhov c8206c4666 [Spec tests] Fix mistakes during parsing compiler tests to extract spec links 2020-03-30 16:40:57 +03:00
Mikhail Glukhikh d1fc6ff6ee [FIR2IR] Don't provide backing field symbols for non-Java property refs 2020-03-30 16:23:11 +03:00
Mikhail Glukhikh d4ae992417 [FIR] Apply type arguments for callable references 2020-03-30 16:23:11 +03:00
Mikhail Glukhikh 8fbc6e37e5 [FIR2IR] Rename: CallGenerator -> CallAndReferenceGenerator 2020-03-30 16:23:11 +03:00
Mikhail Glukhikh 810b607a65 [FIR2IR] Provide receivers also for property callable references 2020-03-30 16:23:10 +03:00
Mikhail Glukhikh 697006d782 [FIR2IR] Re-use receiver application logic in callable ref conversion 2020-03-30 16:23:10 +03:00
Mikhail Glukhikh 1b1902f6ee [FIR2IR] Move callable reference conversion to CallGenerator 2020-03-30 16:23:10 +03:00
Juan Chen d8539fdde9 [FIR2IR] Add dispatch & extension receivers to callable references 2020-03-30 16:23:10 +03:00
Igor Yakovlev 5414b9dfb3 Refactor Move refactoring 2020-03-30 15:49:31 +03:00
Igor Yakovlev a9de0a219b Refactor of Move refactoring
1) Expect/actual move checkbox is visible when expect/actual listed in selection list only
2) Fixed invalid temprary renaming (when source file name exists in target directory)
3) Fixed invalid file delition when "delete all files" checkbox is unchecked (KT-36072)
4) Removed UpdatePackageDirective checkbox (now it always updated instead of unpredicted behavior)
5) Removed SpecifyFileNameInPackage checkbox (in case of it redundancy)
6) Wrap resolve operations into the process
7) Minor refactorings
8) Fixed MPP declaration move top level declarations
2020-03-30 13:51:28 +03:00
Anton Yalyshev 8877559c02 Add FUS support to move refactoring 2020-03-30 13:51:28 +03:00
Igor Yakovlev f489eda0e7 Remove TextOccurrencesUtil.findNonCodeUsages reprecated usages for 201 platform 2020-03-30 13:51:27 +03:00
Igor Yakovlev b205b017fe Fixed references move refactoring for NonCode usages
We need to try correctly refactor NonCode usages of Java-like facade FQ names
i.e. if we have file A.kt with method foo we need to check AKt.foo and foo entries for non-code text search

Fixed #KT-36382
2020-03-30 13:51:27 +03:00
Igor Yakovlev aef8028a9c Fix changing kotlin class usages in java while move refactoring
Fixed #KT-36114
2020-03-30 13:51:25 +03:00
Igor Yakovlev ff831aded4 Move refactoring on kts fixes
Set file target filenames to kts if moved declarations are from kts
Fixed exceptions throwing on script declaration move that could lead to not valid file state (Fixed #KT-36129)
2020-03-30 13:51:25 +03:00