Commit Graph

2709 Commits

Author SHA1 Message Date
Jinseong Jeon 0db510ad8b FIR IDE/UAST: introduce UAST-specific version of analyse 2021-06-13 00:10:46 +03:00
Jinseong Jeon 1517fd0ca0 FIR/UAST: commonoize array access expression 2021-06-13 00:10:45 +03:00
Jinseong Jeon ef8eddf1da FIR UAST: add array access tests 2021-06-13 00:10:44 +03:00
Jinseong Jeon 9a539aac7d FIR/UAST: commonize binary expression with type 2021-06-13 00:10:43 +03:00
Jinseong Jeon b2e644b485 FIR/UAST: commonize type check expression 2021-06-13 00:10:41 +03:00
Jinseong Jeon 6e0f755b39 UAST: migrate kinds constants to the base module 2021-06-13 00:10:39 +03:00
Jinseong Jeon 47ede5bdc8 FIR IDE/UAST: get PsiType from KtTypeReference 2021-06-13 00:10:38 +03:00
Jinseong Jeon a3710bed6a FIR/UAST: commonize type reference expression 2021-06-13 00:10:37 +03:00
Jinseong Jeon 517fd24f14 UAST: unify implementation/creation of type reference expression 2021-06-13 00:10:36 +03:00
Jinseong Jeon fa36098214 FIR IDE/UAST: get PsiType from KtExpression 2021-06-13 00:10:34 +03:00
Jinseong Jeon 8977e7766b FIR/UAST: commonize throw expression 2021-06-12 16:00:43 +02:00
Jinseong Jeon c21fce6cbc FIR/UAST: commonize parenthesized expression 2021-06-12 16:00:42 +02:00
Jinseong Jeon c089b8ed04 FIR/UAST: commonize labeled expression 2021-06-12 16:00:41 +02:00
Jinseong Jeon 6e1b04e4c9 FIR/UAST: commonize if expression 2021-06-12 16:00:40 +02:00
Jinseong Jeon 50f750187b FIR/UAST: commonize loop/break/continue expressions 2021-06-12 16:00:39 +02:00
Jinseong Jeon 1146f60db3 FIR/UAST: commonize block and return expressions 2021-06-12 16:00:37 +02:00
Jinseong Jeon 16b3d2110e FIR/UAST: commonize literal expressions 2021-06-12 16:00:36 +02:00
Jinseong Jeon 6b5bddeed7 FIR/UAST: commonize KotlinEvaluatableUElement 2021-06-12 16:00:35 +02:00
Jinseong Jeon ce10410aba FIR UAST: refactor FE1 UAST tests 2021-06-12 16:00:34 +02:00
Jinseong Jeon e1a99ede09 FIR UAST: introduce values tests 2021-06-12 16:00:32 +02:00
Jinseong Jeon cf2f36fa49 UAST: utilize values test base 2021-06-12 16:00:31 +02:00
Jinseong Jeon d17dd4a1e6 FIR/UAST: commonize KotlinUElementWithType 2021-06-12 16:00:30 +02:00
Jinseong Jeon 1025851edd FIR UAST: introduce types tests 2021-06-12 16:00:29 +02:00
Jinseong Jeon 6afb68cec0 UAST: utilize types test base 2021-06-12 16:00:28 +02:00
Jinseong Jeon 3769fd8e07 FIR UAST: fix import resolve test
The `resolve` failure (or `null` return) of import directive for
`java.lang.Thread.sleep` is legitimate, since there are two static methods
in `java.lang.Thread`:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Thread.html
hence not able to resolve to a single method.

Unless we change `UImportStatement` to be a subtype of `UMultiResolvable`,
instead of `UResolvable`, we can't properly test `resolve` API for that.
2021-06-11 14:51:07 +03:00
Nikolay Krasko 48a4d7d418 Build: drop maven publication for Kotlin plugin artifacts 2021-06-09 17:43:54 +03:00
Nikolay Krasko 32f811e0ec Build: Cleanup old platforms from the build 2021-06-09 17:43:53 +03:00
Leonid Startsev dd21326425 Create a copy of incorrectly deserialized parent's writeSelf function
To avoid problems during code generation when INVOKEDYNAMIC
is used instead of static

