Commit Graph

3431 Commits

Author SHA1 Message Date
Valentin Kipyatkov 37ed77467f Fixed ReplaceWith quickfix not working when synthetic extensions are used in the pattern 2015-09-03 15:55:57 +03:00
Valentin Kipyatkov 16650e8f5c Conflicting extension is recognized as redundant for setter with expression body 2015-09-03 15:55:57 +03:00
Valentin Kipyatkov 086d29a44a Added second quickfix on conflicting extension to mark it hidden and deprecated 2015-09-03 15:55:56 +03:00
Valentin Kipyatkov b2ea369129 Don't report conflicting extension for marked with @HiddenDeclaration 2015-09-03 15:55:56 +03:00
Valentin Kipyatkov 10f7d6d7dd Inspection (and quickfix) for extension propeties conflicting with synthetic ones 2015-09-03 15:55:54 +03:00
Nikolay Krasko 1132652026 Update to 142.4245.2: Temprorary modify test data after IDEA update
The problem is in order of cleanup actions. Each action can invalidate psi and that can prevent next action from execution.
2015-09-02 15:10:43 +03:00
Natalia Ukhorskaya ffe41b88a7 Update to 142.4245.2: Debugger tests: changes in testData 2015-09-02 15:10:41 +03:00
Nikolay Krasko 339f8ee2ab Update to 142.4245.2: Fix test data in pull up 2015-09-02 15:10:40 +03:00
Nikolay Krasko 73a24435f7 Make Kotlin light classes pass "element instanceof StubBasedPsiElement" in LocalSearchScope scope 2015-09-02 13:49:10 +03:00
Denis Zharkov c59b118b09 Implement quckfix adding explicit upper bounds for generic when needed 2015-09-02 12:04:08 +03:00
Denis Zharkov c17451cf5c Add quickfix for JAVA_TYPE_MISMATCH 2015-09-02 12:03:52 +03:00
Stanislav Erokhin 5ded315cbb Improved error reporting for candidates with wrong parameter count 2015-09-01 23:37:42 +03:00
Michael Nedzelsky be2324031d decompiled text: add test for inherited interface 2015-09-01 15:06:45 +03:00
Nikolay Krasko add43407d3 Overridden methods with generic type shows no implementations found (KT-8723)
#KT-8723 Fixed
2015-09-01 12:45:12 +03:00
Valentin Kipyatkov 937f243046 DeprecatedSymbolUsageInWholeProjectFix removes imports too 2015-08-31 15:48:25 +03:00
Valentin Kipyatkov e98edbcbac Code cleanup to remove deprecated symbol imports that have ReplaceWith 2015-08-31 15:48:25 +03:00
Yan Zhulanow 2ce9903356 Fix tests 2015-08-31 15:33:13 +03:00
Dmitry Jemerov 37c40c9a23 change the origin of light methods for property accessors to the property itself 2015-08-31 12:18:25 +02:00
Dmitry Jemerov e283dbb8f4 when renaming a companion object, filter out references to companion object via its containing class, which shouldn't be updated by the rename 2015-08-31 12:08:13 +02:00
Dmitry Jemerov e99316d22e rename tests: defaultObject -> companionObject 2015-08-31 12:08:12 +02:00
Alexander Udalov 29abf94327 Prohibit clone() for enum classes
#KT-8972 Fixed
2015-08-28 21:11:02 +03:00
Denis Zharkov e8f91e596c Adjust test data after fixes about generic nullability 2015-08-28 18:50:26 +03:00
Denis Zharkov 00a78fce0c Get rid of special logic when check receiver
Instead of manually checking nullability when reporing UNSAFE_CALL_ERROR
just check if receiver type is subtype of receiver parameter

