Commit Graph

480 Commits

Author SHA1 Message Date
Tagir Valeev
440654c48f Pattern variable can be used fixes; other warning fixes
GitOrigin-RevId: 49f37e7f5d748be50ee66fdf66a5c9b98b1b7432
2024-06-18 19:55:23 +00:00
Bas Leijdekkers
66ad661ec7 SSR: better matching for comments on Java methods (IJPL-149678)
GitOrigin-RevId: e66768fcb9adbf0fd7ca0be950d4da41373a918d
2024-06-10 23:42:46 +00:00
Bas Leijdekkers
816d61b8bf SSR: trim matched Java comment text for better replacement (IJPL-149678)
GitOrigin-RevId: 666966f921849703e13309480b35287411c4d008
2024-06-10 23:42:46 +00:00
Bas Leijdekkers
7d482a46ce SSR: fix copying unmatched elements when replacing Java element with new name (part of IJPL-149678)
GitOrigin-RevId: 72e77d0a9238f67fbf5229730b3d89b035bac874
2024-06-10 23:42:46 +00:00
Vladimir Krivosheev
a936474ee7 IJPL-148249 intellij.java.structuralSearch as a v2 module
GitOrigin-RevId: d540bab6fb28d6b8bee8df5697c3667211d20d50
2024-04-15 19:06:34 +00:00
Tagir Valeev
d0cf7b359a [java] IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns
GitOrigin-RevId: 8d646035979e3ec0a7de3c6f58a4e6ec9967bdbd
2024-02-12 19:12:36 +00:00
Bas Leijdekkers
9ae3ed1388 Java: fix weird code in SSR.
GitOrigin-RevId: 357c19bf630b9f1c8c4dc5d0a615793ce334f075
2024-02-11 16:31:17 +00:00
Andrey Cherkasov
019a6852f4 [java] Make extension classes final
GitOrigin-RevId: 1aae04982598568a111e8c78b9a71c9d2b4aa150
2023-12-13 20:02:09 +00:00
Bas Leijdekkers
86c22aeb2f SSR: relax replacement template check
GitOrigin-RevId: 419923fbe5c761e856e208e8e8610ff22199136d
2023-09-22 18:20:35 +00:00
Bas Leijdekkers
af2a6e9ac5 SSR: adjust boxing predefined templates for accurate results when not matching case (IDEA-289719)
GitOrigin-RevId: 3bacd68d85b86757751decd948113244d274e532
2023-05-10 14:19:27 +00:00
Bas Leijdekkers
b73f850953 SSR: fix same variable multi-matching (IDEA-319542, KTIJ-279)
GitOrigin-RevId: ca34b89c2f7371cfeb1628f97bc8c9c0f95f31e5
2023-05-04 10:20:31 +00:00
Bas Leijdekkers
dff38351e3 SSR: copy unmatched method call qualifiers (IDEA-319489)
GitOrigin-RevId: daa7a4f3d3b61336fc680f1243f260f165b0fb84
2023-05-04 10:20:26 +00:00
Bas Leijdekkers
d54705b1f1 SSR: don't loose comma when replacing array elements (IDEA-319000)
GitOrigin-RevId: 47e3fd4fdadaab66075c37732891af09e3167974
2023-04-27 10:21:51 +00:00
Bas Leijdekkers
849a907d38 SSR: replace multiple Java type parameters correctly (IDEA-315080)
GitOrigin-RevId: bc119f5b3e9a61c4edb5eaf9b4b9f4b179ba205d
2023-03-10 14:19:59 +00:00
Alexey Kudravtsev
9f5b60b0f0 replace some usages of ContainerUtil.set() with immutable sets to get rid of unclear-semantic methods
GitOrigin-RevId: 3ba1266af01d64a228c10df59b18c4ac797c2a9b
2023-02-20 19:11:19 +00:00
Alexey Kudravtsev
6ac37bc1fd replace immutableList() with more standard List.of()
GitOrigin-RevId: fd32b6aece21a1be81fcfaab7b4a71092eaf9939
2023-02-08 19:09:49 +00:00
Tagir Valeev
e9832acb26 [java] Use pattern variables; other minor cleanup
GitOrigin-RevId: e2345bd54d92f6676c6fbc55955e85cbdc5c2793
2023-02-01 17:09:26 +00:00
Nikolay Chashnikov
8ce3039acf cleanup: get rid of usages of deprecated constants from PsiType (IDEA-309438)
GitOrigin-RevId: 3373eb8b47af51b9f6dd71e565f773d69e8a3218
2023-01-26 16:11:57 +00:00
Nikolay Chashnikov
37ce2ff8a6 cleanup: remove redundant '@author' tags from javadoc comments - 10
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: c9da0e5b671b6049f85db4824ea81782e2977d77
2023-01-18 17:01:57 +00:00
Andrew Kozlov
b1c8a846a1 [structuralSearch] package prefix added
GitOrigin-RevId: 4379e126c6581d26d7eb28d28bcad79a94c08379
2022-11-08 19:15:59 +00:00
Andrew Kozlov
da90030b16 [structuralSearch] resources directory
GitOrigin-RevId: 4b542ba0b8299271ac2dc95e9d97e5eb8661f20e
2022-11-08 19:15:54 +00:00
Nikolay Chashnikov
d855d8e8e8 [platform] refactoring: extract interface from PackageDirectoryCache
It's used from several (bundled) plugins, so it makes sense to define clear API for it. This will also make it simpler to reuse it for incremental directory index (IDEA-276394).

