Commit Graph

59578 Commits

Author SHA1 Message Date
pyos fa8cb7b6e0 PSI2IR: support NewInference + SamConversionPerArgument
except for SAM conversions of varargs (which aren't implemented in the
non-IR JVM backend either btw)
2019-11-29 15:25:32 +03:00
Mikhael Bogdanov cf6f823d29 Use descriptor from resolved call to inline accessors
In case of inline it should be same descriptor (except of fake override), In general case getter could be synthetic accessor and in such case it's not inline
2019-11-29 13:15:42 +01:00
Mikhael Bogdanov 320c5f6f00 Cast dispatch receiver to actual declaration owner though inline
Otherwise corrupted frame information is generated in bytecode

 #KT-29242 Fixed
2019-11-29 13:15:42 +01:00
Ilya Goncharov 25dea2ccce [Gradle, JS] Add description of separator of java inner classes 2019-11-29 15:09:36 +03:00
Ilya Goncharov 8d123d209a [Gradle, JS] Add description of hack on our side to avoid IDEA run only JVM tests by gutters 2019-11-29 15:09:36 +03:00
Ilya Goncharov d02bcb30e3 [Gradle, JS] Move classNameOnlyRegExp to class level 2019-11-29 15:09:36 +03:00
Ilya Goncharov 38bd738724 [Gradle, JS] Add comments 2019-11-29 15:09:36 +03:00
Ilya Goncharov 418c0496f1 [Gradle, JS] Fix regex on method
- Find method declaration like not containing dot
2019-11-29 15:09:36 +03:00
Ilya Goncharov 3e1fe0af92 [Gradle, JS] Add exact filter by class name only 2019-11-29 15:09:36 +03:00
Ilya Goncharov 0037e74d3e [Gradle, JS] Fix StartsWith filter 2019-11-29 15:09:35 +03:00
Ilya Goncharov de8610a279 [Gradle, JS] Add java class filters like in gradle 2019-11-29 15:09:35 +03:00
Ilya Goncharov 50d165167c [Gradle, JS] Update npm dependencies 2019-11-29 15:09:35 +03:00
Ilya Goncharov 1cc980e21b [Gradle, Idea] Create dummy tasks with type Test to WA platform problem
Platform set filters only for Test task
Create dummy Test task
Non JVM test task depends on Test task
After evaluate copy filters from Test task to non JVM test task
2019-11-29 15:09:35 +03:00
Ilya Goncharov 86e665e2b3 [Gradle, Idea] Add Gutter Configurator for non-jvm tests 2019-11-29 15:09:35 +03:00
Roman Golyshev 3112d70420 KT-35042 Fix InsertHandlerProvider.kt to work with suspend functional parameters
- ^KT-35042 Fixed
- Also, fix review suggestions for KOTLIN-CR-3495
2019-11-29 14:55:22 +03:00
Roman Golyshev 6f234beb9c KT-34414 Make sure completion for suspend functional parameters works too
- Replace `isFunctionType` with `isBuiltinFunctionalType` where it is relevant
- ^KT-34414 Fixed
2019-11-29 14:55:21 +03:00
Igor Yakovlev 541ca31584 Fix for exception on HelpAction in KotlinInlineValDialog 2019-11-29 14:42:34 +03:00
Igor Yakovlev a672427e72 Add invokeLater for inlining extra refactoring in branchedTransformations intension
Fixed #EA214432
2019-11-29 14:42:26 +03:00
Dmitry Petrov a2188610b1 Promote KotlinABI version 2019-11-29 13:53:05 +03:00
Dmitry Petrov 55e9e8afbf IR ser/deser: IrSimpleFunction.isOperator 2019-11-29 13:53:05 +03:00
Dmitry Petrov 0681c0d956 IR BE Common: IrSimpleFunction.isOperator 2019-11-29 13:53:05 +03:00
Dmitry Petrov 4591dfdf47 JVM_IR: IrSimpleFunction.isOperator 2019-11-29 13:53:05 +03:00
Dmitry Petrov 31b63c0fc8 JS_IR: IrSimpleFunction.isOperator 2019-11-29 13:53:05 +03:00
Dmitry Petrov cb1b9c2ccf IR testData: IrSimpleFunction.isOperator 2019-11-29 13:53:05 +03:00
Dmitry Petrov e4303b0173 FIR2IR: IrSimpleFunction.isOperator 2019-11-29 13:53:04 +03:00
Dmitry Petrov d6db6becb9 IR: IrSimpleFunction.isOperator 2019-11-29 13:53:04 +03:00
Nikolay Krasko ec03c3b85d Minor: remove url to avoid difference in test data in 183 and 191 2019-11-29 12:56:50 +03:00
Nikolay Krasko 9c0c9ea849 Use Kotlin wrapper for LightIdeaTestCase 2019-11-29 12:56:50 +03:00
Nikolay Krasko 32f4ab96c4 Use Kotlin wrapper for LightCodeInsightTestCase tests
This will help in resolving compatibility issues and will allow to add
common functionality to all tests.
2019-11-29 12:56:49 +03:00
Nikolay Krasko 6f3e7acfa2 Remove adhock flaky highlighting performance tests
We now have dedicated tests for it.
2019-11-29 12:35:44 +03:00
Dmitry Gridin 2fabf86f29 Formatter: cleanup code 2019-11-29 16:28:59 +07:00
Dmitry Gridin 70185ba2a6 Formatter, NJ2K: fix indent for comments inside function literals
#KT-4194 Fixed
#KT-31881 Fixed
#KT-34673 Fixed
#KT-35152 Fixed
2019-11-29 16:28:59 +07:00
Nicolay Mitropolsky bfa6bd1396 Uast: buildLightMethodFake provides proper containing class and parent 2019-11-29 12:28:02 +03:00
Kirill Shmakov 79bfada65b Read xcodeproj file location from gradle.properties 2019-11-29 12:22:43 +03:00
Toshiaki Kameyama f7ff397a31 Move statement: enable single lambda expression function
#KT-10478 Fixed
2019-11-29 11:33:27 +03:00
Ilmir Usmanov 51a9df2902 JVM_IR: Support suspend lambdas with receivers and multiple parameters
In old BE we generate `create` for this kind of suspend lambdas, which,
like in simple suspend lambdas is responsible for putting arguments
(including extension receiver) to fields.
But, if number of parameters of suspend lambda (including receiver) >= 1,
there is no need to generate `create`, since `create` is called only by
`createCoroutine` and friends from stdlib, and there is no version of
`createCoroutine` for lambdas with multiple parameters.
Thus, in old BE we generate a redundant method, which affects method
count.
In JVM_BE we decided to 'inline' create into `invoke` for suspend lambdas
with multiple parameters.
2019-11-28 21:19:27 +03:00
pyos 98660cdf2d JVM_IR: serialize anonymous functions' descriptors 2019-11-28 18:17:01 +01:00
victor.petukhov e246c23a46 Fix prematurely analyzing a lambda while fixing a type variable for another argument
^KT-35168 Fixed
2019-11-28 19:03:30 +03:00
Dmitriy Novozhilov c4a115720e [FIR-TEST] Update testdata
It was forgotten in 61c17d91
2019-11-28 18:01:14 +03:00
pyos 2f4f09e3a2 JVM_IR: remove some redundant calls to deepCopyWithSymbols 2019-11-28 15:42:06 +01:00
Simon Ogorodnik dbf0742c00 [FIR] Fix self-type for enum 2019-11-28 17:23:05 +03:00
Vyacheslav Gerasimov 26113b1e0f Create target directories while copying compiler.xml for tests 2019-11-28 16:02:41 +03:00
Mikhail Glukhikh 6401596d58 FIR resolve: support processing extensions before members (forEach case) 2019-11-28 15:36:58 +03:00
Dmitriy Novozhilov 61c17d9110 [FIR-TEST] Add test with missing smartcast 2019-11-28 15:28:21 +03:00
Dmitriy Novozhilov dcd1c2647e [FIR-TEST] Add test with problem with default java importing scope 2019-11-28 15:28:21 +03:00
Dmitriy Novozhilov bb89fee431 [FIR-TEST] Add test with ambiguity in static java scopes 2019-11-28 15:28:20 +03:00
Roman Artemev 4759c16428 [JS IR] Fix IrGetClass for Throwable successors
- add test
2019-11-28 14:45:34 +03:00
Roman Artemev 757ddd9179 [JS IR] Fix standard collections
- remove PlatformDependent annotated methods
2019-11-28 14:45:34 +03:00
Yan Zhulanow 606cad1059 Pill: Add fir/lightTree module 2019-11-28 20:02:41 +09:00
Yan Zhulanow 60a77acd7a Pill: Fix compiler tests (support both JPS build and Pill in JUnit 3 runner) 2019-11-28 20:02:40 +09:00