Make it in two steps
1. Check subtype with respect to smart casts but ignoring nullability (if it's not satisfied -> ERROR)
2. Check subtype with respect to nullability and smartcasts (record latter if needed)
2015-08-28 18:50:25 +03:00
Dmitry Jemerov c7b26ed7ca improve support for renaming overriding methods in enum entries
#KT-8891 Fixed
2015-08-28 15:49:07 +02:00
Nikolay Krasko 4c9af37526 Can't navigate to SAM adapter function declaration (KT-8918)
#KT-8918 Fixed
2015-08-28 13:43:59 +03:00
Valentin Kipyatkov ab783e052f No override for private to this 2015-08-27 23:21:22 +03:00
Valentin Kipyatkov 4717b17418 Inspection & fix for redundant supertype qualification 2015-08-27 23:21:22 +03:00
Valentin Kipyatkov d62eeb1c25 Better test 2015-08-27 23:21:22 +03:00
Valentin Kipyatkov dcfe9b98d7 Fixed bug with duplicated members in Override Members dialog 2015-08-27 23:21:21 +03:00
Valentin Kipyatkov 40638de67c Override members does not generate qualified super when not needed 2015-08-27 23:21:21 +03:00
Valentin Kipyatkov 9497856d8e KT-8868 "Implement members" generates unqualified reference for member class/interface
#KT-8868 Fixed
2015-08-27 23:21:21 +03:00
Valentin Kipyatkov ba33c834c1 Add name to argument intention to work not only on the last argument 2015-08-27 23:21:20 +03:00
Dmitry Jemerov 5e1d8bc503 test for safe delete of data class parameter used as componentN() function in Kotlin code 2015-08-27 21:15:48 +02:00
Dmitry Jemerov 63d477e355 fix broken merge; support for renaming primary constructor parameter which declares an overridden property 2015-08-27 21:15:47 +02:00
Dmitry Jemerov 3e5c687e9d additional tests to verify that cases from KT-4793 are fixed
#KT-4793 Fixed
2015-08-27 21:15:47 +02:00
Dmitry Jemerov ef4b32db0d fix find usages and rename for primary constructor properties
#KT-8807 Fixed
2015-08-27 21:15:46 +02:00
Dmitry Jemerov 18223dfaaa update backing field references when renaming Kotlin property
#KT-7905 Fixed
2015-08-27 14:31:17 +02:00
Stanislav Erokhin aaebe70342 Improved logic of finding conflicts for refactoring actions 2015-08-27 12:01:08 +03:00
Natalia Ukhorskaya 19e8c9edb0 Debugger: Support parameters of inlined lambda in evaluate expression 2015-08-26 12:16:08 +03:00
Natalia Ukhorskaya 06b13f1292 Debugger: get topmost element at offset as contextElement 2015-08-26 12:16:06 +03:00
Natalia Ukhorskaya c6d29cc1d5 Debugger: support labels for non object references (primitive, array) 2015-08-26 12:16:05 +03:00
Valentin Kipyatkov 628ce4ea32 Better sorting of variants in add import popup 2015-08-25 18:56:17 +03:00
Valentin Kipyatkov 9837d383a9 Completion and add import popup to use same sorter
#KT-8842 In progress
2015-08-25 18:56:16 +03:00
Dmitry Jemerov 704e72eee1 correcty find Java usages of static methods generated for companion object members annotated as jvmStatic
#KT-8902 Fixed
2015-08-24 18:12:13 +02:00
Dmitry Jemerov 24f45a382e ReferencesSearch finds references of data class component functions in Java code
#KT-8808 Fixed
2015-08-24 18:12:05 +02:00
Dmitry Jemerov 056d8dfd9f correcty index escaped identifiers
#KT-8846 Fixed
2015-08-24 15:47:28 +02:00
Dmitry Jemerov d9a854608b test to verify that renaming fields of local objects works
#KT-6528 Fixed
2015-08-24 15:12:45 +02:00
Dmitry Jemerov 24ba5a46f1 use correct safe delete processor for members of local classes and objects
#KT-8894 Fixed
2015-08-24 15:12:45 +02:00
Nikolay Krasko 522a5ea0f2 Safe Delete does not warn about class literal - tests (KT-8919)
#KT-8919 In Progress
2015-08-24 15:50:20 +03:00
Dmitry Jemerov b45af1d47a the source for a parameter of the generated copy() function is the corresponding constructor parameter
#KT-8698 Fixed
2015-08-24 12:20:40 +02:00