Commit Graph

103075 Commits

Author SHA1 Message Date
Roman Golyshev a436f11caf [Analysis API] Add useful references to reference shortener APIs 2023-06-26 14:37:14 +02:00
Roman Golyshev b4c9a2616e KTIJ-25960 [Analysis API] Resolve static declarations in KDoc
^KTIJ-25960 Fixed
2023-06-26 12:27:26 +00:00
Sebastian Sellmair 4d91229d79 [Gradle] Implement KotlinDefaultHierarchyFallbackNativeTargetShortcutUsageDetected diagnostic
^KT-58676 Verification Pending
2023-06-26 11:36:18 +00:00
Sebastian Sellmair 8d6c4019c5 [Gradle] Implement KotlinMultiplatformSourceSetConventionsTest
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair c31c5ea0be [Gradle] Implement IosSourceSetConventionUsedWithoutIosTarget diagnostic
... in case when iosMain, iosTest conventions are used
w/o any ios target being applied

^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 6d1e039b77 [Gradle] Do not apply default hierarchy template for: test KT-47641...
See: KT-59596:
The test did not apply any hierarchy before as well, therefore this
change is returning the setup back to its original behaviour.

However, we therefore discovered an issue (tracked as KT-59596):
Compiling metadata compilations for cinterops is not desirable

^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 6f42446138 [Gradle][Minor] Improve documentation in KotlinHierarchyDsl
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 37ec18d8d6 [Gradle][Minor] Fix typo in KotlinMultiplatformExtension documentation
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair f26f3e0738 [Gradle] Remove InternalKotlinHierarchyTemplate interface (in favor of using Impl directly)
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 6d4dbfae28 [Gradle] Move KotlinHierarchyDsl documentation into KotlinHierarchyDsl.kt
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair a03fb02af3 [Gradle] Deduplicate documentation from KotlinHierarchyTemplate.Templates.default and applyDefaultHierarchyTemplate
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 772bcb283d [Gradle] Replace KotlinSourceSetTree interface with simpler class
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 85f4b72c8b [Gradle] Remove deprecation from deprecated KotlinTargetHierarchy entities
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 18a2ceebea [Gradle] Keep deprecated KotlinTargetHierarchy in previous KotlinTargetHierarchy.kt source file
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 1cd8089e92 [Gradle] Move KotlinHierarchyTemplate.Templates.default into -api module
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 2a4f9b19f0 [Gradle] KotlinSourceSetConvention: KotlinSourceSet registration logic
Separate the retrieval and registration of KotlinSourceSets in the getValue function of KotlinSourceSetConvention. Add a custom Trace class to be stored in the isRegisteredByKotlinSourceSetConventionAt property for better readability and debugging purposes.
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 0b57dac738 [Gradle] Deprecate native target shortcuts ...
... in favor of default hierarchy template

^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 845c8bd1c3 [Gradle] Implement KotlinGradlePluginDsl annotation and check in for binary compatibility validation
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair cec243ac3b [Gradle] apply KotlinHierarchyTemplate.default, by default
^KT-58676 Verification Pending
2023-06-26 11:36:17 +00:00
Sebastian Sellmair b9a8f6dce2 [Gradle] KotlinPluginLifecycle: requiredStage: Wait for stage if necessary
^KT-58676 In Progress
2023-06-26 11:36:17 +00:00
Sebastian Sellmair 1a143ec1a2 [Gradle] KotlinToolingDiagnostics: Allow providing stacktraces
^KT-58676 In Progress
2023-06-26 11:36:16 +00:00
Sebastian Sellmair 390b4e30a0 [Gradle][Minor] Move reporting of targets out of 'configureSourceSets'
^KT-58676 In Progress
2023-06-26 11:36:16 +00:00
Sebastian Sellmair 008a4c9593 [Gradle] Implement KotlinMultiplatformSourceSetConventions
... to give convenient access to known 'default' SourceSets

^KT-58676 In Progress
2023-06-26 11:36:16 +00:00
Sebastian Sellmair b2dd83515c [Gradle] Stabilise Kotlin Hierarchy Template DSL
- Remove 'Target' name from hierarchy components as in
    - KotlinTargetHierarchyBuilder -> KotlinHierarchyBuilder
    - KotlinTargetHierarchyDsl -> KotlinHierarchyDsl

- Rename KotlinTargetHierarchyDescriptor -> KotlinHierarchyTemplate
    To convey a better intuition about the 'template' vs 'layout' separation:
    A 'template' is used to 'layout' the actual 'hierarchy' on a given project.

- Move entities from .mpp.targetHierarchy to .hierarchy package
    As the .targetHierarchy package was using the 'target' term as well

- Rename SourceSetTree to KotlinSourceSetTree

- Rename SourceSetTreeClassifier to KotlinSourceSetTreeClassifier
    (Support external target APIs by introducing a V2 api version)