GitOrigin-RevId: 5f924bbfeb440f0ecee49e59da5252f34a05ab87
2022-11-04 19:37:07 +00:00
Bas Leijdekkers
7d03a2f6c2 SSR: fix Java lambda body matching (related to IDEA-303994)
GitOrigin-RevId: 87bcf07795aa7c1fa2fbc318dd80e372de207c76
2022-11-03 11:47:59 +00:00
Bas Leijdekkers
19892c969b SSR: don't match a Java method call's method expression (IDEA-303948)
GitOrigin-RevId: f570cadf8725da85276bda5611d5a36e993597b5
2022-10-17 16:07:05 +00:00
Bas Leijdekkers
0f35100f2d SSR: care about indirect super classes when constructing index query
GitOrigin-RevId: 5489aa5976ed8141584946b311381f72b0718b83
2022-09-28 16:44:22 +00:00
Tagir Valeev
5759075a7f Text blocks (small part)
GitOrigin-RevId: d75f3223e371b87748c4073d1cebab24a29fbae7
2022-09-23 20:46:42 +00:00
Tagir Valeev
1fd6c091c9 Enhanced switch used
GitOrigin-RevId: a8490688ad056e615437f107756ea3a3329f4262
2022-09-16 10:19:24 +00:00
Bas Leijdekkers
c7c709a23a SSR: split utility class to make testing easier
GitOrigin-RevId: 4cfbc0832ff5b223fa8b60a238e74dc2e9f3067f
2022-08-24 16:29:32 +00:00
Bas Leijdekkers
eadb618797 SSR: cleanup
GitOrigin-RevId: 33699912bcb8021186e1362d415bc27caa62b290
2022-08-24 09:14:23 +00:00
Bas Leijdekkers
d24bdfaa04 SSR: handle regex starting with [ in string constraints
GitOrigin-RevId: 064972727d13785d31be7c748cc02395ffad79f2
2022-08-24 09:14:19 +00:00
Bart van Helvert
5052e8741c [ssr] Replace findRegExpPredicate by generic predicate finder
GitOrigin-RevId: fbc199da664d66f59aeaf2ecf6f6e3a74baad5ec
2022-08-24 08:08:59 +00:00
Bas Leijdekkers
46bc714501 SSR: simplify node filtering
GitOrigin-RevId: aae961b040d31a0bc5b414267bd0e11656b7af6c
2022-08-22 17:58:03 +00:00
Alexandr Suhinin
4c4866a669 IDEA-298825: return null when instanceOf is pattern
GitOrigin-RevId: 15d75dd2c711fc5e506c89e698bccd8e23ffe2e2
2022-08-19 07:41:21 +00:00
Bas Leijdekkers
b2809d06de SSR: allow [0,1] count modifier on else branch without braces
GitOrigin-RevId: ba28f1afabf46d07e9c566831d8e3fcd3c45ded0
2022-08-18 20:56:48 +00:00
Bas Leijdekkers
25e79ee4de SSR: allow to specify annotated Java types in type modifier (IDEA-298894)
GitOrigin-RevId: 42a5e0f1ce6be0a2c602fa7db22630d918936c4d
2022-08-13 14:36:04 +00:00
Yuriy Artamonov
8aa94eb1e6 IDEA-299444 TemplateContextType should be a bean extension point to not load implementation class eagerly
Migrate plugins to new liveTemplateContext declaration syntax

GitOrigin-RevId: b005b80f8ddc4336fc093fe3ae6808d0b731f44c
2022-08-12 16:37:52 +00:00
Bas Leijdekkers
721c0ae82a SSR: fix matching new expressions (IDEA-299544)
GitOrigin-RevId: 6cb334c32397baafac8caadcfc661a629d96f149
2022-08-08 16:36:06 +00:00
Bas Leijdekkers
ef0d4f8337 SSR: don't lose unmatched method type parameters on replacing (IDEA-298753)
GitOrigin-RevId: 1da8af70993bcebbf5094c24206b8479f62857ec
2022-08-01 17:48:14 +00:00
Bas Leijdekkers
1eb79a33c4 SSR: improved matching for annotation array value (IDEA-292608)
GitOrigin-RevId: 8d843f3e7b08c8e54e0a6c52e252d9179b783b3e
2022-06-16 21:08:19 +00:00
Bas Leijdekkers
c0bc184cca SSR: make Java lambda expression matching more regular
GitOrigin-RevId: c104f715933aa811f923a9cdbb54ff8dcc585467
2022-06-16 21:08:16 +00:00
Bart van Helvert
b9773facca [ssr] IDEA-296087 Properly clear unmatched elements
Unmatched elements were never cleared, which resulted in incorrect user data when doing replacements.

GitOrigin-RevId: 83d976475d4ad334593d1cdcd72fe9e851c4a472
2022-06-15 12:43:03 +00:00
Bas Leijdekkers
233eca6204 SSR: fix predefined templates because count filter is no longer allowed on target elements (IDEA-289341)
GitOrigin-RevId: 2139d8100747adcf87c21c786ead840af82dd9bb
2022-06-13 14:03:13 +00:00
Alexey Kudravtsev
3f2a2eaf34 JavaElementVisitor: notnull
GitOrigin-RevId: e4b356ce28796e2631b0a631b5108e0348b77baf
2022-06-11 23:31:48 +00:00
Bas Leijdekkers
6820654edf SSR: match empty Java string literals correctly (IDEA-294902)
GitOrigin-RevId: 21ec645ab4afeae1c33fbfb9f1736bd3054bae06
2022-05-29 13:35:35 +00:00
Daniil Ovchinnikov
2ba99ea824 deprecate PsiParserFacade$SERVICE
GitOrigin-RevId: 343d3419ec9f64acdbc1ff2bb8d2218b8c14d818
2022-05-18 07:55:01 +00:00
Bas Leijdekkers
9195475467 Fix matching implicit qualifier within hierarchy (IDEA-292240)
GitOrigin-RevId: 9f2368dca49875e57cfde1387cd337c76299f95f
2022-04-14 23:53:15 +00:00
Alexey Kudravtsev
65b11bf5fc cleanup, notnull
GitOrigin-RevId: 18883c05ffe3ea5ff0a64236ccb058e5146b2026
2022-04-08 11:25:44 +00:00
Alexey Kudravtsev
e0dd051b2d fix "IncorrectOperationException: Incorrect type '<lambda expression>' (JDK_11)"
GitOrigin-RevId: 42117843090c42b50d9f01d276b809c74ae872d0
2022-04-08 11:25:42 +00:00
Bas Leijdekkers
f6957b0271 SSR: fix flaky search for Java records (IDEA-291080)
GitOrigin-RevId: 7832c1cf0c7f113a00217ed7809948ec6eabab75
2022-03-29 22:31:09 +00:00
Bas Leijdekkers
72560d6fb3 SSR: remove recursive search option from UI (part of IDEA-210186)
GitOrigin-RevId: 87f4c99bce98b912a5c67b193a4464b9a4f8032e
2021-08-01 09:58:26 +00:00