Commit Graph

87184 Commits

Author SHA1 Message Date
Ilya Kirillov d348c48e4f Analysis API: get rid of weak refs scheme for working with FIR internals for KtSymbol and KtType 2021-09-28 15:55:17 +03:00
Ilya Kirillov 2de4a6f924 Analysis API: fix reference resolving for implicit invoke calls 2021-09-28 15:55:16 +03:00
Ilya Kirillov 7045e3ee45 Unmute passing FIR LC test 2021-09-28 14:19:15 +02:00
sebastian.sellmair 4eaabe54ee [Gradle] Finalize naming of 'runProjectConfigurationHealthCheckWhenEvaluated' API
^KT-48823
2021-09-28 12:11:10 +00:00
sebastian.sellmair 5430b19262 [Gradle] Add 'gradleKotlinDsl' dependency to 'functionalTestImplementation'
^KT-48823
2021-09-28 12:11:10 +00:00
sebastian.sellmair 29fb74d27d [Gradle] Don't run post-evaluation-checks on projects that failed to configure
When in 'lenient' or 'classpath' mode, Gradle will catch exceptions
during project evaluation and collect them into the
'ClassPathModeExceptionCollector'.

Running checks on the project after evaluation should only happen
if the project is properly configured (aka no such exceptions collected)
to prevent false positive error reports (that will then fail
the Gradle process and swallow the real cause)

^KT-48823 Verification Pending
2021-09-28 12:11:09 +00:00
Yahor Berdnikau e4827efb4a Remove WorkersIT test.
Now all compilations are using workers and issues should be covered
by other tests.

^KT-46406 Fixed
2021-09-28 11:41:09 +00:00
Yahor Berdnikau 3dc69495f9 Restore tasks outputs to pre-execution state in worker.
Workers usually execute later than task action and does not raise
exception to the task. Such behaviour skips task outputs restoration to
the pre-execution state.

Kotlin compiler on incremental compilation error leaves 'dirty*' files
in the build output, forcing Gradle to run non-incrementally on the
next build. Fixed it by moving task outputs reset logic into worker as
well.

^KT-46406 In Progress
2021-09-28 11:41:09 +00:00
Yahor Berdnikau 904f9c72f2 Remove 'kotlin.parallel.tasks.in.project' property.
^KT-46406 In Progress
2021-09-28 11:41:08 +00:00
Yahor Berdnikau 24454ba726 Split toolchain and jvm target validation tests.
Should slightly improve test suite execution time.
2021-09-28 13:38:06 +02:00
Sergej Jaskiewicz b3c681ee42 [JS IR] Tests for TS declarations of sealed classes
Also make sure we generate proper declarations for abstract and data
classes.

