Commit Graph

80 Commits

Author SHA1 Message Date
Alexey Sedunov 4463c67e28 Extract Function: Fix replacement of type references and constructor references 2014-06-03 18:17:14 +04:00
Alexey Sedunov 3d6fc6e015 Extract Function: Fix replacement of references with class receivers (objects, class objects, enum classes) 2014-06-03 18:17:13 +04:00
Alexey Sedunov 240f033f4f Extract Function: Fix NPE caused by unmatched offset-to-reference maps
#KT-5001 Fixed
2014-06-03 18:17:12 +04:00
Alexey Sedunov f4c21d3a28 Extract Function: Treat multi declarations as local variables
#KT-5054 Fixed
2014-06-03 18:17:10 +04:00
Alexey Sedunov 3a75aa27f0 Extract Function: Fix extraction of reference to class object property
#KT-5053 Fixed
2014-06-03 18:17:10 +04:00
Alexey Sedunov 1a7e6eab61 Extract Function: Utilize pseudo-value usage for return type inference 2014-06-03 18:17:09 +04:00
Alexey Sedunov ee52073488 Extract Function: Limit the set of allowed containers for the default action 2014-06-02 19:48:38 +04:00
Alexey Sedunov 3c5c0248a7 Extract Function: In case of top-level and member declarations place extracted function after the original container 2014-06-02 19:48:35 +04:00
Alexey Sedunov ab5e0c8c9c Move: Retain imports when moving top-level declaration
#KT-5049 Fixed
2014-05-28 21:06:00 +04:00
Alexey Sedunov 31a1ec0f05 Improve JetNameValidatorImpl performance 2014-05-12 13:03:03 +04:00
Alexey Sedunov 3ac3edd1bd Extract Function: Allow to select fragments which start with comment 2014-05-12 12:55:08 +04:00
Alexey Sedunov 243ba62b65 Extract Function: Allow to combine throws with other exit points 2014-05-12 12:55:07 +04:00
Alexey Sedunov 5fc1725b33 Extract Function: Type parameters inference 2014-05-12 12:55:02 +04:00
Alexey Sedunov 0e9676173b Extract Function: Implement validation 2014-04-22 18:45:55 +04:00
Alexey Sedunov e052a64767 Introduce Variable: Compare receivers (both implicit and explicit) when looking for expression occurrences
#KT-4819 Fixed
2014-04-22 18:45:54 +04:00
Alexey Sedunov 0d90dcf010 Extract Function: Add test data 2014-04-17 19:01:20 +04:00
Alexey Sedunov 4dec0508a6 ExtractionTest: Change test data layout 2014-04-17 19:01:17 +04:00
Alexey Sedunov db38f420f3 Move Refactoring: Do not replace references to local declaration with qualified names. Update and fix test data
#KT-4851 Fixed
2014-04-15 16:19:28 +04:00
Nikolay Krasko dd45da01d1 Fix "Extract variable" for anonymous object suggests name "nonameprovided" (KT-4813)
#KT-4813 Fixed
2014-04-05 04:41:31 +04:00
Nikolay Krasko 7c94e8a9af Rename kotlin properties with all usages
#KT-4317 Fixed
 #KT-4316 Fixed
2014-03-31 14:09:51 +04:00
Alexey Sedunov 5aa75ba3e1 Move top-level declarations to separate file: Refactoring processor and tests 2014-03-21 19:53:49 +04:00
Alexey Sedunov 6ddcd51af2 Rename test data directories 2014-03-21 19:53:47 +04:00
Alexey Sedunov abcba89ad3 Move top-level declarations: Implement refactoring processor 2014-03-19 15:31:29 +04:00
Alexey Sedunov 5327031300 Update references when moving Kotlin file
#KT-1696 Fixed
2014-03-07 19:24:33 +04:00
Alexey Sedunov 3729966270 Forbid moving file to another file
#KT-4069 Fixed
2014-03-04 19:45:34 +04:00
Alexey Sedunov e48616e739 Do not insert parentheses into package directives
Add tests for "Move Package" refactoring
2014-03-04 19:45:32 +04:00
Alexey Sedunov 0520306b94 Add tests for Java "Move File" refactoring 2014-02-27 17:00:39 +04:00
Alexey Sedunov 33cbc099ab Add tests for Java "Move Inner Class/To Inner Class" refactoring 2014-02-27 17:00:37 +04:00
Alexey Sedunov 7d3b21130a Add tests for Java "Move class/package" refactoring
#KT-3626 Fixed
2014-02-27 17:00:35 +04:00
Alexey Sedunov 5ba49fbada Avoid conflicts when moving members wiith package-local visibility
Add tests for Java "Move members" refactoring
 #KT-4459 Fixed
