Commit Graph

231 Commits

Author SHA1 Message Date
Alexey Sedunov 298dfa545f Introduce Parameter: Implement "Introduce lambda parameter" 2015-04-22 23:56:47 +03:00
Evgeny Gerashchenko 9a4fbd35bd Supported Kotlin usages of Java class in automatic variable renamer. 2015-04-22 11:33:28 +03:00
Evgeny Gerashchenko a9f9ca4ccb Supported Java usages in automatic variable renamer. 2015-04-22 11:33:27 +03:00
Evgeny Gerashchenko 09cff44207 Automatic renaming overloads in class or object.
#KT-4642 fixed
2015-04-22 11:33:25 +03:00
Evgeny Gerashchenko d383e03a81 Automatic renaming top-level overloads.
#KT-4642 in progress
2015-04-22 11:33:25 +03:00
Evgeny Gerashchenko 8fe3a1d366 Added test for inheritor renamer (Kotlin subclasses of Java class). 2015-04-22 11:33:25 +03:00
Alexey Sedunov bf13f7e637 Introduce Parameter: Do not remove unused parameters if new parameter is extracted with default value 2015-04-17 16:30:28 +03:00
Alexey Sedunov 6e2076d602 Change Signature: Process Kotlin-side calls of Java methods overriding Kotlin declarations 2015-04-17 16:30:27 +03:00
Alexey Sedunov daebf569ab Extract Function: Allow capturing local function references as lambda parameters 2015-04-17 13:04:56 +03:00
Alexey Sedunov d036edb5c6 Extraction Engine: Respect smart casts applied to "this" references
#KT-7447
2015-04-15 23:20:54 +03:00
Alexey Sedunov aa0930ea60 Change Signature: Skip secondary constructor calls when looking for primary constructor usages
#KT-7445 Fixed
2015-04-15 23:20:52 +03:00
Evgeny Gerashchenko 4f412f77d1 Updated some test data so it won't be affected by automatic renamers. 2015-04-15 20:13:51 +03:00
Evgeny Gerashchenko 260b8ae431 Automatic renaming subclasses.
#KT-4642 in progress
2015-04-15 19:15:18 +03:00
Evgeny Gerashchenko e6e5e28e1d Automatic renaming properties, variables, parameters when renaming class.
#KT-4642 in progress
2015-04-15 19:14:20 +03:00
Alexey Sedunov da14222c4a Introduce Parameter: Do not apply to expressions of type Unit or Nothing 2015-04-10 21:57:07 +03:00
Alexey Sedunov 918eda0c9b Introduce Parameter: Do not suggest containers of object and non-inner classes 2015-04-09 13:49:24 +03:00
Alexey Sedunov 80134b9b2b Introduce Parameter: Support parameters without default values 2015-04-09 13:49:23 +03:00
Alexey Sedunov 13776f5bbd Introduce Parameter: Duplicate search & replace 2015-04-09 13:49:22 +03:00
Alexey Sedunov 3bb86a63cc Introduce Parameter: Remove parameters which become unused after occurrence replacement 2015-04-09 13:49:21 +03:00
Alexey Sedunov 53a6827ad8 Introduce Parameter: Initial support 2015-04-09 13:49:20 +03:00
Alexey Sedunov eb594a2897 Extract Function: Approximate non-resolvable types with nearest resolvable supertype when possible
#KT-7120 Fixed
2015-04-01 13:41:26 +03:00
Alexey Sedunov a90d020859 Extraction Engine: Fix extraction of labeled and non-local returns 2015-04-01 13:41:24 +03:00
Alexey Sedunov 3bea49eedd Change Signature: Fix processing of enum constructors
#KT-7170 Fixed
2015-04-01 13:41:23 +03:00
Alexey Sedunov d65b55e147 Change Signature: Fix processing of lambda arguments 2015-04-01 13:41:22 +03:00
Denis Zharkov 717f850470 Setup spacing rules for primary ctor's parts 2015-03-31 20:20:22 +03:00
Evgeny Gerashchenko 83f2a08708 Added test with moving file used in Java to other package. 2015-03-31 18:14:00 +03:00
Evgeny Gerashchenko a4d2d6506c Removing import of removed package facade. 2015-03-31 18:13:21 +03:00
Evgeny Gerashchenko f789933683 Fixed updating Java references on moved Kotlin top-level callables. 2015-03-31 18:13:20 +03:00
Alexey Sedunov dcfefb0847 Extract Function: Do not extract extension function reference as parameter 2015-03-26 23:11:51 +03:00
Pavel V. Talanov ed218c473a Get rid of 'class object' usages in code and builtins
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00
Alexey Sedunov a57be6dcab Change Signature: Do not report conflict when parameter name clashes with suggested name of the receiver 2015-03-24 16:41:08 +03:00
Alexey Sedunov 93f00db871 Extraction Engine: Consider declarations when comparing descriptors
#KT-6960 Fixed
2015-03-24 16:41:05 +03:00
Alexey Sedunov 5c7debbf88 Change Signature: Support refactoring of primary/secondary constructor by delegation call reference 2015-03-21 03:28:54 +03:00
Alexey Sedunov 173a28a25e Change Signature: Add tests for secondary constructors and delegation calls 2015-03-21 03:28:53 +03:00
Denis Zharkov 25de64c6ab Support class rename in place of secondary ctor call 2015-03-18 10:56:31 +03:00
Pavel V. Talanov 06916d98c6 default -> companion: replace all mentions of default and default object 2015-03-17 15:47:39 +03:00
Evgeny Gerashchenko 510974e07c Supported renaming default objects with default names. 2015-03-16 14:11:41 +03:00
Evgeny Gerashchenko ccd1701f78 Supported renaming of default object. Named only objects are supported
yet.
2015-03-16 14:11:39 +03:00
Evgeny Gerashchenko 3a8ded5b58 Finding class by class id instead of fq name in rename tests. 2015-03-16 14:11:38 +03:00
Alexey Sedunov 40799a0a43 PSI Unifier: Unify references which correspond to the same declaration
#KT-5996 Fixed
2015-03-13 23:16:59 +03:00
Alexey Sedunov bff709da10 Convert to Expression Body Intention: Do not remove declaration type if it affects the type of body expression 2015-03-13 23:16:58 +03:00
Alexey Sedunov 9cb42944d1 Extraction Engine: Generate function/property accessor with expression body (whenever applicable)
#KT-6405 Fixed
2015-03-13 23:16:57 +03:00
Alexey Sedunov 9d8cfd04d9 Extraction Engine: Suggest function names based on the name of the result variable (if applicable)
#KT-6291 Fixed
2015-03-13 23:16:55 +03:00
Stanislav Erokhin 3b92cab9e0 Changed containing declaration for PropertyDeclarationInnerScope 2015-03-12 17:11:43 +03:00
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Alexey Sedunov 5517c6c539 Extraction Engine: Report invisible types in the generated declaration header
#KT-6734 Fixed
2015-03-06 14:37:25 +03:00
Alexey Sedunov cab301e8e2 Introduce Property: Add tests for default values 2015-03-06 14:37:21 +03:00
Alexey Sedunov 1202e624ce Extraction Engine: Assume internal visibility for trait members 2015-03-06 14:37:20 +03:00
Alexey Sedunov 652253b485 Introduce Property: Forbid lazy properties/properties with initializers in traits 2015-03-06 14:37:18 +03:00
Alexey Sedunov 79b64c6f9f Introduce Property: Add test for name clash in the presence of anonymous initializer (was failing before ElementResolver fix) 2015-03-06 14:37:17 +03:00