Dmitry Jemerov
55640ac885
assorted Find Usages fixes: add missing read actions, better cancellation, fix search of componentN() usages for data class primary constructor parameter, remove workaround for usage of IDEA API which is now public
2015-09-04 18:25:36 +02:00
Dmitry Jemerov
fcb8b796c4
change expected testdata
2015-09-04 15:05:11 +02: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
Alexey Sedunov
69218e2647
Find Usages: Fix NPE on constructor with missing name
...
#EA-69907 Fixed
2015-08-19 23:26:17 +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
Evgeny Gerashchenko
799368386b
KT-6877 Wrong unused function inspection on anonymous object member
...
#KT-6877 fixed
2015-08-15 12:29:46 +02:00
Evgeny Gerashchenko
da4be8a0f5
KT-7484 Companion object is marked unused if it's only usages are statically imported from Java
...
#KT-7484 fixed
2015-08-15 12:29:44 +02:00
Evgeny Gerashchenko
3a4010503e
Minor. Renamed test data dir.
2015-08-15 12:29:43 +02:00
Valentin Kipyatkov
c2c6ba59fd
Changes on code review
2015-08-03 16:28:44 +03:00
Valentin Kipyatkov
9bb2fe9a67
Optimization of parameter usages search
2015-08-03 16:28:43 +03:00
Pavel V. Talanov
edc3755b91
Do not build light classes for decompiled enum entries
2015-07-21 20:52:44 +03:00
Valentin Kipyatkov
13f0d3ca23
Initial implementation of usage search for get/set methods in form of synthetic extension
2015-07-16 13:49:16 +03:00
Evgeny Gerashchenko
01b83b3e3e
Minor. Fixed test data.
2015-07-03 19:48:01 +04:00
Evgeny Gerashchenko
aa65eb1055
More proper fix for KT-8137/EA-69470: avoiding failed assertion when searching usages of parameter of local class constructor
...
KT-8137 AE at JetSourceNavigationHelper.convertNamedClassOrObject() on function local class with several constructor parameters
#KT-8137 fixed
#EA-69470 fixed
2015-07-03 16:00:06 +03:00
Alexey Sedunov
efb36f4a49
Find Usages: Use isEquivalenTo for PsiCompiledElement only when matching reference targets #KT-7983 Fixed
2015-06-16 21:15:31 +03:00
Alexey Sedunov
95438c7b5d
Light Classes: Fix ClassCastException for KotlinNoOriginLightField
2015-06-11 13:52:59 +03:00
Alexey Sedunov
2a73247566
Find Usages: Rename test class and move test data
2015-06-11 13:52:54 +03:00
Alexey Sedunov
81440815e1
Light Classes: Retain original declarations for nested decompiled classes
2015-06-11 13:52:53 +03:00
Alexey Sedunov
ca8e2d4956
Navigation: Implement proper getOriginalElement() for Kotlin declarations.
...
Run find usages tests with library for both original and navigation elements. Drop duplicating tests. Simplify test class.
TODO: Some usages are not found yet since light methods built from library files do not retain original declarations
2015-06-11 13:52:52 +03:00
Alexey Sedunov
e2d758463f
Find Usages: Support primary constructors
...
#KT-7881 Fixed
2015-06-11 13:52:49 +03:00
Alexey Sedunov
64ae0c0036
Find Usages: Add file grouping to test data
2015-06-11 13:52:43 +03:00
Evgeny Gerashchenko
0488229a61
KT-7693 Unused constructor parameter is not detected if class is constructed with named argument
...
#KT-7693 fixed
2015-05-25 18:33:08 +03:00
Alexey Sedunov
b2201026d1
Java Resolver: Substitute original element when resolving PsiMethod to FunctionDescriptor
...
#KT-7353 Fixed
2015-05-22 20:51:25 +03:00
Evgeny Gerashchenko
e50de5d94d
KT-7730 Find Usages causes 100% CPU usage, UI blocked, never returned
...
KT-7623 Renaming val constructor parameter of a data class is very slow
#KT-7730 fixed
#KT-7730 fixed
2015-05-22 14:33:11 +03:00
Mikhail Glukhikh
cf741cb868
Enum parsing changed: first entries, then members. Grammar fixed accordingly.
...
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Evgeny Gerashchenko
533935f2c0
KT-7472 function of anonymous class is never used
...
#KT-7472 fixed
2015-05-14 21:51:07 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Dmitry Jemerov
f93eeeb563
fix tests by adding missing 'init' keywords to testdata
2015-04-29 14:07:05 +02:00
Denis Zharkov
37d7327482
Implement visitPrimaryConstructor in LazyDeclarationResolver
...
It's need to prevent exception when trying to analyze each declaration
node within class
#KT-7279 Fixed
#KT-7315 Fixed
2015-04-07 19:31:30 +03:00
Alexey Sedunov
11675322ee
Find Usages: Fix exception in the search of class with default parameters in primary constructor
2015-03-30 21:10:24 +03:00
Alexey Sedunov
d19e6337a3
Find Usages: Support of secondary constructors and delegation calls
2015-03-21 03:29:03 +03:00
Evgeny Gerashchenko
c652cc16dc
Classified usages as type parameters correctly.
...
#KT-7047 fixed
2015-03-20 19:34:18 +03:00
Evgeny Gerashchenko
51fb4910a1
Classified usages in up casts correctly.
...
#KT-7047 fixed
2015-03-20 19:34:18 +03:00
Evgeny Gerashchenko
e752dd0a80
Classified usages in "is" of when entry correctly.
...
#KT-7047 fixed
2015-03-20 19:34:17 +03:00
Evgeny Gerashchenko
efccde2c0b
Finding implicit usages of companion object in containing class.
2015-03-20 19:34:15 +03:00
Denis Zharkov
d1308ebf84
Don't report unused symbol if secondary constructor used
...
#KT-6997 Fixed
2015-03-18 10:56:29 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Evgeny Gerashchenko
22a41e8012
Introduced category for default object usages.
2015-03-16 14:11:41 +03:00
Evgeny Gerashchenko
9bcf9dceef
Supported default objects in class usages.
2015-03-16 14:11:37 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Evgeny Gerashchenko
8ba15937f9
KT-6820 Find usages doesn't find delegated properties when searching get/set/propertyDelegated functions
...
#KT-6820 fixed
2015-03-05 18:42:18 +03:00
Nikolay Krasko
f3919db592
Find usages and reference to delegation origin
2015-02-24 21:52:52 +03:00
Pavel V. Talanov
a1f4c06a49
Update test data that mentioned old JvmAbi constants
2015-02-16 15:38:34 +03:00
Nikolay Krasko
0f3971323f
Go to Declaration does not work on usage of constant from class object in Java (KT-6172)
...
#KT-6172 Fixed
2015-02-13 20:28:51 +03:00
Alexander Udalov
44840d07a8
Rename jet -> kotlin in idea: caches, findUsages, references, stubindex
2015-01-13 01:15:10 +03:00
Alexey Sedunov
c8cb5f8c29
Find Usages: Fix reference matching for declarations located in libraries
...
#KT-5762 Fixed
2015-01-12 22:55:31 +03:00
Alexander Udalov
d384e50a97
Rename jet -> kotlin in frontend: PSI
...
org.jetbrains.jet.lang.psi -> org.jetbrains.kotlin.psi
2015-01-10 15:52:14 +03:00