Commit Graph

59557 Commits

Author SHA1 Message Date
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
Mikhail Glukhikh f58af2e4c3 FIR2IR: fix constructor referencing in return statement 2019-11-28 13:50:10 +03:00
Sergey Bogolepov 96e6602da2 [kotlinx-metadata-jvm] Fix typo 2019-11-28 17:32:03 +07:00
Mikhail Glukhikh 29e882eae7 FIR resolve: add minor comments about substitutions around JvmMappedScope 2019-11-28 13:18:11 +03:00
Mikhail Glukhikh e43a1ee1c5 FIR JvmMappedScope: substitute type parameters in Java scope with Kotlin ones
Without it, override mapping does not work properly.
NB: at this moment Java forEach often supersedes Kotlin forEach,
because call isn't reported as erroneous properly.
2019-11-28 13:18:11 +03:00
Mikhail Glukhikh 2c611d75bc [FIR TEST]: two more tests on forEach potential ambiguity (both passing) 2019-11-28 13:18:10 +03:00
Mikhail Glukhikh 4f1167b16f Move buildDefaultUseSiteMemberScope to FirSymbolProvider 2019-11-28 13:18:10 +03:00
Mikhail Glukhikh 71b95bd91d FIR resolve: make substitution also for mapped Java type parameters 2019-11-28 13:18:10 +03:00
Mikhail Glukhikh b3056b8bf5 FIR resolve: implement JVM K/J type mapping
Declared member scopes are now wrapped in JvmMappedScope
2019-11-28 13:18:10 +03:00
Toshiaki Kameyama 3a576ce14f KT-21811 Convert string concatenation into multiline string (#2772)
New J2K: Convert string concatenation into multiline string

#KT-21811 Fixed
2019-11-28 13:14:48 +03:00
Nikolay Krasko c14affd6cd Minor: forgotten change after review 2019-11-28 12:02:00 +03:00
Nikolay Krasko 35fec9e9db Fix withJava test after resorting annotation targets
Was broken after eb71e68.
2019-11-28 12:02:00 +03:00
Nicolay Mitropolsky c06f737519 Uast: SimpleKotlinRenderLogTest.testBitwise UMethod testdata fix 2019-11-28 11:41:00 +03:00
Toshiaki Kameyama bfa6c7d399 Move statement: don't move declarations above package and import directives 2019-11-28 11:20:09 +03:00
Mikhael Bogdanov 742c3a228a JVM_IR. Proper lower toArray functions 2019-11-28 08:31:15 +01:00
Natalia Selezneva 6a18ef1417 Minor: compare system independent paths 2019-11-28 09:40:04 +03:00
Sergey Bogolepov a08cf59017 [kotlinx-metadata] Add extensions for KmValueParameter
There is no extension on jvm, but klibs have parameter annotations.
2019-11-28 10:40:21 +07:00
Sergey Bogolepov 18bb615dd9 [kotlinx-metadata-klib] Fix library reading
* To be able to deserialize metadata we need to include ":core:deserialization".
* Use per-fragment string tables.
* Read file names from strings instead of file names list.
2019-11-28 10:40:20 +07:00
Nikolay Krasko c341a3e709 Avoid collecting events from other projects in PerModulePackageCacheService (KT-33802)
It looks like VFS_CHANGES subscription ignores project boundaries so all events are processed by every listener. If event has a hard reference to project in the requestor field, it might leak through the collection of pending events.

An attempt to fix holding test projects through pending events.

 #KT-33802 Fixed
2019-11-27 22:34:48 +03:00
Nikolay Krasko 7245bbd822 Explicitly disconnect in KotlinPackageContentModificationListener (KT-33802) 2019-11-27 22:34:48 +03:00
Vyacheslav Gerasimov 0cde2e2f5b Build: Fix ivy repository for android sdk
There is no `artifact()` in metadataSources by default in gradle 6.0
2019-11-27 21:26:34 +03:00
Vyacheslav Gerasimov 8d31d4a60f Replace com.moowork.node plugin with com.github.node-gradle.node 2019-11-27 21:26:34 +03:00