Commit Graph

17 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 7b6f83815c Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages. 2015-03-05 15:19:29 +03:00
Alexey Sedunov a21163b8c4 Change Signature: Add test for KT-4013 "'Change signature' does not add necessary imports"
#KT-4013 Fixed
2015-02-20 19:08:19 +03:00
Valentin Kipyatkov 5d516a5f72 No need to shorten non-affected references in quickfixes 2015-02-09 12:56:00 +03:00
Alexander Udalov 0b64f028b6 Rename jet -> kotlin in idea: quickfixes
org.jetbrains.jet.plugin.quickfix -> org.jetbrains.kotlin.idea.quickfix
2015-01-13 01:14:36 +03:00
Alexey Sedunov 346d9ea0c5 Quick Fixes: Add test for KT-5922 (QuickFix to change lambda signature doesn't work with SAM conversion) 2014-12-11 17:50:31 +03:00
Alexey Sedunov c6541ccc6f Change Signature: Do not insert new-lines between parameters (to be fixed later at the formatter level) 2014-12-08 16:30:02 +03:00
Alexey Sedunov 07a2a16232 Type-related quick fixes: Render types using fully qualified names 2014-10-22 18:42:51 +04:00
Andrey Breslav 0cbbb6a0db Test data fixed 2014-10-13 15:37:47 +04:00
Alexander Udalov f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +04:00
Alexander Udalov ec30d52978 Delete Hashable, pull up its members to Any
Extensions on nullable types remain in Library.kt

 #KT-1741 Obsolete
 #KT-2805 Obsolete
 #KT-1365 Fixed
 #KT-4517 In Progress
2014-03-02 19:54:08 +04:00
Alexander Udalov 9537b68724 Load 'equals' parameter from Java code with the name 'other'
This fixes a lot of warnings on mixed Kotlin+Java code about different names
for the same parameter because we always loaded 'equals' parameter with the
name 'p0', whereas in Kotlin we usually name it 'other'
2014-02-28 21:48:29 +04:00
Valentin Kipyatkov d01ff28212 Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions) 2014-01-23 18:46:27 +04:00
Pavel V. Talanov f9a2b09a4e Add(Remove)ParameterQuickFix is not available for unmodifiable files 2013-11-12 14:15:57 +04:00
Pavel V. Talanov 66cc9b2cc7 Show error hint when trying to refactor synthesized function 2013-11-12 14:15:48 +04:00
Pavel V. Talanov f032b6e236 Eliminate redundant descriptorToDeclaration call from factory for "Change signature" quick fixes 2013-11-12 14:15:47 +04:00
Pavel V. Talanov 8c95884ad2 Add new functionality to "Change signature" refactoring
Extract single point of entry for all change signature refactorings and fixes (remove parameter, add parameter)
Change signature now affects overriding functions as well
Ask the user whether he wants to refactor base function(s) or the selected one if appropiate
Fix a problem with descriptorToDeclaration in JetChangeSignatureHandler
Rename: JetFunctionPlatformDescriptor -> JetMethodDescriptor
2013-11-12 14:15:46 +04:00
Alexander Kirillin 41045d2a1e new quick fixes: add parameter, remove parameter, change function literal signature 2013-05-07 21:15:27 +04:00