Ilya Kirillov
087de68b3a
Wizard: flatten JVM targets
...
#KT-36267 fixed
2020-02-26 11:19:06 +03:00
Ilya Kirillov
54c9582ac4
Wizard: fix wrong line separators
...
#KT-36328 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
fa4d790f5a
Wizard: add jvm target setting for JVM configurations
...
#KT-36180 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
fabb0584da
Wizard: remove module types for some module configurators
...
#KT-36176 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
0123dbce21
Wizard: trim paths in UI
...
#KT-36163 fixed
2020-02-26 11:19:05 +03:00
Ilya Kirillov
152def62cb
Wizard: get current Kotlin version from compiler
...
#KT-35693 fixed
2020-02-26 11:19:05 +03:00
Dmitry Gridin
50c2c38624
Tests: fix some tests in formatter for AS
2020-02-26 13:51:47 +07:00
Dmitry Gridin
ca598b6465
Formatter: fix indent after trailing comma in calls
...
#KT-36917 Fixed
2020-02-26 10:55:58 +07:00
Abduqodiri Qurbonzoda
1f721796b8
Add vararg overloads for maxOf/minOf functions #KT-33906
2020-02-26 04:17:19 +03:00
Vyacheslav Gerasimov
5aae3b5d27
Build: Add localBuildCacheDirectory property to KotlinBuildProperties
2020-02-25 19:37:33 +03:00
Vyacheslav Gerasimov
fc2161c2a6
Build: Don't cache :kotlin-compiler:proguard
...
Requires to mark inputs of proguard task properly
2020-02-25 19:17:02 +03:00
Dmitry Savvinov
428dcd847f
Flip default value of kotlin.gradle.testing.enabled to true
2020-02-25 17:18:49 +03:00
nataliya.valtman
d82dc86c71
Reverts commit 13afb2e4 (buildSrc bootstrap version)
2020-02-25 17:08:51 +03:00
Sergey Rostov
5e16373af6
.gradle.kts, changes notifier: process events async and on pooled thread
...
#KT-36401 Fixed
2020-02-25 16:00:20 +03:00
Mikhail Zarechenskiy
5393074d61
[NI] Update type of complex subcall for last lambda expressions
2020-02-25 15:26:25 +03:00
Dmitry Savvinov
66ef49cecc
Fix CCE under composite mode
...
This commit essentially reverts change in IdeaResolverForProject made in
423aeb9a08
The issue is that 'platform.findAnalyzerServices' may return non-
CompositeAnalyzerServices even under composite analysis mode, when
platform is single-target (e.g. 'JvmAnalyzerServices' for JVM-only)
^KT-36978
2020-02-25 15:09:49 +03:00
Ilya Kirillov
b21a9476c0
New J2K: minor, use firstNotNullResult in j2k reference resolver
2020-02-25 13:58:29 +03:00
Ilya Kirillov
b7711678c2
EA-218474: fix IAE in resolving empty fqName in new J2K
2020-02-25 13:58:29 +03:00
Ilya Kirillov
af5a70dcf5
EA-218043: fix getting resolution facade for empty list of elements in new J2K
2020-02-25 13:58:29 +03:00
Ilya Kirillov
a64526acfb
EA-210533: fix NPE in LiftReturnOrAssignmentInspection
...
It may be still active after its application due to slow IDEA responsiveness
Do not try to apply it again on invalid PSI elements
2020-02-25 13:58:29 +03:00
Ilya Kirillov
9af30f4ac7
EA-210362: fix invalid cast to KtFile in KtCodeFragment
2020-02-25 13:58:28 +03:00
Ilya Kirillov
7f50dcb3a8
EA-210234: Fix invalid access to Java resolution facade
...
Do not try to get Java resolution facade for non-Java PSI elements
2020-02-25 13:58:28 +03:00
Ilya Kirillov
af6d5b76f5
EA-209576: Fix access to disposed module in gradle importer
2020-02-25 13:58:28 +03:00
Steven Schäfer
2b6a0d6c58
JVM IR: Don't create $annotations stubs for fake overridden properties
2020-02-25 11:31:01 +01:00
Alexander Gorshenev
3eed0609b2
Brought back mppKlibs guard lost in rebase
2020-02-25 13:26:11 +03:00
Dmitry Gridin
36ebbc49f4
KotlinExpressionMover: trailing comma support
...
#KT-34744
2020-02-25 17:13:43 +07:00
Dmitry Gridin
72c8b38864
KotlinExpressionMover: convert to Kotlin
2020-02-25 17:10:58 +07:00
Dmitry Gridin
bca9242492
KotlinExpressionMover: rename .java to .kt
2020-02-25 17:03:28 +07:00
Dmitry Gridin
56064f2a92
JoinLines: add tests
2020-02-25 17:03:28 +07:00
Dmitry Gridin
feaa53c4f2
Formatter: shouldn't format property chains
...
#KT-36387 Fixed
#KT-36466 Fixed
2020-02-25 16:48:33 +07:00
Mikhail Glukhikh
522eeae062
FIR2IR: standardize expression with smart cast conversion
...
To convert smart cast expression, now we just convert
original expression in standard way and wrap it with TYPE_OP.
Before this commit original expression was converted in different way,
that led to errors e.g. for this expression casting.
2020-02-25 12:13:42 +03:00
Mikhail Glukhikh
d1fac6dce1
FIR2IR: declare receivers for all accessors of extension properties
...
Before this commit, extension receivers were declared only for
properties with container source, which is strange & inconsistent.
Now we declare accessor extension receiver iff corresponding property
has extension receiver.
2020-02-25 12:13:42 +03:00
Mikhail Glukhikh
8c155578f7
FIR2IR: generate both dispatch & extension receiver without 'else if'
2020-02-25 12:13:42 +03:00
Juan Chen
4f6fe1d0ca
[FIR]: fix translation of top-level property accesses like array.indices
...
This commit addresses the following issues:
* accessors didn't take into account their property's receiver type,
which caused NoSuchMethod due to signature mismatch. Now the property's
receiver type is passed to Fir2Ir translation of accessors.
* property's parent was not class, e.g., kotlin.collections.indices.
Now the symbol table collects WrappedPropertyDescriptorWithContainerSource
besides WrappedFunctionDescriptorWithContainerSource, so that
facade classes for such properties can be generated before codegen.
* accessor's parent was not class. Now the containerSource of
the property descriptor is passed to accessor descriptor.
2020-02-25 12:13:42 +03:00
Vladimir Dolzhenko
c9658eb6e4
Adjust tests due to keep imports for extension functions used in kdoc
...
Relates to #KT-27601
2020-02-25 09:29:39 +01:00
Vladimir Dolzhenko
afd71d3d19
Adjust tests due to "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
Relates to #KT-34026
Relates to #KT-34332
2020-02-25 09:23:46 +01:00
Dmitry Petrov
b047d78580
Minor: update testData for IR bytecode text and unmute test
2020-02-25 11:17:08 +03:00
Mikhail Zarechenskiy
0b9fc1541d
[NI] Don't try inferring variables for effectively empty system
2020-02-25 10:45:59 +03:00
Kristoffer Andersen
fe71d5256c
[Minor] Refactor IR Suspend Main code to not use intrinsic
2020-02-24 19:33:43 +01:00
pyos
a3d85e108f
JVM_IR: keep suspend fun return type in IrCalls
...
Otherwise:
* should the dispatch receiver of a call be another call to a `suspend
fun` wrapped in something that is optimized away later, the owner of
the method will be incorrect;
* references to functions returning non-Unit but casted to `() ->
Unit` (allowed by new inference) might in fact not return Unit after
tail call optimization.
2020-02-24 17:12:43 +01:00
Mads Ager
d982203d56
[JVM_IR] Handle big arity suspend functions in existing lowering.
...
Now that suspend function views are created in
AddContinuationLowering, we can let the
FunctionNVarargBridgeLowering deal with rewriting of large
arity FunctionN/SuspendFunctionN.
2020-02-24 13:01:18 +01:00
Toshiaki Kameyama
e406669190
Invert if condition intention: don't add unnecessary 'continue'
...
#KT-12329 Fixed
2020-02-24 11:17:20 +01:00
Toshiaki Kameyama
62e335ac88
Implement members: fix it works correctly for data class
...
#KT-36686 Fixed
2020-02-23 22:00:38 +01:00
Georgy Bronnikov
fe009ac695
IR: restore reading common Klib from JVM
...
Adapt to changes in linker
2020-02-23 14:55:29 +03:00
Toshiaki Kameyama
d54a35ef56
Add "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
#KT-34026 Fixed
#KT-34332 Fixed
2020-02-23 10:17:10 +01:00
nataliya.valtman
13afb2e45e
Make kotlin build version for buildSrc the same as for kotlin project
2020-02-23 09:02:22 +03:00
Toshiaki Kameyama
699ea0aa2b
Replace 'if' with 'when': don't swallow comments if there is no synthetic else branch
...
#KT-34640 Fixed
2020-02-22 16:50:37 +01:00
Toshiaki Kameyama
f487118be5
Change signature: fix it works correctly when call site function has no value argument list
...
#KT-23510 Fixed
2020-02-22 09:07:34 +01:00
kvirolainen
223ed1ad60
KT-27601 review fixes
2020-02-22 08:55:50 +01:00
kvirolainen
90cfa80683
KT-27601 keep imports for extension functions used in kdoc
2020-02-22 08:55:50 +01:00