Commit Graph

719 Commits

Author SHA1 Message Date
Mikhail Pyltsin
df6d77f795 [uast-inspection] IDEA-350483 IJ-CR-130570 New inspection LoggingGuardedByConditionInspection also deletes comments
- move commenter into UastCodeGenerationPlugin

GitOrigin-RevId: 8c0079fb1e3c0b7f4606bca547e40721c118b9c2
2024-04-09 13:05:17 +00:00
Mikhail Pyltsin
719bb1619c [uast-inspection] IJ-CR-130570 IDEA-350483 New inspection LoggingGuardedByConditionInspection also deletes comments
- uast comment tracker

GitOrigin-RevId: d484939094c50bd5b7304d9703052f9841679c46
2024-04-03 20:02:45 +00:00
Bart van Helvert
f3dca2799c [java] Re-enable disabled UAST test
This test was accidentally disabled

GitOrigin-RevId: 6c959ed610b93824965cc2f5f05b89a3be4e6d06
2024-04-03 17:22:34 +00:00
Alexey Kudravtsev
794799dce9 make NamedObjectProviderBinding thread-safe to fix EA-1138581 (plugin) - NSEE: SmartList.getFromArray
GitOrigin-RevId: 482107e14834d2df8e50ec7f893cffd6c964a996
2024-03-21 20:05:32 +00:00
Tagir Valeev
5428775b85 [indexing] Remove progress indicator from PsiSearchHelper.isCheapEnoughToSearch and at use sites
Was unused

GitOrigin-RevId: 98f5e2b1f48f54fc15d54cbbf73ff549f96fca6a
2024-03-20 14:28:13 +00:00
Mikhail Pyltsin
5f382bc662 [java-inspection] IDEA-337700 Improvements for logging inspections
- new LogStatementNotGuardedByLogConditionInspection

GitOrigin-RevId: e5cb767b24b33cb450597551dbbf4ece153a81e2
2024-03-07 12:05:26 +00:00
Jinseong Jeon
07fab541fc KT UAST: always preserve receiver expression of class literal
...similar to dbaaeef (for callable reference).

This time, only receiver expression is discarded if type is resolvable.
Similarly, Java UAST counterpart has both information always.

GitOrigin-RevId: fd1aa3cccaa0d5063e1272ff6df32f7b3815c8ce
2024-02-28 13:41:00 +00:00
Jinseong Jeon
dbaaeef8dc KT UAST: always preserve receiver expression of callable reference
It seems like qualifier type and qualifier expression did not co-exist,
but that only made users (like Lint detector) deal with inconsistent
examination of both information that are sometimes available or not.

Java UAST counterpart has both information always, so no good reason to
keep such contract in Kotlin UAST.

GitOrigin-RevId: 69f96325910cf8eea056449c984151925dffcf10
2024-02-21 13:54:08 +00:00
Bart van Helvert
6b626d904d [uast] Add pattern variable UAST conversion
#IDEA-310333

GitOrigin-RevId: 925c54c4bc2525dde46d3fc58291421600e0b572
2024-02-13 12:58:38 +00:00
Bart van Helvert
6d55bf058d [uast-java] Add support for pattern matching
#IDEA-310333 Fixed

GitOrigin-RevId: 31fa57a0fdc5efcdfc419cd56ccc783f682234ce
2024-02-13 12:58:38 +00:00
Bart van Helvert
992ce073b4 [uast] Add UAST API for pattern matching
#IDEA-310333

GitOrigin-RevId: a469ebb49dc0c49a96a492192524709ef4a400f7
2024-02-13 12:58:38 +00:00
Nikita Kudrin
3dce2dce2f [unit perf tests] AT-644 Renaming
GitOrigin-RevId: 464b77181de9f1e0cc6de2623201635c405ee4c3
2024-02-08 11:21:41 +00:00
Nikita Kudrin
b143fe1540 [unit perf tests] AT-644 Removed expected time from the tests
GitOrigin-RevId: a53f40c1721a46c7833018346dc622dec1f1b80a
2024-02-07 16:11:29 +00:00
Yuriy Artamonov
26d01f5692 [spring] IDEA-343557 Spring line markers while indexing
GitOrigin-RevId: 3c6fe78c34280f7ed2b0e3c5dd8b8f8fa2f98c94
2024-01-29 23:45:56 +00:00
Bart van Helvert
559ba08c10 [uast-java] Don't show type annotations on methods
#IDEA-336319 Fixed

