Alexey Sedunov
5319e9e761
Change Signature: Support configurable Change Signature for Java code
...
#KT-5923 Fixed
2015-07-03 18:38:06 +03:00
Alexey Sedunov
9e82411e78
Change Signature: Do not process calls with unmatched arguments/parameters
2015-07-03 18:38:05 +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
0dc92c3ee8
QuickFixMultiFileTestGenerated - shorter test data files names
2015-05-27 16:15:44 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Valentin Kipyatkov
837e46a9b8
Big change in quickfix tests: no stupid test data format with "before" and "after" file prefixes
2015-05-08 22:29:42 +03:00
Pavel V. Talanov
3329136c9c
Fix test data for quickfix tests
...
Depending on Module and ModuleBuilder from runtime
2015-04-16 16:40:44 +03:00
Alexey Sedunov
0eda6c88b9
Quick-Fixes: Fix signature configuration for extension functions
...
#KT-7019 Fixed
2015-03-24 16:41:07 +03:00
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