Commit Graph

104 Commits

Author SHA1 Message Date
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
Evgeny Gerashchenko 0367f1836d Adding type arguments if necessary.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko c22f54055e Supported vals initialized after.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko 72ed74ab9a Adding {} in string template if necessary.
#KT-2637 in progress
2013-07-23 21:43:05 +04:00
Evgeny Gerashchenko 55b221776b Inline adds parentheses when it is necessary.
Test data for Remove Unnecessary Parentheses was updated, since parentheses in foo && (bar && baz) is not "unnecessary": removing it changes program semantics.

 #KT-2637 in progress
2013-07-23 21:43:04 +04:00
Evgeny Gerashchenko a9a960fd38 Basic local val inlining support.
#KT-2637 in progress
2013-07-23 21:43:04 +04:00
Alexander Kirillin 5499bea181 fix for change signature when the order of named arguments is non-trivial 2013-05-07 21:15:26 +04:00
Michał Sapalski 7deec28b9c Adjusted tests to the new DescriptorRenderer behaviour 2013-04-29 15:44:07 +04:00
Alexander Kirillin 0a597e563a Implemented "Change signature" refactoring 2013-04-25 21:13:33 +04:00
Natalia.Ukhorskaya 6bea9999d5 Introduce variable does something really strange for expression in square brackets
#KT-2490 Fixed
2013-03-07 15:34:39 +04:00
Vladimir Rudev 2201e63031 Tests for KT-2255,KT-3032 2013-01-11 21:12:51 +04:00
Evgeny Gerashchenko ee539e7da5 Replaced sure() invocation with '!!' operator in suggester test. 2012-09-17 18:00:21 +04:00
Nikolay Krasko c587a1375f KT-112 Cannot rename a class on a constructor call site
#KT-112 Obsolete
2012-09-06 00:00:53 +04:00
Nikolay Krasko e7287ba8f4 KT-2242 formatting problems: function literal passed outside the parentheses - fix test data in affected tests
#KT-2242 Fixed
2012-08-21 16:16:22 +04:00
Alexander.Podkhalyuzin 48533ca8d2 Fixed KT-2072: do not suggest to use type inference in Introduce Variable in case if expression type depends on expected type. 2012-05-23 18:58:39 +04:00
Alexander.Podkhalyuzin b9267dc7cf Fixed KT-2071: Cannot Introduce Variable from function literal. 2012-05-23 15:58:55 +04:00
Dmitry Jemerov 88c4778055 rename Kotlin methods used in Java code 2012-05-22 19:09:39 +02:00
Dmitry Jemerov 09cf7ac2aa find usages and rename work for Kotlin classes called from Java code (KT-1641)
#KT-1641 fixed
2012-05-22 19:09:38 +02:00
Alexander.Podkhalyuzin 8db0546052 Do not check function names in scope to suggest name for introduce variable refactoring (local values can overload function names from upper scopes). 2012-05-21 18:29:01 +04:00
Nikolay Krasko 3b29b32903 Remove analyzeProjectWithCache with caching on project. It's used nowhere, gives cycles in resolve and produce second copy of binding context.
KT-1792 UI freeze and AssertionError in log
 #KT-1792 fixed
2012-04-17 15:03:07 +04:00
Alexander.Podkhalyuzin b8e1e1dd75 Fixed name suggester for getter/setter names. Added names suggested by call before "sure" call. +Test 2012-04-04 14:34:30 +04:00
Nikolay Krasko fe97ed0155 Fix test - avoid file renaming for now 2012-02-24 15:06:27 +04:00
Alexander.Podkhalyuzin c9c81ed70f Patched test to avoid package renaming. 2012-02-22 13:57:33 +04:00
Nikolay Krasko 80a40ae175 Rename folders with tests. 2012-02-20 19:31:00 +04:00
Nikolay Krasko 1e2ef9fbf1 KT-1294 Class rename fails to update import statement and breaks the code - test for kotlin class rename 2012-02-20 15:54:05 +04:00
Nikolay Krasko 300fafc90d KT-1351 References are not updated after java private package class rename - test 2012-02-20 15:16:51 +04:00
Nikolay Krasko 00fa077c34 KT-1294 Class rename fails to update import statement and breaks the code - add test for different packages and public java class. 2012-02-20 15:16:50 +04:00