Commit Graph

185 Commits

Author SHA1 Message Date
Evgeny Gerashchenko ae4c68830d Importing root scope without members. 2014-01-16 22:11:55 +04:00
Pavel V. Talanov e693820fb4 Auto-imports for operator calls and infix calls
#KT-1613 Fixed
 #KT-4192 Fixed

Enable auto-import fix for "unresolved reference with wrong receiver" diagnostic
2013-12-31 13:24:38 +04:00
Andrey Breslav 6df3a3042c Properly handle the case of backing field access qualified with 'this' reference 2013-12-05 13:28:40 +04:00
svtk 8defeef050 made UNREACHABLE_CODE a warning instead of error 2013-11-22 18:57:59 +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
Natalia Ukhorskaya 3287744415 Add common JetElement for imports: JetImportList 2013-10-25 13:55:40 +04:00
Alexey Sedunov 28b3db53fe Fix irregular PSI structure for classes without body 2013-10-15 18:43:59 +04:00
Alexey Sedunov eff62bfd83 KT-4008 'Replace if with when' is available but does not work 2013-10-11 17:24:07 +04:00
Pavel V. Talanov 9eeda58747 Fix for MakeOverriddenMemberOpenFix
Fixes bugs which led to BindingContextUtils#descriptorToDeclaration throwing exception
2013-09-30 20:54:43 +04:00
Andrey Breslav fc70a65f99 Support 'suppress for statement' quick fix
#KT-3319 Fixed
2013-09-24 07:05:20 -07:00
Andrey Breslav a13b66c58e 'Suppress warnings' as quick fix options
If no quick fix is available a special intention is shown
2013-09-24 06:58:41 -07:00
Nikolay Krasko 24794741ff Testing auto imports work in calls
#KT-4000 In Progress
2013-09-24 16:54:26 +04:00
Andrey Breslav 69cc11d035 Existing tests updated according to "'Else' is not required in 'when' if Unit is expected" 2013-09-13 22:05:37 +02:00
Svetlana Isakova 96db2ecabd added different errors instead of ERROR_COMPILE_TIME_VALUE with different text
check type for constants in DataFlowUtils
2013-09-13 16:04:17 +04:00
Svetlana Isakova c242a833cb removed obsolete test
no more error 'NO_GET_METHOD' when there's get method with inappropriate signature
2013-09-03 13:09:16 +04:00
Svetlana Isakova 358c1d6f71 fixed ArrayIndexOutOfBoundsException in quick fix util
(in 'getParameterCorrespondingToValueArgumentPassedInCall')
2013-09-03 13:09:06 +04:00
Andrey Breslav 16d656c7af Fixing tests after adding a new intention 2013-08-27 15:58:22 +04:00
Nikolay Krasko 26f14a67ee Fix "Descriptor of property not available in binding context" assert for declarations in bodies 2013-08-16 18:28:05 +04:00
Evgeny Gerashchenko 9b19685ec1 Merge branch master into pr/269 2013-06-10 17:40:37 +04:00
Wojciech Lopata 4bf7151e47 Make "type mismatch" quickfixes not available in case of error types 2013-05-29 14:58:34 +02:00
Wojciech Lopata 2a97617880 QuickFix: change type of constructor parameter to match value argument in invocation 2013-05-29 13:53:07 +02:00
Wojciech Lopata c6a378f4fb Rename directory with tests 2013-05-29 13:53:06 +02:00
Wojciech Lopata 0a541373a5 QuickFix: change property type to match expression returned by getter 2013-05-29 13:53:06 +02:00
Wojciech Lopata 16d9abf546 QuickFix: change type of overridden function to type of overridding function 2013-05-29 13:53:05 +02:00
Wojciech Lopata e08d9ee8da Fix quickFix for PROPERTY_TYPE_MISMATCH_ON_OVERRIDE 2013-05-29 13:53:04 +02:00
Wojciech Lopata 9fdbd01660 QuickFix: change type of overridden property to type of overridding property 2013-05-29 13:53:03 +02:00
Wojciech Lopata 0d65a1b789 Better text for ChangeVariableTypeFix 2013-05-29 13:53:02 +02:00
Wojciech Lopata 1a5d515972 QuickFix: change function return type to match expexted type of call 2013-05-29 13:53:01 +02:00
Wojciech Lopata 76e648ded3 QuickFix: change overloaded operator parameter type or return type 2013-05-29 13:53:00 +02:00
Wojciech Lopata d3492d8e6f QuickFix: change property type to match it's initializer type 2013-05-29 13:53:00 +02:00
Wojciech Lopata ed6e734c14 Single factory for TYPE_MISMATCH error 2013-05-29 13:52:59 +02:00
Wojciech Lopata 9b90ee2e80 ChangeFunctionLiteralReturnTypeFix for EXPECTED/ASSIGNMENT_TYPE_MISMATCH errors 2013-05-29 13:52:52 +02:00
Wojciech Lopata 44fa32c617 ChangeFunctionParameterTypeFix for TYPE_MISMATCH error 2013-05-29 12:22:41 +02:00
Wojciech Lopata b99e46b6f9 Cleanup in "type mismatch" tests 2013-05-29 12:22:40 +02:00
Wojciech Lopata 35fa071e1b Better behaviour of "Change Type" quickfixes in case of function types 2013-05-29 12:05:18 +02:00
Michał Sapalski cacb4b26e4 Support for generic classes in quickfix for NOTHING_TO_OVERRIDE 2013-05-28 12:02:55 +04:00
Michał Sapalski d4fc814d76 Quickfix for NOTHING_TO_OVERRIDE: add function to one of supertypes. 2013-05-28 12:02:54 +04:00
Michał Sapalski b2bb581127 Quickfix for MIXING_NAMED_AND_POSITIONED_ARGUMENTS. 2013-05-17 13:01:29 +04:00
Alexey Sedunov d5739bbe7f Fix negative quickfix tests which use when 2013-05-16 16:31:43 +04:00
Michał Sapalski 68cd832831 Search in all superclasses in quickfix for NOTHING_TO_OVERRIDE. 2013-05-15 10:33:19 +04:00
Jack Zhou 5bd144313d Create from usage: Fixed case for multi-declaration in a for-loop. 2013-05-12 23:51:02 -04:00
Jack Zhou ea14607576 Create from usage: Made CreateGetFromUsage7 test clearer. 2013-05-12 23:50:45 -04:00
Jack Zhou ec15d5fee4 Create from usage: Renamed all references of 'method' to 'function'. 2013-05-12 23:50:44 -04:00
Jack Zhou eadb73c9f8 Create from usage: Using UnsupportedOperationException for the file template instead. 2013-05-12 23:50:41 -04:00
Jack Zhou c7c8c096f7 Create from usage: Removed quickfix for NO_CLASS_OBJECT. 2013-05-12 23:50:40 -04:00
Jack Zhou b7fe134b61 Create from usage: Added tests. 2013-05-12 23:50:36 -04:00
Alexander Kirillin 41045d2a1e new quick fixes: add parameter, remove parameter, change function literal signature 2013-05-07 21:15:27 +04:00