Commit Graph

63 Commits

Author SHA1 Message Date
Anna Kozlova
5c45d26ac1 [kotlin] k2: find usages: overloads detection
- include top level functions from the same package
- accept functions from superclasses

KTIJ-28396

GitOrigin-RevId: 823eff5ee1a2729651b7ec5a7194ac7d03ce655e
2024-03-08 10:20:44 +00:00
Dmitrii Gridin
7ad47a3e04 [CRI] add more test cases
^KTIJ-24827
^KTIJ-29026

GitOrigin-RevId: dfec121711e06df5049e26fed09b246e6a319a0a
2024-03-07 17:46:03 +00:00
Anna Kozlova
68006546c0 [kotlin] k2: find usages: overloads detection
- reject functions with different receivers
- accept function without receiver and function with any receiver on the same nesting level

^KTIJ-28396 fixed
^KTIJ-26220 fixed

GitOrigin-RevId: 3a189bf3c7ff559a8a3320ed6d5a6dcdc76c9680
2024-03-07 00:39:58 +00:00
Dmitrii Gridin
691fc5b813 [CRI] add more test cases
^KTIJ-24827

GitOrigin-RevId: 9b71dd45a5ee64b7efb777853e370e6cfb99217a
2024-03-06 23:04:50 +00:00
Anna Kozlova
ec2b13f8ea [kotlin] find usages: include properties found by by in component search
^KTIJ-10891 fixed

GitOrigin-RevId: b9a3d6c6d2161dadedfee94db4d7fcee3f14f475
2024-03-06 20:10:44 +00:00
Anna Kozlova
e744a14e78 [kotlin] find usages: support suspend invoke convention
^KTIJ-1053 fixed

GitOrigin-RevId: 0d869c1452abe428b81f8c1f16c039492376f2dd
2024-03-06 11:51:34 +00:00
Anna Kozlova
3fac9b922d [kotlin] find usages: search for constructor usages in java
- super calls / method references are covered by MethodReferencesSearch only

^KTIJ-10238 fixed
^KTIJ-28953 fixed

GitOrigin-RevId: cc1711c7445cb72bff4e41887a3d2fbcfed3ae6a
2024-02-29 13:49:51 +00:00
Vladimir Dolzhenko
2c5a48c4d7 [kotlin] Align k2 module names with naming convention
#KTIJ-28562

GitOrigin-RevId: 689120c48d4ff0a8b0acba381a0da24ec8992c3d
2024-01-23 17:52:15 +00:00
Vladimir Dolzhenko
380ddc53d2 [kotlin] Enable kotlin.compiler-reference-index.tests.k2 tests in aggregator
#KTIJ-28522