#KT-47161 Fixed
2021-06-08 11:53:47 +00:00
Mikhail Glukhikh 0a670bf055 Report EXPERIMENTAL_API diagnostics on various implicit usages
#KT-32443 Fixed
#KT-22852 Fixed
2021-06-08 11:37:28 +03:00
Ilya Muradyan 8be5f009f1 [REPL] Fix completion for function arguments 2021-06-06 09:00:52 +03:00
Nikolay Krasko 478b1f65fb Fix builds: ideaIC might be absent in the build 2021-06-04 15:15:13 +03:00
Ilya Kirillov be99f24278 FIR IDE: fix uast import test after fixing import references 2021-06-03 19:39:15 +03:00
Jinseong Jeon 10f19c8f4a FIR UAST: invalidate caches between tests 2021-06-03 17:56:16 +02:00
Jinseong Jeon 37d8e6ddc3 FIR UAST: relocate render/log test data 2021-06-03 17:56:16 +02:00
Jinseong Jeon 80b94a43b0 FIR/UAST: split KotlinUIdentifier into a separate file 2021-06-03 17:56:16 +02:00
Jinseong Jeon 68766024b3 FIR/UAST: commonize Identifier implementations 2021-06-03 17:56:16 +02:00
Jinseong Jeon 6af930f6df FIR UAST: convert LeafPsiElement to UIdentifier 2021-06-03 17:56:16 +02:00
Jinseong Jeon 83256ef3bd FIR UAST: introduce identifiers and refNames tests 2021-06-03 17:56:16 +02:00
Jinseong Jeon c37123603c UAST: utilize identifier test base 2021-06-03 17:56:16 +02:00
Sergey Shanshin 71c9e62d64 Added support serialization of local classes in IR backend
Resolves Kotlin/kotlinx.serialization#1427
2021-06-02 16:43:31 +00:00
Leonid Startsev 1f837134bb Support for @EncodeDefault annotation 2021-06-02 13:43:39 +00:00
Leonid Startsev b43e5a5e7d fixup! Fix tests and review notes 2021-06-01 16:41:56 +00:00
Leonid Startsev 6a5cf00d7a Optimize serializer instantiation: use Companion.serializer() when possible
Add test for sealed hierarchy
2021-06-01 16:41:55 +00:00
Leonid Startsev b61277df97 Support annotations in constructor signatures of special serializers 2021-06-01 16:41:55 +00:00
Leonid Startsev 229085f3d1 Support default parameter values in @SerialInfo annotations
#KT-46739 Fixed
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1461
2021-06-01 16:41:54 +00:00
Dmitriy Novozhilov 6121d156a1 [Build] Add workarounds for JPS build
Compilation of `:kotlin-gradle-statistics:test` is broken in gradle
  too, so this module is removed from JPS to allow build project with
  "Rebuild project" action

Dependency on `:kotlin-uast-base` changed to `implementation` because
  project import assumes `shadow` dependency as _Provided_ instead of
  _Compile_ in module structure which leads to problem that this
  dependency is missing during build (this is bug inside JPS itself)
2021-05-31 14:03:37 +03:00
Andrey Zinovyev 78e20c1098 [KAPT] Keep original expressions in annotations vararg
#KT-29929 Fixed
2021-05-31 08:08:37 +00:00
Victor Petukhov bd7fb56a24 Fix builder inference tests 2021-05-28 15:36:23 +03:00
Victor Petukhov 758eb8f851 Fix builder inference tests 2021-05-28 15:36:22 +03:00
Sergey Shanshin 961ee92c15 Fix bytecode for serializable enums in generated tests 2021-05-27 15:35:12 +03:00