Commit Graph

206 Commits

Author SHA1 Message Date
Alexey Sedunov 9cbcabffa4 Control-Flow Analysis: Reuse pseudo-value information for unused expression analysis 2014-07-28 13:07:37 +04:00
Valentin Kipyatkov 2df60a27c8 Better code for change variable mutability fix 2014-07-10 23:20:39 +04:00
Svetlana Isakova e62b4cfb5f Invoke 'Add name to argument fix' not only on simple name callee expressions 2014-07-08 14:57:40 +04:00
Pavel V. Talanov 23c9080ff3 Drop MigrateSureInProjectFix 2014-07-03 20:46:53 +04:00
Pavel V. Talanov e3c170183e Fix invalid usage of descriptorToDeclaration in QuickFixUtil 2014-06-24 16:37:44 +04:00
Pavel V. Talanov 41dd12d46b Fix invalid usage of descriptorToDeclaration in QuickFixFactoryForTypeMismatchError 2014-06-24 16:37:44 +04:00
Nikolay Krasko 80d6b0800e Make ResolveSessionForBodies.resolveToDescriptor() work for local declarations (EA-56877)
Fix (EA-56877)
2014-05-23 15:36:31 +04:00
Jeremy Kaplan b3842285e8 Implemented Operator To Function intention action.
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
2014-05-12 21:04:51 +04:00
Alexander Udalov 5a0055cbeb Fix message case in JetBundle.properties
Intention names should be lowercase, family names should have each word
except prepositions capitalized
2014-05-12 16:47:00 +04:00
Lingzhang 6066d19de5 Added KT-4579 makeTypeExplicitInLambda and makeTypeImplicitInLambda intentions 2014-04-24 18:11:43 +04:00
Andrey Breslav 9da2cbd5e8 Duplicating diagnostics removed from test data 2014-04-18 21:28:23 +04:00
Andrey Breslav 708694a09d Resolve annotation arguments only once 2014-03-26 21:10:29 +04:00
Alexey Sedunov 028a71273c Fix test data of QuickFixTest 2014-03-25 16:49:44 +04:00
Zack Grannan 1f720c8559 Added safeAccessToIfThen intention 2014-03-12 16:02:55 +04:00
Andrey Breslav f752527e48 Test data fixed after adding a new intention 2014-03-05 12:02:14 +04:00
Alexander Udalov f7b6457139 Replace "jet" package name with "kotlin" in testData 2014-03-02 19:55:26 +04:00
Alexander Udalov b2d074c5cc Quickfix to add 'override' to equals, hashCode, toString in project
To help users migrate to the newest Kotlin version in two clicks
2014-03-02 19:54:55 +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
Natalia Ukhorskaya fd3f852a93 Annotation parameter must be constant on vararg and array arguments 2014-01-28 18:21:43 +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
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