GitOrigin-RevId: 9beb088cff3a6bf30308b1fe8818d459bdad5224
2024-01-21 23:06:45 +00:00
Vladimir Dolzhenko
b71bba3c51 [kotlin] Enforce kotlin.plugin.k2 dependency for k2 modules
GitOrigin-RevId: cd8ae3ce77a9cabfa2629de4022b3fbbbb8cdac5
2024-01-19 23:34:50 +00:00
Ilya Kirillov
f7d238defc [kotlin] fix circular dependency between modules kotlin.tests-common:resources_test, kotlin.base.test:resources_test, kotlin.fir.frontend-independent.tests:resources_test
- Move `IgnoreTests`, `InTextDirectivesUtils` from kotlin.fir.frontend-independent.tests` to `kotlin.base.test` module

GitOrigin-RevId: 6df818df2d92f2740386095b240d29b29f23c817
2024-01-08 23:15:29 +00:00
Dmitrii Gridin
bf49f9e21d [kotlin] regenerate tests for 2024
GitOrigin-RevId: 48215f9ecb7d1a85481bcfad203e8c73e0c5a907
2024-01-01 11:38:00 +00:00
Ilya Kirillov
a2bbe4d318 Remove snapshot kotlin stdlib from Kotlin plugin
^KT-62510
^KTIJ-20529 fixed

GitOrigin-RevId: a49099902566abb23dfb56a578b368b4973e332f
2023-10-20 20:53:09 +00:00
Jaebaek Seo
9b7bbe455d [kotlin] Delete find-usage test for circular class inheritance
A find-usage test is added to check a corner case for circular class inheritance, which fails because "Loop in supertype" breaks `isInheritor` check for both K1 and K2. This commit deletes the problematic test case.

^KTIJ-26993

GitOrigin-RevId: 94f59c18acbd519d0572a2296ef7bbb59253c547
2023-09-22 09:10:29 +00:00
Roman Shevchenko
18632a4398 [project] replacing even more custom Path extensions with stdlib/JRE calls
GitOrigin-RevId: 600179c80b09d62490a4ca19c3c2b6be9195fdd8
2023-09-06 14:02:32 +00:00
Anna Kozlova
f44c63348e [kotlin] find usages: don't find property overloads (KTIJ-26540)
GitOrigin-RevId: d188c7c66ee4554349ad388d283ae12cdac59c45
2023-08-08 07:36:23 +00:00
Anna Kozlova
8a1b354a83 [kotlin] k2: ensure overridden symbols are picked from generated property
- add test for KTIJ-26343
- adjust to changes in AA, which always delegates to generated property if any

GitOrigin-RevId: 9f57a75c72d45bd86b4ad6bf2cd91f60487c2c7f
2023-07-28 12:56:44 +00:00
Anna Kozlova
2c8c6e6322 [kotlin] k2: overload function detection fixed
^ KTIJ-26336

GitOrigin-RevId: b0119b42d8864e63f947f70f6d7d7b0acf905527
2023-07-28 12:55:58 +00:00
Alexander.Danilov
d41dcdc459 Kotlin Find Usages: test data for property and base methods of accessors option KTIJ-26343
GitOrigin-RevId: 5b723bad668e910140dd31263b3a869438a9f674
2023-07-20 12:09:02 +00:00
Marco Pennekamp
b37d1476c0 Merge commit '05fbe051fdcbb5f775fb28c6de4173e18f6f5c9a'
GitOrigin-RevId: ee0bac9fd4f05b1027193023561963e58b613359
2023-07-15 12:39:06 +00:00
Anna Kozlova
6faff4a1c0 [kotlin] k2: support overloaded search for extensions (KTIJ-26231)
GitOrigin-RevId: a834881bddf7c951b0eb2658acec6a6f594def36
2023-07-13 11:37:19 +00:00
Alexander.Danilov
82477263b8 Kotlin Find Usages: test data for extension functions KTIJ-26231
GitOrigin-RevId: 7f48d7a56024a6affdb5f008c9120aefe6293d0e
2023-07-11 12:15:18 +00:00
Alexander.Danilov
2b17b409cf KotlinFind Usages Tests: case for external function and its usage in Java
GitOrigin-RevId: 5aa9a67fc157195747c982e0fe50683efd8986f7
2023-07-06 15:12:13 +00:00
Alexander.Danilov
18a64a9eb4 Add test data for type parameters in find usages
GitOrigin-RevId: bdf234004f62792a0b0505406e46035393352e06
2023-07-03 13:27:52 +00:00
Alexander.Danilov
cf62a5ba29 Add test data for type aliases find usages
GitOrigin-RevId: 17a21dd00f57bd643e9d2c6be1230095b785cd33
2023-07-03 08:11:15 +00:00
Alexander.Danilov
f1e005b360 More test data to check parameter position and same-name functions for Search in overridings option KTIJ-21368
GitOrigin-RevId: eaa71d5114e81e3e646bc4aa6b3caa0d8166f218
2023-06-23 17:10:29 +00:00
Alexander.Danilov
b12d509fa6 Kotlin Find Usages: fix search in overriding methods option
^KTIJ-21368 fixed

GitOrigin-RevId: c431c5bb542593374479a5fc91017398f150cf07
2023-06-22 11:48:49 +00:00
Alexander.Danilov
0e363a770c Add some test data for Kotlin Find Usages tests
GitOrigin-RevId: 3d7431ec7bf71070fb9cf970d60b081b59f770b0
2023-06-21 12:27:24 +00:00
aleksandrina-streltsova
27dc7bb509 [kotlin k2] Fix exception on obtaining symbol for function type parameter in find usages
^KTIJ-25760 Fixed

GitOrigin-RevId: 166525395912b879a56ada8440884e9f1d5de2e4
2023-06-07 16:22:43 +00:00
Alexander Danilov
5aee2da55f Add some new test data for Find Usages class tests QA-724
GitOrigin-RevId: c741604b797dc104969eaaf95891e47261e0ebe8
2023-05-25 11:22:27 +00:00
Dmitrii Gridin
d392227b8c [KCRI] drop redundant read action
Move isDisposed check inside compilationFinished

^KTIJ-25253

GitOrigin-RevId: 20d242f08624de090664d3621225ac274a8a61dc
2023-04-18 08:54:11 +00:00
Nikita Bobko
e359fe6027 Update bundled Kotlin JPS plugin
^KTIJ-25154 Fixed

1.8.20 is released, we need to update Kotlin JPS plugin and cherry-pick
it to 231

GitOrigin-RevId: 1f2a211bfade4bdbd1720ec19069321fa7822c9a
2023-04-13 13:33:12 +00:00
Dmitrii Gridin
cb407666fb [CRI] avoid hierarchy search for Object
^KTIJ-24969 Fixed

GitOrigin-RevId: dffdd64361cc6fcc2f0fff8bf93991d449a6cdb1
2023-03-20 19:10:25 +00:00
Dmitrii Gridin
693f7c5570 [KCRI][k2] disable k2 compiler in find usage
^KTIJ-24827

GitOrigin-RevId: 36b9594e4a7b4a69272afcecea8735ef5ee268a8
2023-03-03 09:05:35 +00:00
Dmitrii Gridin
e0bf1f772b [KCRI][k2] mute nested/inner class/object issues
^KTIJ-24827
^KTIJ-24833

GitOrigin-RevId: bda67b8a9ac1a8ba79457895db83c6c8bad366f8
2023-03-03 09:05:33 +00:00
Dmitrii Gridin
c2dcbfc15f [KCRI] update testData for classes and objects
^KTIJ-24827

GitOrigin-RevId: 31976f26fe8789fc7982527fc5c962b989ff6de1
2023-03-03 09:05:31 +00:00
Dmitrii Gridin
62ce30fa75 [KCRI][k2] update testData for constructor
^KTIJ-24827

GitOrigin-RevId: 19517b2629fe6d2dab5fb3f2646854dbd8c6975f
2023-03-03 09:05:28 +00:00
Dmitrii Gridin
ebcab7a6e0 [KCRI][k2] mute implicit companion without name issues
^KTIJ-24827
^KTIJ-24831

GitOrigin-RevId: 6bdcbc2426ce8c42ee198ae9833d078426e943fe
2023-03-03 09:05:26 +00:00
Dmitrii Gridin
0a9a94d938 [KCRI][k2] mute static member issues
^KTIJ-24827
^KTIJ-24830

GitOrigin-RevId: 01d52ee59e1034af4d39217037b761aa4d79724f
2023-03-03 09:05:24 +00:00
Dmitrii Gridin
988d34b7a3 [KCRI][k2] mute compiler issue
^KTIJ-24827
^KT-57044

GitOrigin-RevId: 419c119da46846d591ec70f07d0f476866e80c85
2023-03-03 09:05:22 +00:00
Dmitrii Gridin
dc3bc2c575 [KCRI][k2] mute compiler issue
^KTIJ-24827
^KT-57045

GitOrigin-RevId: af0dc9b0bea4413bdd2389dd655649e4fc8be2e6
2023-03-03 09:05:19 +00:00
Dmitrii Gridin
ea69c431f0 [KCRI][k2] mute type alias issues
^KTIJ-24827
^KTIJ-24828

GitOrigin-RevId: 63c486b0eadd46370ecb934f05b5386464e17f69
2023-03-03 09:05:17 +00:00
Dmitrii Gridin
a5b8f3d2e3 [KCRI][k2] add tests
^KTIJ-24819

GitOrigin-RevId: 5d462108c03ce0158aee10ba5ebcd8ae1b207636
2023-03-03 09:05:15 +00:00
Dmitrii Gridin
484c9e53c1 [KCRI] enable in K2
^KTIJ-24819 Fixed

GitOrigin-RevId: 7b1cb66b60d0056583716816dd0628b4a5d7ea25
2023-03-03 09:05:12 +00:00
Nikolay Chashnikov
676e40f7e4 [jps build] cleanup: mark Utils.getDataStorageRoot as @NotNull and simplify code
The method may return null only if 'projectPath' argument is null, but it appears that it never happens.

GitOrigin-RevId: d9ca4c46f71d5f467ecb4791eac8fd902450170c
2023-02-08 12:04:13 +00:00
Pavel Porvatov
4081c99b44 Port KotlinCompilerReferenceIndexVerifierAction to Kotlin UI DSL 2
GitOrigin-RevId: eaeca9bcb5bf531c6f050f2a23f1590905dad382
2023-01-16 15:46:48 +00:00
Anna Kozlova
0180d9e0cd [kotlin] k2 find usages: invoke type parameters extensions
allow null psiClasses for operators search, which means searching as plain text

'invokeInObjectAsFunction' test data doesn't work for fir yet, due to `FirSimpleNameReference#resolve() == null`

part of KTIJ-21662
review IJ-CR-100444

GitOrigin-RevId: db14bdaf5467bb2db85cce1864d92fc7dc039be0
2023-01-14 19:34:34 +00:00
Anna Kozlova
2506aedf91 [kotlin] k2 find usages: don't leak types in from read action
+ test for local data class (failed cause local class is presented by full qName)

GitOrigin-RevId: 690fbce217b8b3f8c3a2d02ab436613c441657da
2023-01-10 00:42:50 +00:00
Vladimir Dolzhenko
b83e134b48 [kotlin] Update copyright
GitOrigin-RevId: fdf5f33bc5b58b3dbcad58b8e5516871e014121f
2023-01-02 12:48:27 +00:00
Anna Kozlova
da17911d87 [kotlin] workaround for implicit invocation of companion objects: support invoke extensions
(part of KTIJ-21662)

GitOrigin-RevId: e1d6fc1a0ebbce797436cdc11d0e5535baee2fe1
2022-12-20 17:55:27 +00:00