GitOrigin-RevId: ce7aa689c95e379f0013899822550c78c51f2309
2024-01-25 23:58:27 +00:00
Yuriy Artamonov
3d76957aa9 [uast] Drop crossinline from UastLazyPart#getOrBuild parameter as unnecessary
GitOrigin-RevId: f0dbee3fdbbd7889bad5b0bdf4eac271c77c3d60
2024-01-25 20:10:53 +00:00
Andrey Cherkasov
1a62d88764 Cleanup: use light services
^IDEA-254577

GitOrigin-RevId: 01afb3f2166f8713cd4599f37d43ecf7f4d2944c
2024-01-23 06:03:51 +00:00
Jinseong Jeon
2f79858998 Do not evaluate UParameter for implicit lambda parameter
...which can be restored from fake UAST PSI

GitOrigin-RevId: 57a02bf3b5b36daa7a4e91caf9c81c300ca7aba4
2024-01-21 23:17:32 +00:00
Yuriy Artamonov
b031a3221c [microservices] IDEA-340303 Optimize UAST patterns with method names
GitOrigin-RevId: 99726a7c42e9e604bdf56815763135d9d05f5666
2023-12-20 22:36:39 +00:00
Yuriy Artamonov
a0bd8b3dca [microservices] IDEA-340303 optimize UAST patterns with method names
GitOrigin-RevId: c5994961627ba5026a29920e1f70450eca43a90c
2023-12-19 20:24:25 +00:00
Bart van Helvert
152ffaea42 [uast] Improve get arg/param for doc
GitOrigin-RevId: 82afd07f5516ea7293bf4de94496ac26d9fd9354
2023-12-15 19:56:55 +00:00
Bart van Helvert
a1720d6cb9 [uast] Add comment visitor
GitOrigin-RevId: 6e2f6992f504e0c92214c771afbc14d38046a216
2023-12-14 14:04:06 +00:00
Bart van Helvert
16728e87b0 [uast] Remove all usages of wrapULiteral
This method is useless after enabling `kotlin.uast.force.uinjectionhost`. #KTIJ-27448

GitOrigin-RevId: 1f2f31224cea166b4c369c78a20883a9884ee0a5
2023-12-08 10:59:35 +00:00
Bart van Helvert
8f9178b82f [java-i18] Migrate from ULiteralExpression to UInjectionHost
Required for #KTIJ-27448.

GitOrigin-RevId: 6c2b15f02fd15127a7c75f5386ea59048d161846
2023-12-08 10:59:35 +00:00
Bart van Helvert
2dca290584 [uast] Migrate away from sourceInjectionHost in favor of UInjectionHost
#KTIJ-27448

GitOrigin-RevId: dca98b47e4799ca623ebc1b63adcd201acd7ecc8
2023-12-08 10:59:35 +00:00
Bart van Helvert
d274c9c258 [uast] Relax return type on createStringLiteralExpression
Changes the return type of `createStringLiteralExpression` to account for Kotlin having polyadic string literal implementation by default. #KTIJ-27448

GitOrigin-RevId: 0797f4ea1f935ca29725f3834c535c3e60f9db36
2023-12-08 10:59:35 +00:00
Bart van Helvert
159cf612e9 [uast] Support try-with-resource expressions in Java
#IDEA-337821 Fixed

GitOrigin-RevId: c17644363e2d00219f5ab08a547ad5532f24974b
2023-11-15 18:17:22 +00:00
Aleksandr Izmailov
27dc3f1e42 [uast] EA-794591: do not resolve PsiClassType in withReceiver if it is invalid
GitOrigin-RevId: 2ae29f5e5dda84f39d0b3a209dbf604fc2c8d935
2023-11-07 23:29:52 +00:00
Nikita Kudrin
5f15fa3f42 [test framework] AT-107 Adding dependency on intellij.tools.ide.metrics.benchmark to publish metrics
GitOrigin-RevId: aaeb67a13dab0038e8f8e8ec6ed7d683d4dfe5d3
2023-10-16 23:23:34 +00:00
Yuriy Artamonov
185d56c74c [kotlin] IDEA-332091 UAST: get rid of volatile in elements and optimize memory allocations
GitOrigin-RevId: 06360d002086da9dd61851bd8efcf9b07d02ad94
2023-10-08 23:11:39 +00:00
Yuriy Artamonov
0624f30c19 [uast] IDEA-332091 Less memory for UComment instances
GitOrigin-RevId: d11f11a61b5a86aebf6d71aecfb75d3e02f41153
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
5d7e54f360 [uast] IDEA-332091 Use less memory for JavaUVariable
GitOrigin-RevId: 9470e0c5a7437ad3eabc8cadd9a5bdfa938d1792
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
69178f157e [uast] IDEA-332091 Use less memory for visitors of JavaUastLanguagePlugin
GitOrigin-RevId: d9d20882cdd3903c2d0ab14b728d216aa97061d3
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
c3ecb67628 [uast] IDEA-332091 Use less memory for Java UAST elements
GitOrigin-RevId: c5230a90c90b0dcf70c4bf95261d37f877c0f0ad
2023-10-03 18:08:15 +00:00
Yuriy Artamonov
809aeaadb5 [uast] IDEA-332091 UAST: get rid of volatile parts in elements
GitOrigin-RevId: 0ad25e60bdc20cc25518773490a847d06d80cb18
2023-10-03 18:08:15 +00:00
Daniil Ovchinnikov
27e155fc21 IJPL-167 bump language and API version 1.8 -> 1.9
GitOrigin-RevId: 5204df1784bbbba550476415e4ceff7368ab5fd4
2023-09-19 19:52:47 +00:00
Yuriy Artamonov
4819d6f200 [uast] IDEA-330043 Use isMethodNameOneOf for UCallExpressionPattern.withMethodName
GitOrigin-RevId: da7e346ca353fa60cc6070060eaa40f4318c1fce
2023-09-13 14:11:21 +00:00
Marat Dinmukhametov
bc016278e9 [uast] Revert "IDEA-324930, KTIJ-26799 Added nullability fact for declaration"
This reverts commit 378b1ad10f13bc7d4e843779ebd1238189389493.

