Valentin Kipyatkov
75d56e4902
Better tooltip for try
2016-10-04 19:36:07 +03:00
Valentin Kipyatkov
a2976ac281
Better presentation for property accessor
2016-10-04 19:36:07 +03:00
Valentin Kipyatkov
af0b027952
All operator usages are searched with new searcher
2016-10-04 19:34:58 +03:00
Valentin Kipyatkov
ba76e4d24d
Quick search of getValue/setValue operator usages
2016-10-04 19:34:57 +03:00
Valentin Kipyatkov
75a6b0ca5a
Quick search of iterator operator usages
2016-10-04 19:34:57 +03:00
Valentin Kipyatkov
f2e5662154
Quick search of compareTo operator usages
2016-10-04 19:34:57 +03:00
Valentin Kipyatkov
ee64a1a2b7
Quick search of equals operator usages
2016-10-04 19:34:57 +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
e8fcd194f9
add test for obsolete KT-11601
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
Alexander Udalov
df680305ba
Improve diagnostic message for UNSUPPORTED_FEATURE
...
Render lowercase words separated by spaces instead of CamelCase in the
diagnostic message
2016-10-04 10:24:43 +03:00
Dmitry Petrov
06101dba52
KT-13961 REDECLARATION not reported on private-in-file 'foo' vs public 'foo' in different file
...
Private-in-file declarations conflict with public overload-equivalent declarations
in other files in the same package.
Move functions for grouping possible redeclarations to OverloadResolver
(since they are used only there).
Refactor redeclarations / conflicting overloads reporting.
2016-10-03 11:50:29 +03: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
Valentin Kipyatkov
57faa5a39a
Term changes
2016-09-30 21:37:48 +03:00
Valentin Kipyatkov
17adee68cd
Fixed optimize imports for operators
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
Valentin Kipyatkov
7628fa1608
Checked that KT-13766 Fixed by some changes in resolve
...
#KT-13766 Fixed
2016-09-30 21:37:46 +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
Denis Zharkov
d4418d5686
Prohibit not-Unit suspend functions
...
#KT-13560 Fixed
2016-09-30 12:25:59 +03:00
Denis Zharkov
96186c6217
Prohibit star-projections in last parameter of suspend functions
2016-09-30 12:25:59 +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
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
b0ed6adce3
Fixed wrong test
2016-09-27 18:05:26 +03:00
Valentin Kipyatkov
21c2268f70
Protection against "<caret>" missing in test data
...
Many incorrect tests fixed
2016-09-27 18:05:26 +03:00