Denis Zharkov
05aa9a5682
Add a quickfix for warning on ambiguously annotated expression
...
#KT-14238 Fixed
2016-10-12 11:40:16 +03:00
Denis Zharkov
84153f9636
Add warning for ambiguous annotated expression syntax
...
#KT-14238 In Progress
2016-10-12 11:40:12 +03:00
Valentin Kipyatkov
8baa9ba1de
No parameter names in type of lambda expression and anonymous function
2016-10-11 23:38:54 +03:00
Pavel V. Talanov
14f3e4c758
Cls stubs and decompiled text: Do not render parameter names in decompiled text and do not load ParameterName annotation in stubs
...
Add tests for decompiled text and stubs
2016-10-11 23:38:53 +03:00
Valentin Kipyatkov
7f0063013c
Corrected test data
2016-10-11 23:38:52 +03:00
Valentin Kipyatkov
073845ebd4
Fixed test data
2016-10-11 23:38:52 +03:00
Valentin Kipyatkov
1f9e00b23f
Added tests that surprisingly passed
2016-10-11 23:38:51 +03:00
Valentin Kipyatkov
a62a37f6d8
Added tests for parameter names in function type from SAM-adapter + fixed KT-13861
...
#KT-13861 Fixed
2016-10-11 23:38:51 +03:00
Valentin Kipyatkov
3bd39df587
No parameter names in types for error messages
2016-10-11 23:38:50 +03:00
Valentin Kipyatkov
c0ea237ba4
Added test with type alias
2016-10-11 23:38:50 +03:00
Valentin Kipyatkov
6b94e5fd34
Use parameter names from function type for invoke() function
...
#KT-435 Fixed
#KT-9016 Fixed
2016-10-11 23:38:49 +03:00
Valentin Kipyatkov
0abb2edb2b
Corrected test
2016-10-11 23:38:49 +03:00
Valentin Kipyatkov
41ee06ec96
Use parameter names in DescriptorRenderer
2016-10-11 23:38:49 +03:00
Valentin Kipyatkov
73dc5fefcb
KT-12077 Code completion inserts FQN for annotations with use-site target inside primary constructor
...
KT-13009 Kotlin: annotation auto-import is broken in multiple ways
#KT-12077 Fixed
#KT-13009 Fixed
2016-10-11 17:26:52 +03:00
Mikhail Glukhikh
c6fefbc223
Rename: intention tests "ifNullToElvis" --> "foldInitializerAndIfToElvis"
2016-10-11 16:13:16 +03:00
Mikhail Glukhikh
0903402282
"If null to elvis" now converts to elvis also !is check right after initializer #KT-14032 Fixed
2016-10-11 16:13:11 +03:00
Mikhail Glukhikh
121f0ec810
KT-14032 related: if expression to elvis now handles also is and !is checks
2016-10-11 16:13:06 +03:00
Mikhail Glukhikh
8188bb1e54
Destructure intention: entries / entrySet are now removed only for kotlin.Map inheritors #KT-14244 Fixed
2016-10-11 16:13:01 +03:00
Mikhail Glukhikh
304f6a3b3a
KT-13943 related: inspection is now always reported if manual destructuring is available
2016-10-11 16:12:56 +03:00
Mikhail Glukhikh
475d5548c4
Destructure intention now handles the case with manual destructuring inside #KT-13943 Fixed
2016-10-11 16:12:51 +03:00
Yoshinori Isogai
afe8244183
KT-14241 Add Intention + Inspection to remove empty class body ( #968 )
2016-10-10 19:24:39 +02:00
Zalim Bashorov
45d42bdff8
JS: add inspection for the case when something with dynamic type implicitly casted to kotlin another type
2016-10-10 17:30:51 +03:00
Valentin Kipyatkov
b84260f39f
Fixed multiple bugs in optimize imports for JS-target
...
#KT-13689 Fixed
2016-10-10 14:48:16 +03:00
Valentin Kipyatkov
5734f2ba9b
KT-9950 IntelliJ IDEA does not suggest importing extension methods which have the same name as an instance method
...
#KT-9950 Fixed
2016-10-10 14:48:15 +03:00
Valentin Kipyatkov
c06e2d994e
KT-13884 Exception "Invalid root block PSI element" on replacing trivial when-expression to if
...
#KT-13884 Fixed
2016-10-10 14:48:15 +03:00
Valentin Kipyatkov
597cd04831
KT-13719 'var' can be made 'val' highlighting range with annotation before
...
#KT-13719 Fixed
2016-10-10 14:48:14 +03:00
Mikhail Glukhikh
8d48b0d2a0
UNUSED_VARIABLE is now reported only for last entry of destructuring declaration (if applicable) #KT-14221 Fixed
2016-10-10 14:42:09 +03:00
Alexey Sedunov
d3c14ce7d6
Extract Function: Support implicit abnormal exits via Nothing-typed expressions
2016-10-07 20:20:39 +03:00
Alexey Sedunov
fad4944eee
Rename: Use qualified class name when looking for occurrences in non-code files
...
#KT-14128 Fixed
#KT-13862 Fixed
#KT-6199 Fixed
2016-10-07 20:20:36 +03:00
Alexey Sedunov
da1178fe0c
Create from Usages: Do not suggest on type-mismatched expressions which are not call arguments
...
#KT-14143 Fixed
2016-10-07 20:20:35 +03:00
Alexey Sedunov
fe711da594
Rename: Rename do-while loop variables in the loop condition
...
#KT-14157 Fixed
2016-10-07 20:20:33 +03:00
Alexey Sedunov
140d0b61f1
Move: Fix exception on moving Kotlin file without declarations
...
#KT-14114 Fixed
2016-10-07 20:20:32 +03:00
Alexander Udalov
8949ffbef1
Do not report deprecation on members of deprecated companion
...
This deprecation is reported on the companion itself anyway
2016-10-07 20:14:53 +03:00
Mikhail Glukhikh
70949d10da
Refactoring + minor fixes: destructure intention
2016-10-06 21:16:46 +03:00
Mikhail Glukhikh
dd7d7a5fc7
Destructure inspection: do not apply on variable declarations or function literals without explicit parameters + name & severity changed
2016-10-06 21:07:58 +03:00
Mikhail Glukhikh
37debf4436
Destructure intention: use also for variable declarations #KT-7488 Fixed
2016-10-06 21:03:29 +03:00
Mikhail Glukhikh
e7d290f726
Refactor PSI for destructuring declarations in for: they are now children of KtParameter and not instead of it
2016-10-06 21:03:19 +03:00
Mikhail Glukhikh
48437d5965
KT-13941 related: "Simplify using destructuring declaration" is now applicable for function literals without parameter specification
2016-10-06 21:03:13 +03:00
Mikhail Glukhikh
df0cf3da84
"Simplify using destructuring declaration" is now applicable for function literals #KT-13941 Fixed
2016-10-06 21:03:08 +03:00
Mikhail Glukhikh
42aea59253
Simplify for intention refactoring: focus on the loop parameter, not on the loop itself
2016-10-06 21:03:03 +03:00
Mikhail Glukhikh
0a8006a395
Minor: destructing --> destructuring in SimplifyForIntention
2016-10-06 21:02:58 +03:00
Mikhail Glukhikh
3163d28b29
Minor: test fixed
2016-10-06 21:02:53 +03:00
shiraji
32b7b5a092
Inspection/Intention replace size check with 'isNotEmpty' and 'isEmpty' #KT-13937 Fixed
2016-10-06 14:35:57 +03:00
Alexey Sedunov
3f6e60fb51
Call Hierarchy: Show Kotlin usages of Java methods
...
#KT-12398 Fixed
2016-10-05 11:32:43 +03:00
Alexey Sedunov
5bb035282f
Generate 'toString()': Permit for data classes
...
#KT-14122 Fixed
2016-10-05 11:32:42 +03:00
Alexey Sedunov
0616e869aa
Quick Fixes: Implement "Remove unused assignment" quickfix
...
#KT-9931 Fixed
2016-10-05 11:32:41 +03:00
Alexey Sedunov
074ad6b5f0
Move out of Companion Object: Warn if traget class already contains function with the same signature
...
#KT-13877 Fixed
2016-10-05 11:32:40 +03:00
Alexey Sedunov
86c123164a
Move Inner Class to Upper Level: Fix replacement of outer class instances used in inner class constructor calls
...
#KT-13928 Fixed
2016-10-05 11:32:38 +03:00
Alexey Sedunov
c76c834009
Rename: When renaming Kotlin file outside of source root do not rename its namesake in a source root
...
#KT-14096 Fixed
2016-10-05 11:32:37 +03:00
Denis Zharkov
4910024cdb
Fix suppress at statement intention for asigmnents
...
There's no need now to consider precedence of element as
annotation preceding the beginning of block statement
is always now attached to the whole statement
#KT-11673 Fixed
#KT-12780 Fixed
2016-10-05 10:29:29 +03:00