2014-02-27 17:00:33 +04:00
Nikolay Krasko 62e8883138 Test for KT-365 Support renaming packages
#KT-365 Obsolete
2014-02-21 22:12:53 +04:00
Pavel V. Talanov 7afc9bc30d Formatter: left brace formatting in class/trait/class object/object/object literal declarations 2014-01-20 19:54:37 +04:00
Evgeny Gerashchenko 90ad65bff8 Made rename refactoring inplace for loop, catch and function literal parameters.
#KT-1296 fixed
2013-12-24 22:30:28 +04:00
Nikolay Krasko c0df908f0e Rewrite test to kotlin and add use Json format for tests configure 2013-12-12 15:41:11 +04:00
Nikolay Krasko 1bde5a90a4 Add ability to rename java methods with usages in Kotlin 2013-11-27 15:50:46 +04:00
Nikolay Krasko 9bdb97bfe8 Test for renaming file name after class rename 2013-11-27 15:50:45 +04:00
Nikolay Krasko 3aaf90f8aa Test for renaming not base java method with base kotlin method 2013-11-27 15:50:45 +04:00
Nikolay Krasko 26d3168224 Test for KT-4100 'Imports doesn't change after java interface name refactoring'
#KT-4100 Fixed
2013-11-27 00:53:31 +04:00
Nikolay Krasko 722118772a Test for KT-3256 'Can't rename a Kotlin function from Java code'
#KT-3256
2013-11-27 00:53:31 +04:00
Nikolay Krasko a4203fac2f Add test for rename method produced from kotlin function 2013-11-26 19:20:01 +04:00
Nikolay Krasko 97c8e05984 KT-2836 Rename kotlin base function with overrides
#KT-2836 Fixed
2013-11-26 19:20:01 +04:00
Nikolay Krasko ce810d3a55 Generate error tip for rename kotlin package klass from java 2013-11-26 19:20:00 +04:00
Nikolay Krasko 76562f9aa5 KT-3255 Add ability to rename kotlin classes from java
#KT-3255 Fixed
2013-11-26 19:19:59 +04:00
Nikolay Krasko 87fac21310 Auto generate test for rename 2013-11-26 19:19:59 +04:00
Pavel V. Talanov 3e97203f85 Check that target functions can be modified in JetChangeSignature 2013-11-12 14:15:56 +04:00
Pavel V. Talanov 66cc9b2cc7 Show error hint when trying to refactor synthesized function 2013-11-12 14:15:48 +04:00
Pavel V. Talanov 8c95884ad2 Add new functionality to "Change signature" refactoring
Extract single point of entry for all change signature refactorings and fixes (remove parameter, add parameter)
Change signature now affects overriding functions as well
Ask the user whether he wants to refactor base function(s) or the selected one if appropiate
Fix a problem with descriptorToDeclaration in JetChangeSignatureHandler
Rename: JetFunctionPlatformDescriptor -> JetMethodDescriptor
2013-11-12 14:15:46 +04:00
Mikhael Bogdanov 625efe1be1 Update to idea 132.425 2013-09-30 12:39:40 +04:00
Evgeny Gerashchenko a13092e525 Supported inlining constant properties. 2013-07-24 16:03:01 +04:00
Evgeny Gerashchenko 5aa4672d32 Adding parameter types for functions if necessary.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00