Commit Graph

22329 Commits

Author SHA1 Message Date
Valentin Kipyatkov a5dabac296 Refactored "Change to constructor invocation" and new "Add constructor parameters and use them" quickfixes into one factory, making the first one always available 2015-05-14 01:09:44 +03:00
Valentin Kipyatkov cd419c2ddf Moved test data 2015-05-14 01:09:44 +03:00
Valentin Kipyatkov 00dcbd4d93 Initial implementation of KT-4046 Support 'Create constructor matching superclass'
#KT-4046 Fixed
2015-05-14 01:09:21 +03:00
Valentin Kipyatkov 734b502ad6 Fixed test data 2015-05-14 01:00:30 +03:00
Valentin Kipyatkov df25adcb15 Smaller range for IfNullToElvisIntention and inspection 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov 40f52f0216 Minor changes on code review 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov 69c787dded Fixed resolveToDescriptor for parameter of catch block 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov 830e3ba073 Better code in j2k 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov 709573db69 Fix in SpecifyTypeExplicitlyIntention 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov 07a89b38e1 Intention based intentions: added ability to highlight partial range, used it in new inspection based on IntroduceWhenSubjectIntention + added missing description 2015-05-14 01:00:29 +03:00
Valentin Kipyatkov 45c5454e39 Refactored IntroduceWhenSubjectIntention 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 66a90916fe JetPsiFactory.createExpressionByPattern supports JetTypeReference's as arguments 2015-05-14 01:00:28 +03:00
Valentin Kipyatkov 6317ecc870 No use of CallChainBuilder anymore 2015-05-14 01:00:28 +03:00
Valentin Kipyatkov ea6b632cea WhenToIfIntention - smaller range and refactoring 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 428bcbbc8a No use of WhenBuilder at all 2015-05-14 01:00:28 +03:00
Valentin Kipyatkov 4f96965310 No use of WhenBuilder in introduceSubject 2015-05-14 01:00:28 +03:00
Valentin Kipyatkov b200324a86 EliminateWhenSubjectIntention - no use of WhenBuilder 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov b1d0365c2f IfToWhenIntention - no use of WhenBuilder 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov 47c613c477 IfToWhenIntention - smaller range and code refactoring 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov 50f2c13cac EliminateWhenSubjectIntention - smaller range and code refactoring 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov 3702add034 Refactored IfThenToSafeAccessIntention 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov f2cced4384 Code improvements in IfThenToElvisIntention 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov 345f9217ae DoubleBangToIfThenIntention - smaller range + minor code improvements 2015-05-14 01:00:27 +03:00
Valentin Kipyatkov f892e17d6b Refactored ConvertIfWithThrowToAssertIntention 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov 392a1f52eb Fixed JetTypeLookupExpression 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov 74cdd39ac9 Renamed test data dirs 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov f73c4b296e Converted to Kotlin 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov 0ca492464b Refactored SimplifyBooleanWithConstantsIntention 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov 1fa14af02f Converted to Kotlin 2015-05-14 01:00:26 +03:00
Valentin Kipyatkov 0c7a366ddf No i18n 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 d956d31012 Minor code editings after conversion 2015-05-14 01:00:25 +03:00
Valentin Kipyatkov 899a28f5ec Converted to Kotlin (step 2) 2015-05-14 01:00:25 +03:00
Valentin Kipyatkov 1251663099 Converted to Kotlin (step 1) 2015-05-14 01:00:25 +03:00
Valentin Kipyatkov 7499c4bc19 Refactored SplitIfIntention + JetPsiFactory.createIf uses createExpressionByPattern and does not reformat its arguments 2015-05-14 01:00:25 +03:00
Valentin Kipyatkov de8601bb5d Got rid of JetPsiFactory.createBinaryExpression 2015-05-14 01:00:24 +03:00
Valentin Kipyatkov b0aca040d8 "JetPsiFactory.createExpressionByPattern" and some usages of it 2015-05-14 01:00:24 +03:00
Valentin Kipyatkov 0a5951fcb9 Minor 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
Valentin Kipyatkov 435e9fed3f Added inspection based on ReplaceWithOperatorAssignIntention 2015-05-14 01:00:23 +03:00
Valentin Kipyatkov bab4ae3879 Refactored ReplaceWithOperatorAssignIntention 2015-05-14 01:00:23 +03:00
Dmitry Jemerov 95f42ac050 fix test: redundant parentheses are no longer generated 2015-05-13 21:19:36 +02:00
Nikolay Krasko 3c7e7ffda6 Place light classes finder before standard PsiElementFinderImpl
Source elements should have priority over libraries.
2015-05-13 21:32:09 +03:00
Dmitry Jemerov 6f4cae03fe Quickfix to add a loop label when 'break' or 'continue' is used in a loop inside 'when'
#KT-7202 Fixed
2015-05-13 17:26:18 +02:00