Commit Graph

225 Commits

Author SHA1 Message Date
Valentin Kipyatkov db144a6121 Suggestions from expression itself to have higher priority + fixed incorect upper case naming 2015-06-29 19:36:49 +03:00
Valentin Kipyatkov 5c0195ff68 IterateExpressionIntention: checking for name conflicts 2015-06-29 19:36:48 +03:00
Valentin Kipyatkov e00294d17b IterateExpressionIntention uses collection expression for name suggestions too 2015-06-29 19:36:45 +03:00
Valentin Kipyatkov 2206459874 Initial implementation of KT-7688 Intention action to iterate over iterable value
#KT-7688 Fixed
2015-06-29 19:31:21 +03:00
Valentin Kipyatkov 46ad1b8573 "Remove argument name" intention 2015-06-29 19:29:26 +03:00
Valentin Kipyatkov 6988297511 More informative intention text 2015-06-29 19:29:26 +03:00
Valentin Kipyatkov 98c0c636b3 Smaller availability range for add argument name intention 2015-06-29 19:29:26 +03:00
Valentin Kipyatkov 9d83510af5 KT-7144 Intention action on an argument in a call to use named arguments form
#KT-7144 Fixed
2015-06-29 19:29:25 +03:00
Alexey Sedunov f6965b5004 PSI: Add parentheses around annotated expressions in returns
#KT-8260 Fixed
2015-06-27 13:58:03 +03:00
Valentin Kipyatkov bf014fc1c5 KT-5419 J2K: convert string concatenation to string template + implemented corresponding inspection
#KT-5419 Fixed
2015-06-15 18:32:45 +03:00
Denis Zharkov e3c3af6aab Change MISSING_CONSTRUCTOR_KEYWORD severity to error
And adjust testData
2015-06-12 11:23:13 +03:00
Valentin Kipyatkov 366a2be8a7 KT-7989 ReplaceWith replacement adds redundant type arguments for platform types
Highlighting of redundant type arguments made more strict about platform types

 #KT-7989 Fixed
2015-06-11 23:30:22 +03:00
Valentin Kipyatkov 2203fb3231 Renamed intention class 2015-06-11 23:30:22 +03:00
Pavel V. Talanov 07d35d305e Create import list psi element even if no directives are present
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291
New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present
Add test for inserting import to file where a first statement is a comment
Drop code dealing with non-existing import list in ImportInsertHelperImpl
AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
2015-06-08 20:51:04 +03:00
Valentin Kipyatkov 63b30cf7f6 KT-7955 "Add replaceWith to specify replacement pattern" intention/inpesction has too large a range
#KT-7955 Fixed
2015-06-08 15:37:58 +03:00
Valentin Kipyatkov e1efb95259 Added test 2015-06-08 15:37:40 +03:00
Valentin Kipyatkov f14615315d KT-5482 Redundant type arguments are not detected in some cases
#KT-5482 Fixed
2015-06-04 16:20:29 +03:00
Valentin Kipyatkov 9c0d607894 Replace "||" with "&&" (and the opposite) made more clever about negating expressions 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov ac6ef6b544 KT-7454 Replace "||" with "&&" adds unnecessary parethesis
#KT-7454 Fixed
2015-06-04 01:05:50 +03:00
Valentin Kipyatkov b012f22edc DeprecatedCallableAddReplaceWithIntention: fixed for string templates in expression 2015-06-02 14:36:06 +03:00
Pavel V. Talanov d531641459 Fix ReplaceWithOperatorAssignmentIntention in some cases
#KT-7831 Fixed
2015-06-01 15:52:52 +03:00
Alexander Udalov bf09906f35 Fix ISE when caret is on parameter of function type
EA-68570
2015-05-28 22:09:33 +03:00
Valentin Kipyatkov 18ddac0249 Corrected formatting in test data 2015-05-27 16:15:55 +03:00
Valentin Kipyatkov b6eda35345 TODOs 2015-05-27 16:15:55 +03:00
Valentin Kipyatkov fefa12b0a9 ConvertForEachToForLoopIntention preserves comments 2015-05-27 16:15:54 +03:00
Valentin Kipyatkov 5d0b42ee71 ConvertToForEachFunctionCallIntention preserves comments outside of body too 2015-05-27 16:15:54 +03:00
Valentin Kipyatkov 8b44c93667 JetPsiFactory.createByPattern supports PsiChildRange as argument, used it in ConvertToForEachFunctionCallIntention 2015-05-27 16:15:54 +03:00
Valentin Kipyatkov df0d27b8b2 Split if intention preserves comments 2015-05-27 16:15:53 +03:00
Valentin Kipyatkov 4a2f2b62ec Fixed KT-7755 Convert to expression body kills comment
#KT-7755
2015-05-27 16:15:53 +03:00
Valentin Kipyatkov 333445d93e Fixed Convert to foreach intention loosing comments 2015-05-27 16:15:52 +03:00
Valentin Kipyatkov 4c88b31878 KT-7525 Don't suggest to replace 'get' call with index operator for static method calls (inspection & intention)
KT-5322 super.get issues a "Replace 'get' call with index operator" inspection

 #KT-7525 Fixed
 #KT-5322 Fixed
2015-05-27 16:15:52 +03:00
Valentin Kipyatkov 0fe334fd55 KT-7702 Split into 2 if's intention: produce better result for return
#KT-7702 Fixed
2015-05-27 16:15:52 +03:00
Valentin Kipyatkov 8f797e8e69 "Split if" intention - renamed tests 2015-05-27 16:15:51 +03:00
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