Commit Graph

3414 Commits

Author SHA1 Message Date
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
Natalia Ukhorskaya bf7f56d458 Redundant Sam Constructor inspection 2015-08-24 12:37:37 +03:00
Natalia Ukhorskaya ba48a5b7fc Formatter: space between type argument list and function literal argument 2015-08-24 12:37:33 +03:00
Natalia Ukhorskaya 03097d3453 J2K: Idea doesn't proposed to insert imports on copy-paste if explicit import was inserted
#KT-8738 Fixed
2015-08-24 12:37:31 +03:00
Dmitry Jemerov 341f09afd3 rename platformStatic to jvmStatic 2015-08-21 16:59:05 +02:00
Alexey Sedunov a085c93b5e Light Classes: Fix computation of base type in anonymous light class 2015-08-19 23:30:13 +03:00
Alexey Sedunov d48851ba63 Create From Usage: Fix ClassCastException on local property with delegate
#EA-69707 Fixed
2015-08-19 23:30:10 +03:00
Alexey Sedunov 85f85e85b4 Create From Usage: Quote declaration name if it's not a valid identifier
#EA-70291 Fixed
2015-08-19 23:30:07 +03:00
Alexey Sedunov d18a9f6d8a Create From Usage: Fix StackOverflowException on recursive type parameter bounds
#EA-69240 Fixed
2015-08-19 23:29:55 +03:00
Alexey Sedunov 69218e2647 Find Usages: Fix NPE on constructor with missing name
#EA-69907 Fixed
2015-08-19 23:26:17 +03:00
Alexey Sedunov 06cca689fc Call Hierarchy: Forbid interfaces
#EA-64406 Fixed
2015-08-19 23:26:15 +03:00
Valentin Kipyatkov 4bf20d747a Changes on code review 2015-08-19 20:46:38 +03:00
Valentin Kipyatkov 4876668716 Correct read/write access detection in case of plusAssign etc 2015-08-19 20:46:38 +03:00
Valentin Kipyatkov 97bf6f820a Fix in read/write detection 2015-08-19 20:46:38 +03:00
Valentin Kipyatkov 5e97387e8d Public utility to detect read/write access for an expression
Implemented ReadWriteAccessDetector which gives read/write access in Highlight Usages and Find Usages
+ More correct UsageType detection
2015-08-19 20:46:37 +03:00
Valentin Kipyatkov 1fd0578b9e Fixed deprecated symbol usage fix for functions with optional parameters from libraries
#KT-8525 Fixed
2015-08-19 18:06:31 +03:00
Valentin Kipyatkov 30a9a8787e Optimize imports to use "packages to import with *" setting 2015-08-19 17:27:47 +03:00
Valentin Kipyatkov 9b4e3b15c4 KT-8822 Override Members: do not show private members from java classes
#KT-8822 Fixed
2015-08-19 17:26:44 +03:00