Commit Graph

96752 Commits

Author SHA1 Message Date
Bogdan Mukvich cffeb58ec3 Update maven dependencies in kotlin-maven-plugin
KTI-1028
2022-12-07 10:28:48 +00:00
Pavel Mikhailovskii 4676072137 KT-51284 Fix SAM conversion for methods with context receivers 2022-12-07 09:01:21 +00:00
Dmitrii Gridin cc9beb466e [SLC] SymbolLightClassForEnumEntry: shouldn't be regular class
^KTIJ-23842 Fixed
2022-12-07 08:41:19 +00:00
Bogdan Mukvich 2405dd2c5c Fix flaky behaviour of testThirdPartyCopyrights
KTI-1050
2022-12-07 08:20:47 +00:00
Pavel Mikhailovskii 2d69fd5a8a KT-52027 Encapsulate and fix calculation of parameter indices 2022-12-06 23:16:11 +00:00
Ilya Kirillov a297240870 [LL FIR] fix a memory leak from LLFirNonUnderContentRootSessionFactory 2022-12-06 23:05:27 +00:00
Pavel Mikhailovskii b4b05b7bf6 KT-8575 Enable references to synthetic Java properties in 1.9 2022-12-06 22:16:01 +00:00
wrongwrong ccac4ac1ab Minor, use isSuspend in KCallableImpl.extractContinuationArgument
https://github.com/JetBrains/kotlin/pull/4840#discussion_r1010982746
2022-12-06 22:35:56 +01:00
Ilya Kirillov 2f2aa5ed6f [LL FIR] invalidate caches on exceptions in more places where we modify some fir elements 2022-12-06 21:20:42 +00:00
Ilya Kirillov 7a89ca495c [LL FIR] do not execute resolve under a non-cancellable session
The sessions are invalidated on the PCE
2022-12-06 21:20:41 +00:00
Ilya Kirillov 3d68eb27d5 [LL FIR] do not use LLFirModuleLazyDeclarationResolver directly
use lazyResolveToPhase instead for consistency
2022-12-06 21:20:41 +00:00
Alexander Udalov 60d96b7d15 Remove some leftover imports of unsafe cast functions 2022-12-06 19:44:56 +00:00
Alexander Udalov 0d8d91f803 Remove unsafe cast function usages from compiler plugins 2022-12-06 19:44:56 +00:00
Alexander Udalov fd9b19ee49 Remove unsafe cast function usages from IR modules 2022-12-06 19:44:55 +00:00
Alexander Udalov 1418423423 Remove unsafe cast function usages from JVM backend modules 2022-12-06 19:44:55 +00:00
Marco Pennekamp 2cd16f055a [AA] KT-55098 Render context receivers in declarations & function types
- `context(...)` is a modifier that must precede annotations and other
  modifiers, so for declarations it is rendered in
  `renderAnnotationsAndModifiers`.
- Ignore `@ContextFunctionTypeParams` in the annotation list of FE10
  types, as the annotation is an implementation detail of context
  receivers in K1 and shouldn't be rendered.

^KT-55098 fixed
2022-12-06 17:43:30 +00:00
Marco Pennekamp e2804693bf [AA] KT-55098 Add context receivers to KtFunctionalType
- Context receivers in function types may not be labeled, so the created
  `KtContextReceiver`s have `null` labels. Such labels currently only
  compile due to a bug (see KT-55187).
2022-12-06 17:43:29 +00:00
Marco Pennekamp 2851622a6f [AA] Fix typos in renderers 2022-12-06 17:43:29 +00:00
Pavel Mikhailovskii 25ad7fe31c KT-51863 Account for context receivers in calls with changed parameter order 2022-12-06 16:28:08 +00:00
Gleb Lukianets e9984ce38d Make checking Xcode version faster.
xcodebuild -version call may take enormous amount of time even after warmup. To alleviate this, first try to check Xcode version directly by reading application .plist file, but still use xcodebuild -version as a fallback.

