Commit Graph

63570 Commits

Author SHA1 Message Date
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
Igor Yakovlev e05df9d838 Add expect/actual move refactoring support
Fixed #KT-27389
2020-03-30 13:51:24 +03:00
Igor Yakovlev bd851bf2fb Unmute enum tests for IDEA 201 2020-03-30 13:46:08 +03:00
Igor Yakovlev 43468c6d55 Filter enum synthetic methods for stub based classes
Fixed #KT-36095
2020-03-30 13:46:08 +03:00
Ilya Matveev 172a45a637 Gradle, native: Fix building platform libraries for MIPS
The sysroot for linux_mips doesn't contain one of platform
libs available for Linux (zlib). So we need to put def-files
to the K/N distribution on a per-target basis instead of putting
a single set of def-files for all targets of the same OS.

Corresponding change in the K/N repository:
https://github.com/JetBrains/kotlin-native/pull/4023

This patch take this change into account at the Gradle plugin side.
2020-03-30 17:31:12 +07:00
Nicolay Mitropolsky 872b140500 Uast: support for annotated expressions (KT-35801) 2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky c4bd1ce73c Uast: considering top reified functions as static (KT-37613) 2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky 0ca67c1bac Uast: handling reified methods receivers (KT-37613) 2020-03-30 11:58:51 +03:00
Victor Petukhov d6d19b563d [Spec tests] Exclude spec consistency test from common test task 2020-03-30 11:15:55 +03:00
Victor Petukhov 218c13efc5 [FIR] Remove links to spec sentences during comparison fir and old front-end test data 2020-03-30 11:15:55 +03:00
Victor Petukhov a29385e758 [Spec tests] Small clean-up CheckerTestUtil and around it 2020-03-30 11:15:55 +03:00
anastasiia.spaseeva 90d1cdf2e1 [Spec tests] Add tests for section call-with-trailing-lambda-expressions 2020-03-30 11:15:55 +03:00
anastasiia.spaseeva 4736b3b348 [Spec tests] Add tests for call-with-named-parameters 2020-03-30 11:15:55 +03:00
anastasiia.spaseeva bb1ee952ba [Spec tests] Add tests for call-without-an-explicit-receiver, receivers 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 35de6a3f6e [Spec tests] Add tests for overload-resolution, building-the-overload-candidate-set-ocs, operator-call:
-properties available through the invoke convention are non-eligible for operator calls
  -smart casts and overload-resolution
  -candidate sets
2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 4301744d2d [Spec tests] Add test for infix fun + KT-36786 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva c9bb994fb5 [Spec tests] Add tests to check overload resolution for implicitly imported infix functions 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 9711fda353 [Spec tests] Add tests for property-like callables prioritization 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 157e33d08b [Spec tests] Add tests for receivers prioritization 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 3b35374186 [Spec tests] Add diagnostics tests for building-the-overload-candidate-set-ocs, call-with-an-explicit-receiver 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva 81b6e5a373 [Spec tests] Add box tests for callables-and-invoke-convention to check priority 2020-03-30 11:15:54 +03:00
anastasiia.spaseeva f7ff60cb77 [Spec tests] Add DEBUG_INFO_AS_CALL diagnostic tag for callable references 2020-03-30 11:15:53 +03:00
anastasiia.spaseeva 008a0df28f [Spec tests] DEBUG_INFO_LEAKING_THIS diagnostics type is changed from error to  info 2020-03-30 11:15:53 +03:00
Victor Petukhov f76faaf1b0 [Spec tests] Unify platform dependent part of fixed exception 2020-03-30 11:15:53 +03:00
anastasiia.spaseeva 5986ffae1e [Spec tests] Add tests for expressions and statements 2020-03-30 11:15:53 +03:00
anastasiia.spaseeva 5f4a94a1b3 [Spec tests] Enable running spec tests at all for remote run 2020-03-30 11:15:53 +03:00
anastasiia.spaseeva 509036b08b [Spec tests] Update spec tests metadata 2020-03-30 11:15:53 +03:00
anastasiia.spaseeva 8b307c0a2a [Spec tests] KT-35494 test update 2020-03-30 11:15:53 +03:00
anastasiia.spaseeva 1caafdc9d4 [Spec tests] Updating tests for kotlin 1.4.0 2020-03-30 11:15:53 +03:00
Victor Petukhov ab3b63c92a [Spec tests] Apply changes in parse trees due to trailing comma introducing 2020-03-30 11:15:52 +03:00
victor.petukhov f62901d7d9 [Spec tests] Actualize spec tests 2020-03-30 11:15:52 +03:00