Commit Graph

22345 Commits

Author SHA1 Message Date
Valentin Kipyatkov 386be4bd10 Fixed formatting problem 2015-05-14 01:09:51 +03:00
Valentin Kipyatkov 8e2d381b85 Code simplifications 2015-05-14 01:09:51 +03:00
Valentin Kipyatkov 089267deee Refactored branched folding intentions into separate files and inlining methods from util 2015-05-14 01:09:50 +03:00
Valentin Kipyatkov 832b4fb8d8 Refactored FoldBranchedExpressionIntention removing common subclass and FoldableKind 2015-05-14 01:09:50 +03:00
Valentin Kipyatkov d77b77809c Code corrections after conversion 2015-05-14 01:09:49 +03:00
Valentin Kipyatkov b1ef08c9a1 Conversion to Kotlin (not compilable yet) 2015-05-14 01:09:49 +03:00
Valentin Kipyatkov b9486846e1 ElvisToIfThenIntention - smaller range + minor code improvements 2015-05-14 01:09:48 +03:00
Valentin Kipyatkov 3b7bb81141 Renamed methods so that tests for parsing do not fail 2015-05-14 01:09:48 +03:00
Valentin Kipyatkov 37ab41ac52 Added parameter info + isAvailable 2015-05-14 01:09:47 +03:00
Valentin Kipyatkov 43ccdf1036 Changed order of quickfixes 2015-05-14 01:09:47 +03:00
Valentin Kipyatkov 21eb2acd31 Shorter quickfix names 2015-05-14 01:09:47 +03:00
Valentin Kipyatkov e31f0ed829 Add constructor parameters quickfix reuses existing parameters 2015-05-14 01:09:46 +03:00
Valentin Kipyatkov 0952e9a63a Add constructor parameters quickfix works for multiple constructors 2015-05-14 01:09:46 +03:00
Valentin Kipyatkov 4ac2e29d28 Fixed error type case 2015-05-14 01:09:45 +03:00
Valentin Kipyatkov c6ebc50e6c Renaming test data files 2015-05-14 01:09:45 +03:00
Valentin Kipyatkov 381049d13e Fix for non-accessible constructor case 2015-05-14 01:09:44 +03:00
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