Merge-request: KT-MR-7694
Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com>
2022-12-06 15:52:13 +00:00
Sergey Bogolepov 4adb367a25 [K/N] Fix logging in NativeGenerationState context 2022-12-06 15:40:55 +00:00
Sergey Bogolepov dca14d4285 [K/N] Reduce usages of NativeGenerationState.context
Now that NativeGenerationState is a PhaseContext we don't need to
access `context` property that frequently.
2022-12-06 15:40:55 +00:00
Sergey Bogolepov b8f9b07a5a [K/N] Turn NativeGenerationState into PhaseContext
It allows to use NativeGenerationState as a PhaseContext in lowering
and codegen phases.
2022-12-06 15:40:54 +00:00
Dmitrii Gridin 8a9acfcab0 [SLC] SymbolLightModifierList: replace custom loop with compareAndSet with updateAndGet
^KTIJ-23783
2022-12-06 13:40:50 +00:00
Dmitrii Gridin 3ee451c873 [SLC] SymbolLightFieldForObject: reduce allocations number
^KTIJ-23783
2022-12-06 13:40:49 +00:00
Dmitrii Gridin 91586705b3 [SLC] SymbolLightSimpleMethod: reduce allocations number
^KTIJ-23783
2022-12-06 13:40:49 +00:00
Dmitrii Gridin c5c79a5fb5 [SLC] SymbolLightModifierList: improve equals
^KTIJ-23783
2022-12-06 13:40:48 +00:00
Dmitrii Gridin 2ec09408d3 [SLC] SymbolLightModifierList: avoid redundant array allocation
^KTIJ-23783
2022-12-06 13:40:48 +00:00
Dmitrii Gridin a7390d027a [SLC] migrate from ImmutableHashMap to PersistentHashMap
^KTIJ-23783
2022-12-06 13:40:48 +00:00
Dmitrii Gridin 9bc37d7f3f [SLC] introduce some utils
^KTIJ-23783
^KTIJ-23519
2022-12-06 13:40:47 +00:00
Dmitrii Gridin 856d272ca4 [SLC] implement lazy calculation for modifiers
and fix some annotations

^KTIJ-23783 Fixed
2022-12-06 13:40:47 +00:00
Dmitrii Gridin e2082fb0d7 [SLC] fix visibility for lateinit properties from companion
^KTIJ-23519 Fixed
2022-12-06 13:40:46 +00:00
Dmitrii Gridin 7bfa900ce6 [SLC] fix modality for methods and property accessors
^KTIJ-23783
2022-12-06 13:40:46 +00:00
Dmitrii Gridin 00ab33bbf9 [SLC] extract non-common logic from computeModalityForMethod
^KTIJ-23783
2022-12-06 13:40:45 +00:00
Dmitrii Gridin a8c111b304 [SLC] drop redundant resolve for visibility, fix several cases
^KTIJ-23783
2022-12-06 13:40:45 +00:00
Dmitrii Gridin 9970623e95 [SLC] SymbolLightModifierList: separate static and lazy modifiers
^KTIJ-23783
2022-12-06 13:40:45 +00:00
Dmitrii Gridin fc8ae0f2e5 [SLC] SymbolLightModifierList: move modifier logics to common part
^KTIJ-23783
2022-12-06 13:40:44 +00:00
Dmitrii Gridin cba70d70a7 [SLC] drop hack with setParent for annotations
^KTIJ-23783
2022-12-06 13:40:44 +00:00
Yahor Berdnikau c682d4f4cc Use 'jvm-test-suite' for KGP functional tests 2022-12-06 13:18:43 +00:00
Anton Lakotka 8726360a8e [Gradle] Update tests after removing runtimeOnly metadata transformations
Additionally check that all metadata dependencies per scope resolve
consistently. It is a side effect after creating GranularMetadata
dependency for all compile scopes instead per scope style.

^KT-55230
2022-12-06 12:49:28 +00:00
Anton Lakotka d28659fdbe [Gradle] Merge scoped dependency transformations to one: compile scope
There is no need on fine-grained metadata dependencies transformation
per scope. Because it is only needed for compilation.

^KT-55230 Fixed
2022-12-06 12:49:27 +00:00
Anton Lakotka 98678bce0a [Gradle] Remove metadata dependencies transformation for runtimeOnly
Kotlin Metadata KLIBs cannot be used in runtime thus
we don't have to transform composite JARs that contain
metadata per source set for runtimeOnly dependencies scopes.

^KT-55230 Fixed
2022-12-06 12:49:27 +00:00
Bogdan Mukvich 5db9c2990a Remove deprecated dependencies resolvers from kotlin-script-util
along with outdated maven dependencies
2022-12-06 09:52:17 +00:00
Sebastian Sellmair 56b57f1908 [Gradle] Fix ConfigurationCacheIT.testCommonizer
... after removing Project parameter for 'getCommonizerTarget' calls

KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair 7258926db6 [Gradle] IdeCompositeDependencyResolver: Support WithBuildDependencies
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair b4b0607597 [Gradle] Refine MppIdeDependencyResolutionIT
KT-55238
2022-12-06 08:36:13 +00:00
Sebastian Sellmair 23bd6332b4 [Gradle] Update kotlin-gradle-plugin-idea.api
KT-55238
2022-12-06 08:36:12 +00:00
Sebastian Sellmair 2225816427 [Gradle] CInteropCommonizerDependent: Remove unused Project parameters
KT-55238
2022-12-06 08:36:12 +00:00
Sebastian Sellmair 1ec7e404fd [Gradle] Implement MppIdeDependencyResolutionIT.testCommonizedPlatformDependencyResolution
^KT-55238 Verification Pending
2022-12-06 08:36:12 +00:00
Sebastian Sellmair ee07fcc00b [Gradle] Implement IdeDependencyResolver.WithBuildDependencies
KT-55238
2022-12-06 08:36:11 +00:00