Valentin Kipyatkov
c8260f8d98
Refactoring
2016-10-04 19:34:55 +03:00
Valentin Kipyatkov
7eac49be62
Added comments
2016-10-04 19:34:55 +03:00
Dmitry Jemerov
dbbba45d63
show type of control statements used as expressions
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
02a5856ffd
don't show function literals and selectors of qualified expressions in "show expression type"
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
256fd04e95
show detailed smart cast info in "Show expression type" (KT-8803)
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
2141cd268c
don't include properties with declared return type and property accessors in "show expression type" popup
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
4f1f313b36
don't show type of statements if they are not used as expressions
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
6dccfd3b22
use short names in Show Expression Type
...
#KT-11310 Fixed
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
4346afa19e
test for handling smart casts in "show expression type"
...
#KT-10588 Fixed
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
032d50bbbf
handle multi-declarations in "show expression type"
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
fbd2c48fbd
don't offer functions with block body and functions with declared return type as candidates for "show expression type"
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
7b644e2c52
support "show expression type" in variable declaration position
...
#KT-10095 Fixed
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
752a7451e5
get rid of Kotlin specific "Show expression type" action
...
#KT-13142 Fixed
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
39ab1e985a
Java-compatible "Copy Reference" action for Kotlin
...
#KT-13140 Fixed
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
cbb2e5c379
show context when invoking Show Implementations from Find Usages popup
...
#KT-13475 Fixed
2016-10-04 18:23:32 +02:00
Dmitry Jemerov
e462a97c64
show two levels of hierarchy when grouping find usages by file structure
...
#KT-9019 Fixed
#KT-10178 Fixed
2016-10-04 18:23:32 +02:00
Denis Zharkov
0120085443
Refine expression kind definition in postfix templates
...
- Do not treat if without else as values
- Some statements aren't contained in block (see tests)
#KT-14107 Fixed
#KT-14110 Fixed
2016-10-03 10:36:48 +03:00
Denis Zharkov
3c24996073
Refine default postfix templates selector
...
There is new settings checkCanBeUsedAsValue
Also expression filtering are split into to parts:
- getNonFilteredExpressions is trivially goes until it reaches
first block body of some declarations
- all additional filtering is merged into Condition that is passed into
PostfixTemplateExpressionSelectorBase super-call
Notable changes for users:
- do not suggest try for non-top-level expressions
- do not suggest var/par/etc for loops
2016-10-03 10:36:48 +03:00
Denis Zharkov
ba2d2a036e
Suggest postfix templates on lambda expressions
2016-10-03 10:36:48 +03:00
Denis Zharkov
54d9b4bee6
Do not suggest assignment as a subject in postfix templates
...
#KT-14077 Fixed
2016-10-03 10:36:48 +03:00
Denis Zharkov
18146fafdf
Allow if/when/try postfix templates in expression position
...
#KT-14078 Fixed
2016-10-03 10:36:48 +03:00
Denis Zharkov
bff9dd4ef5
Suggest assert/return postfix templates only for statements
...
#KT-14079 Fixed
#KT-14090 Fixed
2016-10-03 10:36:48 +03:00
Denis Zharkov
ce128c5d6e
Do not suggest operation references in postfix templates
...
#KT-14087 Fixed
2016-10-03 10:36:48 +03:00
Denis Zharkov
d5d18b2ad6
Enhance tests for postfix templates
...
Prohibit multiple suggested expressions in test mode
2016-10-03 10:36:48 +03:00
Alexander Udalov
87fe6c41df
Drop ExternalDeclarationsProvider
...
It was added for Android extensions, but now another mechanism is used there
(PackageFragmentProviderExtension), and there were no other implementations of
ExternalDeclarationsProvider in the project
2016-10-02 21:03:19 +03:00
Valentin Kipyatkov
769943061e
Changed String to Name
2016-09-30 21:37:47 +03:00
Valentin Kipyatkov
95a3a29382
Optimize imports to prevent accedential changes in resolve because of import priorities
...
#KT-11640 Fixed
2016-09-30 21:37:47 +03:00
Mikhail Glukhikh
ee5202f2ea
Minor refactoring: convert secondary constructor to primary
...
(cherry picked from commit 47446b7)
2016-09-30 16:40:19 +03:00
Mikhail Glukhikh
e417a85276
Minor: secondary constructor to primary is suggested only on keyword and value parameter list
...
(cherry picked from commit 9a3e6d3)
2016-09-30 16:40:08 +03:00
Mikhail Glukhikh
0a4542c6c0
KT-9839 related, secondary constructor to primary: inspection for the single constructor
...
(cherry picked from commit aec0090)
2016-09-30 16:39:58 +03:00
Mikhail Glukhikh
3508bea391
KT-9839 related, primary constructor to secondary: comment restoration
...
(cherry picked from commit 48a1853)
2016-09-30 16:39:46 +03:00
Mikhail Glukhikh
d1958be2a8
KT-9839 related, secondary constructor to primary: comment restoration
...
(cherry picked from commit 998e39e)
2016-09-30 16:39:36 +03:00
Mikhail Glukhikh
725df49c8c
KT-9839: intention introduced: convert secondary constructor to primary one #KT-9839 Fixed
...
(cherry picked from commit f3fa779)
2016-09-30 16:39:24 +03:00
Mikhail Glukhikh
28b70faa99
KT-9839: convert primary constructor to secondary one: leave independent properties in class body as is
...
(cherry picked from commit b90414a)
2016-09-30 16:39:13 +03:00
Mikhail Glukhikh
7f50e6e70e
KT-9839: intention introduced: convert primary constructor to secondary one
...
(cherry picked from commit 93aaa48)
2016-09-30 16:39:01 +03:00
Simon Ogorodnik
18feb8f622
Return Kotlin fields and methods through KotlinShortNameCache
...
#KT-12205 Fixed
2016-09-28 13:36:20 +02:00
Alexey Sedunov
956c6eeec7
Push Down: Support moving members from Java to Kotlin class
...
#KT-9485 Fixed
2016-09-27 21:26:31 +03:00
Alexey Sedunov
924bb44862
Pull Up/Push Down/Extract Super: Support references to Java-declared superinterfaces
2016-09-27 21:26:30 +03:00
Alexey Sedunov
22271f0af0
Pull Up/Push Down/Extract Super: Show member dependencies in the refactoring dialog
2016-09-27 21:26:29 +03:00
Alexey Sedunov
8a5628cde5
Pull Up/Extract Super: Support members declared in the companion object of the original class
2016-09-27 21:26:28 +03:00
Alexey Sedunov
982d4d4ead
Pull Up/Extract Super: Support properties declared in the primary constructor
2016-09-27 21:26:27 +03:00
shiraji
3aedf0d79f
Add intention to replace Math.max/min with coerceAtLeast/coerceAtMost #KT-13945 Fixed
2016-09-27 20:05:11 +03:00
Mikhail Glukhikh
4522d2c7da
Remove unnecessary lateinit intention / inspection removed (supported in compiler CFA instead)
...
(cherry picked from commit e17f222)
2016-09-27 18:49:51 +03:00
Mikhail Glukhikh
67cc83af05
Quick-fix for UNNECESSARY_LATEINIT
...
(cherry picked from commit 77f7bb0)
2016-09-27 18:49:13 +03:00
Valentin Kipyatkov
6baf633a8d
Fixed bug found because of incorrect test fixed
2016-09-27 18:05:26 +03:00
Valentin Kipyatkov
038068aa44
KT-13953 Import member popup should not suggest methods when only property or variable is valid
...
#KT-13953 Fixed
2016-09-27 18:05:25 +03:00
Alexey Sedunov
ca482c32c6
Introduce Variable: Fix exception on trying to extract variable of functional type
...
#KT-14004 Fixed
2016-09-27 13:27:56 +03:00
Alexey Sedunov
06936328ab
Remove Redundant Receiver Parameter: Do not run refactoring inside write action
...
#KT-13878 Fixed
2016-09-27 13:27:55 +03:00
Alexey Sedunov
698660b9c6
Find Usages: Add special type for usages inside of type aliases
...
#KT-13955 Fixed
2016-09-27 13:27:54 +03:00
gitreelike
06c804787f
Implement quick fix to convert a too long char literal to a string #KT-13635 Fixed
2016-09-23 13:04:41 +03:00