Commit Graph

576 Commits

Author SHA1 Message Date
Alexey Sedunov a9645e1ae9 Extract Superclass: Drop inapplicable modifiers when converting property-parameter to ordinary parameter
#KT-15674 Fixed
2017-01-13 15:17:45 +03:00
Alexey Sedunov 57d364e7d4 Extract Superclass/Interface: Fix bogus visibility warning inside a member when it's being moved as abstract
#KT-15635 Fixed
2017-01-13 15:17:43 +03:00
Alexey Sedunov 65b9049d59 Extract Interface/Pull Up: Warn about private members with usages in the original class
#KT-15606 Fixed
2017-01-13 15:17:42 +03:00
Alexey Sedunov 1c16d2af1a Extract Superclass/Interface/Pull Up: Reformat modifier lists of generated declarations (to add spaces where needed)
#KT-15639 Fixed
2017-01-13 15:17:41 +03:00
Alexey Sedunov e10b50a648 Extract Interface/Pull Up: Drop 'final' modifier when moving to an interface
#KT-15640 Fixed
2017-01-13 15:17:39 +03:00
Alexey Sedunov 52e9117e9d Extract Superclass/Interface: Allow extracting class with special name (and quotes)
#KT-15353 Fixed
2017-01-13 15:17:37 +03:00
Alexey Sedunov 5de4e9fdac Pull Up/Extract Interface: Disable "Make abstract" and assume it to be true for abstract members of an interface
#KT-15355 Fixed
2017-01-13 15:17:36 +03:00
Alexey Sedunov 9cadfd01ae Introduce Variable: Allow extraction to class body/file 2016-12-08 17:56:54 +03:00
Alexey Sedunov 475ae0d638 Rename: Suggest respective parameter name for the local variable passed to function
#KT-14792 Fixed
2016-12-02 14:14:10 +03:00
Alexey Sedunov 25cebbab4b Extraction Engine: Do not wrap companion member references inside of the with call if it's disabled in extraction options
#KT-13781 Fixed
2016-12-02 14:14:04 +03:00
Alexey Sedunov 61210d6ba2 Move: Fix callable reference processing when moving to another package
#KT-14197 Fixed
2016-12-02 14:14:03 +03:00
Alexey Sedunov cedbac6b43 Safe Delete: Fix exception on deleting Java class used in Kotlin import directive(s)
#KT-14596 Fixed
2016-11-30 14:35:39 +03:00
Alexey Sedunov b29c704a92 Rename: Do not report redeclaration conflict for private top-level declarations located in different files
#KT-14361 Fixed
2016-11-30 14:35:37 +03:00
Alexey Sedunov 24035d2c83 Introduce Type Alias: Forbid nested/local type aliases 2016-11-30 14:35:33 +03:00
Alexey Sedunov 752ae87591 Introduce Type Alias: Support callable references/class literals
#KT-14861 Fixed
2016-11-30 14:35:32 +03:00
Alexey Sedunov 0f58e2eef2 Introduce Type Alias: Replace type usages in constructor calls. Do not replace usages of existing type aliases
#KT-14685 Fixed
2016-11-30 14:35:30 +03:00
Alexey Sedunov 939532b6f3 Introduce Type Alias: Do not suggest type qualifiers
#KT-14693 Fixed
2016-11-30 14:35:28 +03:00
Valentin Kipyatkov 85e1e53354 Checking for unsupported return's 2016-11-08 12:46:45 +03:00
Valentin Kipyatkov 4c4c85e37a Supported unit return type functions 2016-11-08 12:46:45 +03:00
Valentin Kipyatkov 08c6a21ac1 Handling safe calls of multi-statement function 2016-11-08 12:46:43 +03:00
Valentin Kipyatkov 330d3a255a introduceValue() always adds statement before except for safe call case 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov 8f9f2027f2 Adding block to control structure when needed 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov a4aa9bab8d Very basic version of inline function for block body 2016-11-08 12:46:42 +03:00
Valentin Kipyatkov 3b97a3feb1 Supported case when explicit function type is used 2016-11-08 12:46:41 +03:00
Valentin Kipyatkov 57411b4d5e Supported inline function for expression body case 2016-11-08 12:46:39 +03:00
Alexander Udalov 035d6156a7 Drop Cloneable in JS, synthesize it at compile-time on JVM
Use the same approach that is used for creating function type classes
(Function{0,1,...}) + add Cloneable to supertypes of Array and primitive arrays

 #KT-5537 Fixed
2016-10-25 15:42:33 +03:00
Alexey Sedunov 5c2ad48375 Introduce Variable: Do not replace assignment left-hand sides
#KT-14240 Fixed
2016-10-13 19:00:58 +03:00
Valentin Kipyatkov 7f0063013c Corrected test data 2016-10-11 23:38:52 +03:00
Valentin Kipyatkov 41ee06ec96 Use parameter names in DescriptorRenderer 2016-10-11 23:38:49 +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 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
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
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
Alexey Sedunov b412edf2a3 Extract Class: Implement 'Extract Interface' refactoring
#KT-11017 Fixed
2016-09-22 20:11:31 +03:00
Alexey Sedunov af2de09840 Extract Class: Implement 'Extract Superclass' refactoring
#KT-11017 In Progress
2016-09-22 20:11:30 +03:00
Alexey Sedunov 6366383b31 Minor: Add test for KT-13916 2016-09-20 20:35:56 +03:00
Alexey Sedunov 951dc6a438 Move: Remove companion object which becomes empty after the move
#KT-13903 Fixed
2016-09-20 20:35:55 +03:00
Alexey Sedunov 6e8bcb987a Minor: Add tests for KT-13759 2016-09-20 20:35:52 +03:00
Alexey Sedunov 54faac1cee Pull Up: Drop 'override' modifier if moved member doesn't override anything 2016-09-15 16:22:51 +03:00
Valentin Kipyatkov e3b37f9219 Implemented fast search for invoke operator calls
#KT-13643 Fixed
2016-09-07 19:04:40 +03:00
Alexey Sedunov 2f9a911624 Introduce Type Parameter
#KT-13155 Fixed
2016-09-01 13:43:44 +03:00
Alexey Sedunov e908c6c1b2 Search: Restrict KtParameter usage scope to its containing declaration
#KT-13542 Fixed
 #KT-8672 Fixed
2016-08-24 11:27:19 +03:00
Alexey Sedunov 6480118da6 Move: Report separate conflicts for each property accessor
#KT-13216 Fixed
2016-08-24 11:27:18 +03:00
Alexey Sedunov 9607fd0620 Pull Up: Remove visibility modifiers on adding 'override'
#KT-13535 Fixed
2016-08-24 11:27:17 +03:00