Commit Graph

489 Commits

Author SHA1 Message Date
Vladimir Krivosheev
8707c636a2 fix Tag visibility
GitOrigin-RevId: a5241ec67b1377523443d84e60b3225e82d7b929
2025-02-18 12:35:48 +00:00
Vladimir Krivosheev
0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
25233df1b1 cleanup - isEmpty
GitOrigin-RevId: 100d69abb6a423556574a72e82508fdb8f5d7fa3
2024-12-27 14:41:14 +00:00
Vladimir Krivosheev
2c56b99fd5 do not export intellij.platform.testFramework
GitOrigin-RevId: 4c2c86b3ba376268aba04487e363685656fea2e3
2024-12-26 22:08:08 +00:00
Vladimir Krivosheev
051ed2529b cleanup
GitOrigin-RevId: 6fa4f979e0a6641885e2225eb985b13713373ac5
2024-12-26 14:56:01 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Aleksandr.Govenko
86e037e396 KTIJ-30925 [ssr] Refactor typed variable handling in ReplacementBuilder
Moved typed variable utility methods from MatchUtil and Replacer to StructuralSearchProfile

GitOrigin-RevId: 0a80d063ea663bb708de118a6db0b6268b3b6147
2024-08-13 16:24:08 +00:00
Bas Leijdekkers
98fbecdc6c Small simplification for Java SSR
GitOrigin-RevId: d21660329312bed45f24253d71ddc0bedd4a8e24
2024-08-12 13:37:26 +00:00
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