GitOrigin-RevId: ab4c96d3e86ca3a8ed777e1e7e43c1db9e7570f1
2023-09-05 10:27:38 +00:00
Yuriy Artamonov
45d4877e6a [jpa] Merge JpaQueryReferenceContributor to JpaOrmReferenceContributor
GitOrigin-RevId: b995cf8803742ad9dc79424625aa930a70c54143
2023-09-03 17:27:01 +00:00
Vladimir Krivosheev
51ab4a5479 cleanup (appendLine)
GitOrigin-RevId: 536d22bb04c82ad43b8904139bb1e04abeaaa7a8
2023-08-29 19:32:41 +00:00
Marat Dinmukhametov
389399b833 [uast] IDEA-324930, KTIJ-26799 Added nullability fact for declaration
GitOrigin-RevId: 378b1ad10f13bc7d4e843779ebd1238189389493
2023-08-29 12:37:10 +00:00
Alexey Belkov
fed4f3029b Apply Kotlin inspection "Redundant enum constructor invocation"
GitOrigin-RevId: 764cce47d4c16792ef3faedec1bdc7124f0ec8af
2023-08-23 17:45:38 +00:00
Yuriy Artamonov
a56c52151d [uast] IDEA-330019 UAST: withUastParentOrSelf patterns are visible in highlighting
GitOrigin-RevId: 24370a4be115862737d79f15ae87cc30a79aacf9
2023-08-17 19:46:31 +00:00
Yuriy Artamonov
6c893c44ed [uast] IDEA-330019 UAST: withUastParentOrSelf patterns are visible in highlighting
GitOrigin-RevId: 83a276ddbcd4d0f287a0015373852846394cbec2
2023-08-17 19:46:31 +00:00
Yuriy Artamonov
10167ae72d [performance] IDEA-326893 Do not trigger parsing of injected fragments from InjectedReferencesContributor
GitOrigin-RevId: 71dab268fabd42786d1330898c23fd9fe06e70ea
2023-08-16 20:54:52 +00:00
Bart van Helvert
4991aae079 [uast] More idiomatic cast
GitOrigin-RevId: b3eda2d85fce455ccb19cf099fb5e99ceabc304b
2023-08-04 10:42:38 +00:00
Bart van Helvert
259a3a7f90 [uast] Introduce and migrate to resolveToUElementOfType
GitOrigin-RevId: 2561711789a076cbe2761c010d7374f299ccb6ff
2023-08-03 15:01:35 +00:00
Bas Leijdekkers
a1dfed2b24 UAST: introduce visitNamedExpression() method in UastVisitor (IDEA-209279)
GitOrigin-RevId: 23d4a7f1570a40eaf9db528ecfeb4400a6437df8
2023-06-29 15:20:40 +00:00
Yuriy Artamonov
ee0fbe3fae [java] EA-868961 NPE in JavaUastLanguagePlugin.isOneOfNames
GitOrigin-RevId: e9f80605d1a8dda81f3abb4a8a98daab77af7d06
2023-06-20 13:46:44 +00:00
Alexey Belkov
c6138e8d67 Apply Kotlin inspection "Redundant semicolon"
GitOrigin-RevId: e97056ead03cff412fc10cee0d5fa2d4cc7dde30
2023-06-13 13:58:20 +00:00