#KT-39364 Fixed
#KT-47376 Fixed
2021-09-28 13:54:48 +03:00
Vyacheslav Karpukhin 5530080a7d KMA-271 Android dependencies are not imported with AGP 7 2021-09-28 10:51:28 +00:00
Vyacheslav Gerasimov 29787218e1 Build: Add proper kotlin-compiler-runner-unshaded for ide artifacts
Fixes tests in kt-212-master branch of kotlin plugin in
intellij-community repository
2021-09-28 13:42:31 +03:00
Dmitriy Novozhilov 825ecc3a6f [Build] Remove JDK 15 and 16 from JdkMajorVersion
They are replaced with JDK 17 LTS release
2021-09-28 13:01:48 +03:00
Dmitriy Novozhilov de7fb9606a Migrate all JDK 9 related tests to JDK 11 2021-09-28 13:01:47 +03:00
Dmitriy Novozhilov ce3562f0e8 Migrate all JDK 15 related tests to JDK 17 2021-09-28 13:01:45 +03:00
nataliya.valtman 452dfd6edd Use default performance manager for K2JVMCompiler 2021-09-28 09:20:50 +00:00
Ilya Matveev 37e9d8c8f5 [K/N][GC] Fix enabling the gc-aggressive mode 2021-09-28 08:18:38 +00:00
Mikhail Glukhikh 363680e4c9 Delay abstract class member forbiddance (see KT-45508) to 1.7 2021-09-28 11:17:42 +03:00
Dmitriy Novozhilov 4f7103b2a1 Add ApiVersion for 1.7 2021-09-28 10:16:51 +03:00
Elena Lepilkina cb7fab612c [K/N][perf] Fix running benchmarks with custom native build type 2021-09-28 07:06:05 +00:00
Ilya Kirillov 65b6e7076b Fix cooperative development configuration
Deprecated testCompile was not available, replace with testApi
2021-09-27 21:20:36 +03:00
Roman Artemev 4073f177b4 [JS IR] Fix switch transformer in case of if as an expr
- Fix KT-43374
2021-09-27 19:01:43 +03:00
Roman Artemev 9123d426c3 [JS] Add test for KT-43374 2021-09-27 19:01:42 +03:00
Ilya Gorbunov af5ec9d289 Fix a typo in Typography object constants KT-46243 2021-09-27 14:55:19 +00:00
Ivan Kylchik cc934d9574 Support arguments' evaluation of primitive arrays in fir2ir transformer 2021-09-27 17:45:01 +03:00
Svyatoslav Kuzmich dd45714137 [Wasm] Add property reference stdlib part 2021-09-27 17:08:55 +03:00
Svyatoslav Kuzmich 5c05ff48ff [Wasm] Copy property reference lowering from K/N 2021-09-27 17:07:39 +03:00
Svyatoslav Kuzmich 33314b25c0 [Wasm] Add function interface replacer lowering
Replace function interface super types with runtime interfaces.
Needed for interface calls machinery.
2021-09-27 17:06:41 +03:00
Yahor Berdnikau ac164c2bff Fix 'verbose' argument was not excluded from task inputs.
^KT-48134 Fixed
2021-09-27 13:48:12 +00:00
Victor Petukhov ee728b6902 Use the new type inference for top-level callable reference resolution
^KT-47797 Fixed
^KT-47987 Fixed
^KT-45034 Fixed
^KT-48446 Fixed
^KT-13934 Fixed
2021-09-27 16:12:27 +03:00
Victor Petukhov ca13aea26a Creating resolved and resolution atoms for callable references 2021-09-27 16:12:25 +03:00
Victor Petukhov 5ec97093fa Propagate tracing strategy for creating callable reference arguments 2021-09-27 16:12:24 +03:00
Victor Petukhov 764361bc42 Format and remove unused imports and variables 2021-09-27 16:12:22 +03:00
Victor Petukhov 6a6695a173 Store SimpleTypeArgumentImpl type projection instead of type reference for better handling star projected type arguments 2021-09-27 16:12:21 +03:00
Victor Petukhov 8b85b4630b Write LHS resolution result into a call position 2021-09-27 16:12:20 +03:00
Victor Petukhov 2f4d02d011 Move util functions from KotlinToResolvedCallTransformer to resolvedCallUtil.kt 2021-09-27 16:12:18 +03:00
Victor Petukhov 3696bebb48 Introduce NewCallableReferenceResolvedCall and commonize other logic under NewAbstractResolvedCall 2021-09-27 16:12:17 +03:00
Victor Petukhov 65a8c9d89a Extract NewAbstractResolvedCall into separate file 2021-09-27 16:12:15 +03:00
Victor Petukhov fb3f3642f7 Extract NewVariableAsFunctionResolvedCallImpl into separate file 2021-09-27 16:12:14 +03:00
Victor Petukhov 1cc2d7c920 Extract NewResolvedCallImpl into separate file 2021-09-27 16:12:12 +03:00
Victor Petukhov 065d492066 Extract TrackingBindingTrace into separate file 2021-09-27 16:12:11 +03:00
Victor Petukhov f1803b49fe Extract KotlinCallKind into separate file 2021-09-27 16:12:09 +03:00
Victor Petukhov 4559558001 Extract SimpleCandidateFactory into separate file 2021-09-27 16:12:08 +03:00
Victor Petukhov 7b9ef0be12 Introduce ResolutionCandidate by commonization KotlinResolutionCandidate and CallableReferenceCandidate
Also introduced SimpleErrorResolutionCandidate
2021-09-27 16:12:06 +03:00
Victor Petukhov 08060aa036 Extract CallableReferencesCandidateFactory into separate file 2021-09-27 16:12:05 +03:00
Victor Petukhov 4fcb16b4c4 Extract CallableReferenceCandidate into separate file 2021-09-27 16:12:04 +03:00
Victor Petukhov dedac63a8c Extract KotlinResolutionCandidate into separate file 2021-09-27 16:12:03 +03:00
Victor Petukhov a264cbfe7d Move CallUtil.kt under the resolve.util package 2021-09-27 16:12:01 +03:00
Victor Petukhov 1635bcad10 Move CallResolverUtil.kt under the resolve.util package 2021-09-27 16:12:00 +03:00