^KT-58676 In Progress
2023-06-26 11:36:16 +00:00
Alexander.Likhachev cb087b7def [Build] Bump gradle-node-plugin version to 5.0.0
This change is required to fix a configuration cache problem revealed after migration to Gradle 8.1
2023-06-26 10:36:25 +00:00
Alexander.Likhachev 1c00b7062e [Build] Upgrade gradle wrapper files
This change was missed during the Gradle version bump
2023-06-26 10:36:25 +00:00
Sergej Jaskiewicz 2b4a08524d [IR] Reorder parameters in IrFactory#createTypeParameter
This is to prepare for IrFactory auto-generation (KT-59308).
2023-06-26 09:52:11 +00:00
Sergej Jaskiewicz b1f7b5e982 [IR] Reorder parameters in IrFactory#createTypeAlias
This is to prepare for IrFactory auto-generation (KT-59308).
2023-06-26 09:34:41 +00:00
Bogdan Mukvich 26a479918b Add expected poms
^KTI-1103
2023-06-26 08:19:47 +00:00
Bogdan Mukvich 9160636a71 Implement artifacts test
^KTI-1103
2023-06-26 08:19:47 +00:00
Bogdan Mukvich d1e5b252c9 Add artifacts-tests module
^KTI-1103
2023-06-26 08:19:47 +00:00
Vladimir Sukharev 09a0905ffc [Test] Convert IGNORE: NATIVE directives in rest of tests
^KT-59057 Fixed

Merge-request: KT-MR-10794
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-06-26 07:44:12 +00:00
Svyatoslav Kuzmich 8a69904d02 ~ Regenerate tests 2023-06-25 10:23:37 +02:00
Svyatoslav Kuzmich 29fa20e2aa [Wasm] Extract Fir compiler tests into :wasmFirCompilerTest task
This is needed to run K1 and K2 tests in parallel on separate CI agents
2023-06-25 10:20:43 +02:00
Svyatoslav Kuzmich 4ad6fd4cde [Wasm] Add RUN_UNIT_TESTS directive to unit-test compiler tests 2023-06-25 10:20:43 +02:00
Svyatoslav Kuzmich a3e2d2804c [Wasm] Update testData after adding K2 and new test infra support.
- Actualize muted K2 tests
- Actualize muted K1 tests with module systems because legacy Wasm test
  infra had no respect for "// MODULE: ..." test directives
2023-06-25 10:20:40 +02:00
Svyatoslav Kuzmich 9b3237fff9 [Wasm] Initial K2 support in new test infrastructure (KT-57230)
- Implement FirWasmSessionFactory
- Use new compiler test infra for Wasm K1 and K2
- Delete old Wasm compiler test infra
2023-06-25 10:19:36 +02:00
Svyatoslav Kuzmich 3e564236f9 [Wasm] Fix unsigned types in IR interpreter
Wasm kotlin.Any class has properties,
 additional filtering is required when searching for
 value class property
2023-06-25 10:18:51 +02:00
Svyatoslav Kuzmich b503eafcb2 [Wasm] Allow implementing function interfaces in the new test infra
Make it consistent with CLI and old test infra
2023-06-25 10:18:50 +02:00
Svyatoslav Kuzmich 736519c506 [JS] Rename JsLibraryProvider to LibraryProvider
This class is not JS-specific and can be used in Wasm test services
2023-06-25 10:18:50 +02:00
Artem Daugel-Dauge 7eec1b350f [Tests] Try to make CocoaPods installation more robus once againt 2023-06-23 16:56:44 +00:00
Vladimir Sukharev 4d9f93e4eb [K2/N/MPP] Disable one-stage MPP compilation
^KT-56855

Merge-request: KT-MR-10735
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-06-23 15:51:59 +00:00
Ivan Kylchik bde6df8ca1 [IR] Correctly transform KCallable.name call to optimize it later
We need to transform call from `KFunction(N).name` to
`KFunction(N+1).name`. This way we keep IR correct and if something
goes wrong during interpretation, we still will have compilable code.

This commit suppose to fix three failing tests on Native aggregate
build:
1. `FirNativePartialLinkageTestGenerated.
testReferencingUnusableDeclarations`
2. `FirNativeCodegenBoxTestGenerated$Box$CallableReference$Bound.
testKCallableNameIntrinsic`
3. `FirNativeCodegenBoxTestNoPLGenerated$Box$CallableReference$Bound
.testKCallableNameIntrinsic`
2023-06-23 14:47:26 +00:00
Mikhail Glukhikh ce4ad0e42a Regenerate LightAnalysisModeTestGenerated test group 2023-06-23 16:44:50 +02:00
Mikhail Glukhikh 0d8f3a6026 K2: generate Java synthetics for Kotlin get/sets w/out type parameters
This commit is a follow-up to d8a20f19 and
provides additional K1 compatibility.
#KT-59550 Fixed
2023-06-23 16:44:50 +02:00
Mikhail Glukhikh 08a355756a K2 (minor): fix modality in tests from d8a20f19 2023-06-23 16:44:49 +02:00
Mikhail Glukhikh fcfee9384a K2: reproduce KT-59550 2023-06-23 16:44:49 +02:00
Jinseong Jeon e0fc0d96e5 AA: handle PsiType conversion for recursive type parameter case
^KT-59598 Fixed
2023-06-23 16:31:47 +02:00
Jinseong Jeon 2d132c6b73 SLC: run enum test w/ FULL_JDK 2023-06-23 16:19:06 +02:00
Jinseong Jeon 7f1424737e LC: rework modality of enum class
It is abstract if it has abstract member.
It is final if it doesn't have enum entries that need subclass.
Otherwise, it is open (i.e., no modifier)

^KT-57567 Fixed
2023-06-23 16:19:06 +02:00