Dmitry Petrov
1353cf879c
IR: Drop obsolete builders (should be rewritten)
2018-06-29 11:24:46 +03:00
Dmitry Petrov
f66f3c1fed
psi2ir: cleanup TypeTranslator
2018-06-29 11:24:46 +03:00
Dmitry Petrov
4bd2504367
IR declarations: KotlinType -> IrType
2018-06-29 11:24:46 +03:00
Dmitry Petrov
4992ca9179
IR expressions: KotlinType -> IrType
2018-06-29 11:24:46 +03:00
Dmitry Petrov
c28877d23c
psi2ir: approximate types in TypeTranslator
2018-06-29 11:24:46 +03:00
Dmitry Petrov
1be28d6032
IrType -> IrDynamicType, IrErrorType, IrSimpleType
2018-06-29 11:24:46 +03:00
Mikhail Glukhikh
fdc0335b4a
Add actual: handle (incorrect) case with expect function with body
...
So #KT-23326 Fixed
2018-06-29 10:54:37 +03:00
Mikhail Glukhikh
0fb183e302
Add actual: handle parameters with val/var as compatible with property
...
So #KT-23762 Fixed
2018-06-29 10:54:36 +03:00
Mikhail Glukhikh
dd0b267531
Add actual: handle primary & secondary constructors as compatible
...
So #KT-23686 Fixed
2018-06-29 10:54:35 +03:00
Mikhail Glukhikh
082c3e6767
Reformat: AddActualFix
2018-06-29 10:54:33 +03:00
Mikhail Glukhikh
16c6d63b10
Create actual: do not generate default parameter values
...
So #KT-23105 Fixed
2018-06-29 10:54:32 +03:00
Mikhail Glukhikh
b13e4535f5
Safe delete: add dialog asking about expect / actual declarations
...
Related to KT-15666
2018-06-29 10:54:30 +03:00
Mikhail Glukhikh
aac71bf904
Safe delete: when invoking on actual, delete expect & actual neighbors
...
So #KT-15666 Fixed
2018-06-29 10:54:24 +03:00
Mikhail Glukhikh
50e70e4638
Safe delete: when invoking on expect, delete also relevant actual
...
Partial fix of KT-15666
2018-06-29 10:53:43 +03:00
Mikhail Glukhikh
465d5c077e
Safe delete: search for actual declarations more accurately
2018-06-29 10:53:42 +03:00
Mikhail Glukhikh
5bdaef4983
Cleanup: KotlinSafeDeleteProcessor
2018-06-29 10:53:42 +03:00
Alexey Tsvetkov
8848d7a043
Remove groovy plugin from kotlin-gradle-plugin build script
2018-06-28 22:03:11 +03:00
Alexey Tsvetkov
22c1907167
Track project version in ":kotlin-gradle-plugin:processResources"
...
Before the change consecutive incremental builds with different project versions
produced kotlin-gradle-plugin with the same project.version in project.properties file
2018-06-28 22:03:11 +03:00
Alexey Tsvetkov
3a7c674957
Fix test dependencies in jps-plugin
...
Otherwise tests fail on clean checkout
2018-06-28 22:03:10 +03:00
Alexey Sedunov
a63aa5b7ca
Misc: Restore utility functions misplaced in a previous commit
2018-06-28 20:39:16 +03:00
Alexey Sedunov
76ac65f723
Configuration: Use soft references to keep library kind cache
...
#KT-24943 Fixed
2018-06-28 18:22:28 +03:00
Alexey Sedunov
60583e557f
PSI: Do not delete package directive for file in default package
...
#KT-24968 Fixed
2018-06-28 18:22:28 +03:00
Alexey Sedunov
e2a632e326
Misc: Add "refactoring exit" message
...
This allows executing mandatory code at the end of particular refactoring.
Also this fixes memory leak due to listener not being disposed
#KT-17235 Fixed
2018-06-28 18:22:28 +03:00
Alexey Sedunov
ba2f28720f
Introduce Parameter: Fix exceptions caused by write actions in dialogs
...
#KT-24992 Fixed
2018-06-28 18:22:27 +03:00
Alexey Sedunov
ed597e2da5
Extract Function: Make compliant with PublicApiImplicitTypeInspection
2018-06-28 18:22:27 +03:00
Alexey Sedunov
633c67ebf0
Misc: Use KtToken to represent visibility in ExtractableCodeDescriptor
2018-06-28 18:22:27 +03:00
Mikhael Bogdanov
b1693acfcd
Unmute smap test in ir
2018-06-28 17:12:09 +02:00
Alexey Sedunov
83745010ba
Search Everywhere: Update renderer to reflect changes in IDEA
...
#KT-24812 Fixed
2018-06-28 17:52:05 +03:00
Alexey Sedunov
31d248c42d
Search Everywhere: Use Kotlin renderer for Kotlin elements only
2018-06-28 17:52:05 +03:00
Alexey Sedunov
bede2e1c16
Extract Interface: Fix type import when converting parameter to property
...
#KT-18736 Fixed
2018-06-28 17:52:05 +03:00
Alexey Sedunov
9b7450cfdb
Extract Superclass: Report private members used in abstracted members
...
#KT-16284 Fixed
2018-06-28 17:52:04 +03:00
Alexey Sedunov
bd88e02172
Extract Superclass: Fix visibility lifting when moving to interface
...
#KT-16281 Fixed
2018-06-28 17:52:04 +03:00
Alexey Sedunov
b0e0460ee6
Extract Superclass: Allow extraction to existing file
...
#KT-15351 Fixed
2018-06-28 17:52:04 +03:00
Alexey Sedunov
5ef54a2f03
Extract Superclass: Run refactoring inside of transaction
...
#KT-18555 Fixed
2018-06-28 17:52:03 +03:00
Nikolay Krasko
87f4d0c5a4
Move "Copy Current File As Diagnostic Test" action to internal (KT-25164)
...
#KT-25164 Fixed
2018-06-28 16:02:14 +03:00
Nikolay Krasko
c68284030d
Check files is valid before searching for children (EA-113417)
2018-06-28 16:02:14 +03:00
Alexander Udalov
8c8d0eefbb
Relocate package org.jetbrains.kotlin in kotlinx-metadata-jvm
...
To prevent clashes in scenarios where it's used together with the Kotlin
compiler (e.g. in annotation processing)
#KT-24945 Fixed
2018-06-28 14:39:53 +02:00
Mikhail Zarechenskiy
173bcd90df
Simplify lexer rule for typed integers
2018-06-28 13:32:10 +03:00
Mikhael Bogdanov
e149cbe852
Mute failed jvm ir tests
2018-06-28 12:26:41 +02:00
Mikhael Bogdanov
a10c06eb4d
Regenerate ir tests with JVM_IR target
2018-06-28 12:26:41 +02:00
Mikhail Zarechenskiy
dc7678a700
Use smartcast info that related to call in change signature quick fix
...
There is an inconsistency on how we record smartcasts in old and new
inference, but we definitely should use all possible information about
smartcasts in quick-fixes
#KT-25144 Fixed
2018-06-28 13:14:18 +03:00
Nicolay Mitropolsky
698096f13e
Uast: fix for creating an UClass for invalid object-literals (EA-122644, KT-20056)
2018-06-28 10:29:47 +03:00
Alexey Tsvetkov
25e6b76238
Build: disable jar compression for local builds
...
This speeds ups jar creation twice, which is significant for local
incremental builds when jar creation can dominate compilation time.
Changes in stripMetadata are required because putting entry from not-stripped
jar caused failures when compression was disabled (because size and crc
are actually changed during metadata removal; don't know why it works
with compression).
2018-06-27 23:56:26 +03:00
Alexey Tsvetkov
3dc38fe2f8
Build: enable Java incremental compilation for local builds
2018-06-27 23:56:26 +03:00
Alexey Tsvetkov
c73657b38d
Build: disable incremental compilation for non-TC build
...
This should bring small performance improvements for CI builds
(since they are not incremental anyway).
2018-06-27 23:56:26 +03:00
Nico Mandery
5c16633175
fix typos in documentation of JsQualifier annotation ( #1733 )
2018-06-27 19:34:27 +03:00
Lucas Smaira
5820656aae
Find Kotlin class with alternative resolve enabled
...
Kotlin run configurations are failing non-deterministically in Android
Studio due to not finding the class while in dumb mode (while AS invokes
Gradle build or in indexing after that).
Fix that by finding class in KotlinRunConfiguration with alternative
resolve enabled.
2018-06-27 16:38:44 +03:00
Vyacheslav Gerasimov
abd3ac4e96
UAST: Reformat KotlinUObjectLiteralExpression.kt
2018-06-27 16:04:41 +03:00
Vyacheslav Gerasimov
a829251690
UAST: Fix possible TypeCastException when creating KotlinUNamedExpression
2018-06-27 16:04:40 +03:00
Vyacheslav Gerasimov
23ee463053
Check if module disposed when getting modules with kotlin files
2018-06-27 16:04:40 +03:00