Commit Graph

1095 Commits

Author SHA1 Message Date
Valentin Kipyatkov 04bee4dd7d Fixing issues after code review 2015-05-27 16:15:51 +03:00
Valentin Kipyatkov 17f0ac9ba7 Don't use plain text generation 2015-05-27 16:15:51 +03:00
Valentin Kipyatkov ec5256a0f0 DeprecatedCallableAddReplaceWithIntention 2015-05-27 16:15:50 +03:00
Valentin Kipyatkov 6b66e3b0e6 JetPsiFactory: refactored method for creating argument + introduced ability to create arbitrary constructs by pattern 2015-05-27 16:15:49 +03:00
Valentin Kipyatkov d7c64d44b6 Better implementation of "Move lambda outside parenthesis" 2015-05-27 16:15:44 +03:00
Valentin Kipyatkov 3bca1d1f83 "Move lambda outside parenthesis" should not be available when not valid 2015-05-27 16:15:44 +03:00
Valentin Kipyatkov 5a737b8973 Correctness check in JetPsiFactory.createExpression 2015-05-27 16:15:44 +03:00
Alexey Sedunov cb9b1019b2 Function <-> Property Intention: Fix conversion of recursive functions/property accessors
#KT-7823 Fixed
2015-05-26 19:29:09 +03:00
Alexey Sedunov e7748e2700 Convert Parameter to Receiver: Replace parameter references with labeled this-expressions (before shortening them). Report conflict when this-label is ambiguous
#KT-7681 Fixed
2015-05-14 15:47:56 +03:00
Valentin Kipyatkov 1ad5ea4f7e Corrected test data 2015-05-14 01:10:13 +03:00
Valentin Kipyatkov d09c1e7c5b "Invert if" - handling some more cases 2015-05-14 01:10:12 +03:00
Valentin Kipyatkov 279b406bca "Invert if condition" intention works better for non-symmetric if's
#KT-5009 Fixed
2015-05-14 01:10:11 +03:00
Valentin Kipyatkov 181af17315 KT-7704 Intention actions on visibility modifier for quick changing it
#KT-7704 Fixed
2015-05-14 01:10:11 +03:00
Valentin Kipyatkov 38ac420057 Fixed bug in MergeWhenIntention 2015-05-14 01:10:10 +03:00
Valentin Kipyatkov 102aa661ee Moved intention based inspection classes to their intention classes + some renames 2015-05-14 01:10:08 +03:00
Valentin Kipyatkov 9a97818b82 Smaller range for SimplifyNegatedBinaryExpressionIntention 2015-05-14 01:10:08 +03:00
Valentin Kipyatkov addcadeddf Replace "contains" with "in" intention handles negation 2015-05-14 01:10:06 +03:00
Valentin Kipyatkov 11812a9ece Renamed some intentions + test data dirs 2015-05-14 01:10:05 +03:00
Valentin Kipyatkov 096df91972 Renamed intentions package 2015-05-14 01:10:05 +03:00
Valentin Kipyatkov 8095aabd42 Refactored intentions to replace special name calls with operators 2015-05-14 01:10:04 +03:00
Valentin Kipyatkov fbc3fa2b09 KT-7212 Convert member function to extension intenton positions caret improperly
#KT-7212 Fixed
2015-05-14 01:10:04 +03:00
Valentin Kipyatkov 5491523f05 Renamed intention class 2015-05-14 01:10:03 +03:00
Valentin Kipyatkov 48ac89dca4 Refactored ConvertMemberToExtension to re-use original declaration instead of regenerating it by text
#KT-4920 Fixed
2015-05-14 01:10:02 +03:00
Valentin Kipyatkov ac9d75b45e KT-6632 "Convert to extension" intention should not be available on methods that override or implement a superclass method
#KT-6632 Fixed
2015-05-14 01:10:02 +03:00
Valentin Kipyatkov a23c6a2cdc Smaller range + refactoring of ConvertMemberToExtension 2015-05-14 01:10:02 +03:00
Valentin Kipyatkov b9486846e1 ElvisToIfThenIntention - smaller range + minor code improvements 2015-05-14 01:09:48 +03:00
Valentin Kipyatkov 709573db69 Fix in SpecifyTypeExplicitlyIntention 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov ada11ca5e9 Use of expressions instead of plain text when converting when's 2015-05-14 01:00:28 +03:00
Valentin Kipyatkov 76fc0c1418 FlattenWhenIntention - smaller range and refactoring 2015-05-14 01:00:28 +03:00
Valentin Kipyatkov 74cdd39ac9 Renamed test data dirs 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov b0ce16eada Remove explicit type intention should not be available on public 2015-05-14 01:00:25 +03:00
Valentin Kipyatkov 2d90ee5cad Split SpecifyTypeExplicitly intention into two + refactored them completely 2015-05-14 01:00:25 +03:00
Valentin Kipyatkov b0aca040d8 "JetPsiFactory.createExpressionByPattern" and some usages of it 2015-05-14 01:00:24 +03:00
Valentin Kipyatkov 05b6181d20 Renamed intention 2015-05-14 01:00:24 +03:00
Valentin Kipyatkov c617d5256e ReplaceWithTraditionalAssignmentIntention - smaller range 2015-05-14 01:00:24 +03:00
Valentin Kipyatkov 8fc799322b Refactored ReplaceWithTraditionalAssignmentIntention 2015-05-14 01:00:24 +03:00
Valentin Kipyatkov 475a361b32 Renamed intention 2015-05-14 01:00:24 +03:00
Dmitry Jemerov 625096466e IDE testdata: s/trait/interface 2015-05-13 16:13:13 +02:00
Valentin Kipyatkov d1afff1612 Renamed intention 2015-05-02 14:03:25 +03:00
Valentin Kipyatkov 2de466970d ReplaceWithInfixFunctionCallIntention - refactored 2015-05-02 14:03:25 +03:00
Valentin Kipyatkov 9dd67cfc4d InfixCallToOrdinaryIntention - smaller range + minor code improvements 2015-05-02 14:03:25 +03:00
Valentin Kipyatkov 1b7ac6bb02 Renamed intention to more clear name 2015-05-02 14:03:25 +03:00
Valentin Kipyatkov 38f735dcac IfNullToElvisIntention - better behavior for var's + slightly refactored utility functions 2015-05-02 14:03:25 +03:00
Valentin Kipyatkov 186dd5454d Added inspection based on IfNullToElvisIntention + moved intention based inspections into one file 2015-05-02 14:03:24 +03:00
Valentin Kipyatkov 8d887f8780 In progress: KT-7442 Inspection + intention to replace "if (xxx == null) return ..' with elvis 2015-05-02 14:03:24 +03:00
Valentin Kipyatkov 1daf12cf70 ReplaceItWithExplicitFunctionLiteralParamIntention - better caret position 2015-05-02 14:03:24 +03:00
Valentin Kipyatkov c7937f181b Refactored ReplaceExplicitFunctionLiteralParamWithItIntention 2015-05-02 14:03:24 +03:00
Valentin Kipyatkov 65d59467a8 Renamed intention 2015-05-02 14:03:23 +03:00
Valentin Kipyatkov 175806a902 "Make types implicit in lambda" intention - adapted to new lambda syntax + do not work on closing brace 2015-05-02 14:03:23 +03:00
Valentin Kipyatkov c6b18efb15 "Remove unnecessary parentheses" intention - smaller range & refactoring 2015-05-02 14:03:23 +03:00