Commit Graph

96159 Commits

Author SHA1 Message Date
Dmitrii Gridin be7d282974 [FIR] introduce FirReceiverParameter
^KT-54417
2022-11-17 09:50:09 +00:00
Anton Bannykh e6801abce8 JS IR: move IC tests output to build/ dir 2022-11-17 09:24:54 +00:00
Aleksei.Cherepanov 123caee0ed Revert "Suppress warning for mvn+kapt+jdk9"
This reverts commit 3fc91b01
2022-11-17 08:45:27 +01:00
Sebastian Sellmair bbd8aed419 [Gradle] kgp-idea: Update api reference
KT-54825
2022-11-17 07:38:45 +00:00
Sebastian Sellmair 071395ef62 [Gradle] Rename IdePlatformDependencyResolver to IdePlatformBinaryDependencyResolver
^KT-54948 Verification Pending
2022-11-17 07:38:44 +00:00
Sebastian Sellmair ee7989eb3b [Gradle] Implement tests for IdePlatformDependencyResolver
^KT-54948 Verification Pending
2022-11-17 07:38:44 +00:00
Sebastian Sellmair bc9296d646 [Gradle] Implement IdePlatformDependencyResolver
(ported from IdeaKpmPlatformDependencyResolver)

^KT-54948 Verification Pending
2022-11-17 07:38:44 +00:00
Sebastian Sellmair e15812f196 [Gradle] kgp-idea: Update testedVersion to 1.8.20-dev-2253 for compatibility tests
KT-54825
2022-11-17 07:38:43 +00:00
Sebastian Sellmair b44be0d761 [Gradle][Minor] kgp-idea-proto: Avoid capturing project in test task
KT-54825
2022-11-17 07:38:43 +00:00
Sebastian Sellmair bc4644a031 [Gradle] Remove Internal marker from DefaultKotlinSourceSet
KT-54825
2022-11-17 07:38:43 +00:00
Sebastian Sellmair 7c00f6447d [Gradle] Implement IdeaKotlinDependencyForwardCompatibilityTest
KT-54825
2022-11-17 07:38:42 +00:00
Sebastian Sellmair 66cb2b3ad8 [Gradle] Implement IdeaKotlinDependencyBackwardsCompatibilityTest
KT-54825
2022-11-17 07:38:42 +00:00
Sebastian Sellmair 31b7fd9a1f [Gradle] Implement TestIdeaKotlinDependencySerializer
KT-54825
2022-11-17 07:38:41 +00:00
Sebastian Sellmair 0fa92315ff [Gradle] kgp-idea: Update testedVersion to 1.8.20-dev-2192 for compatibility tests
KT-54825
2022-11-17 07:38:41 +00:00
Sebastian Sellmair 7e1ad71996 [Gradle] kgp-idea: Demote stdlib dependency to compileOnly
KT-54825
2022-11-17 07:38:41 +00:00
Sebastian Sellmair 585045c599 [Gradle] kotlin-tooling-core: Demote stdlib dependency to compileOnly
KT-54825
2022-11-17 07:38:40 +00:00
Sebastian Sellmair 39904fe54b [Gradle] Update kgp-idea and kgp-idea-proto API reference
KT-54825
2022-11-17 07:38:40 +00:00
Sebastian Sellmair 786adcaf3f [Gradle] kgp-idea.serialize: Change naming schema from Idea* to IdeaKotlin*
KT-54825
2022-11-17 07:38:40 +00:00
Sebastian Sellmair 224a237385 [Gradle] Implement IdeaKotlinObjectGraphTest and fix discovered issues
KT-54825
2022-11-17 07:38:39 +00:00
Sebastian Sellmair 9771e57951 [Gradle] Implement IdeTransformedMetadataDependencyResolver
KT-54825
2022-11-17 07:38:39 +00:00
Sebastian Sellmair 687ccda3e8 [Gradle] Implement protobuf for kgp-idea/tcs
KT-54825
2022-11-17 07:38:38 +00:00
Sebastian Sellmair f3998d523d [Gradle] Move IdeDependency into kgp-idea module and share serializer logic
KT-54825
2022-11-17 07:38:38 +00:00
Sebastian Sellmair 1befefc687 [Gradle] o.j.k.kgp-integration-tests: Opt into InternalKotlinGradlePluginApi
KT-54825
2022-11-17 07:38:38 +00:00
Sebastian Sellmair 405c94e0bb [Gradle] Initial port of IdeaKpmProjectModelBuilder into TCS IdeMultiplatformImport
KT-54825
2022-11-17 07:38:37 +00:00
Anna Kozlova c727dbb8ca [fir compiler] ensure type parameters are included in the resolve scope
to resolve the next parameter bounds (KTIJ-23674)
2022-11-16 22:25:02 +00:00
Aleksei.Cherepanov 3fc91b013d Suppress warning for mvn+kapt+jdk9
Suppress the warning about lack of tools.jar, as this jar does not present in JDK9+

#KT-47110 Fixed

Merge-request: KT-MR-7566
Merged-by: Aleksei Cherepanov <aleksei.cherepanov@jetbrains.com>
2022-11-16 20:02:57 +00:00
Ilya Kirillov 8dab560d6e [LL FIR] fix status resolution of static enum members
Before, BODY_RESOLVE phase were used for them but status may be unresolved.
This caused CCE on accessing resolved status for such static enum members.

Now, those declarations are created with the status of owning enum as the status is taken from that class.
2022-11-16 19:44:18 +00:00
Anton Bannykh 84650d08af CODEOWNERS: cli-js belongs to JS and WASM 2022-11-16 17:21:31 +00:00
Pavel Kunyavskiy c04e1b6ce7 [K/N] Better fix for calls checker use-after-free in main thread deinit 2022-11-16 15:15:07 +00:00
Denis.Zharkov 3429bccf9a Change ownership for generated diagnostic tests to Compiler Core 2022-11-16 14:38:39 +00:00
Nikita Bobko 4f68684eba Postpone non-local break and continue feature till K2
Postpone because we found a bug KT-54906 in CFA/DFA in K1 which we are
not going to fix in K1

Meta-issue: KT-1436
2022-11-16 13:17:02 +00:00
Jinseong Jeon fcba1f215a AA: handle erroneous type in nested type argument 2022-11-16 14:13:43 +01:00
Mikhail Glukhikh ac514849f4 K1: add deprecation for implicit non-public calls #KT-54762 Fixed 2022-11-16 12:27:12 +00:00
Alexander Korepanov f4b5f5ff5d [JS IR] Take default params into account for calculating an IC hash
^KT-54895 Fixed
2022-11-16 12:25:11 +00:00
Alexander Korepanov f7063555ca [JS IR] Fix the instability of LoweredDeclarationSignature
A suspend stub for the abstract function
 may be created in the context of the child function.
 If on an incremental rebuild the stub is created from
 the parent context (e.g. a file with the child is not modified),
 the resulting LoweredDeclarationSignature will be different.
 It will lead to a broken cross-module reference and broken JS code.
 Therefore it is required to wrap the creation routine
 into StageController::restrictTo() explicitly.

^KT-54934 Fixed
2022-11-16 12:24:48 +00:00
Aleksei.Cherepanov fb38ab3cbb Add integration tests for 1adc2426
#KT-29346 Fixed
2022-11-16 11:47:47 +01:00
Alexander Shabalin 504fcd5b71 [K/N] C++ files inside kotlin-native/ have special owners
Merge-request: KT-MR-7674
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-11-16 10:03:09 +00:00
Dmitrii Gridin 36f9a8b7b8 [AA] fix symbol pointer for setter
^KT-54311
2022-11-15 21:37:27 +00:00
Yahor Berdnikau 49a5e9b91d Allow to suppress kotlinOptions.freeCompiler args modification warning
It could be done via 'gradle.properties':
'kotlin.options.suppressFreeCompilerArgsModificationWarning=true'

^KT-54888 Fixed
2022-11-15 16:52:02 +00:00
Dmitrii Gridin 2d6fb8a99a .idea/codeStyle: fix format to avoid changes in git 2022-11-15 17:36:28 +01:00
Yan Zhulanow e21226d02a [SLC] Ignore callables with invalid or absent names (KTIJ-23584) 2022-11-15 16:13:59 +00:00
Yan Zhulanow 6fe989b4b4 [LC] Provide proper parent element for private properties (KTIJ-23449)
Before, no parent element was returned for an object literal inside a
private property initializer, as only the getter was considered as a
potential parent.

Relevant tests are added on the IDE side (see 'LightClassBehaviorTest').
2022-11-15 16:13:59 +00:00
Jaebaek Seo 1a5a6474d6 Support TargetPlatform.isJs() for FIR 2022-11-15 16:50:17 +01:00
Jaebaek Seo f8a101cf3a Add KtType.isArrayOrPrimitiveArray/isNestedArray() to AA 2022-11-15 16:50:17 +01:00
Pavel Mikhailovskii 4436ce22b0 Generate meaningful bytecode names for extension receivers in INDY lambdas 2022-11-15 15:38:34 +00:00
Denis.Zharkov 2953e600ff K1: Deprecate incorrect callable references resolution behavior
^KT-54316 Related
^KT-54832 Fixed
2022-11-15 15:06:58 +00:00
Denis.Zharkov a3fd63fb1d Rename CompanionInParenthesesLHSCallChecker.kt -> CompanionLHSRelatedCheckers.kt 2022-11-15 15:06:58 +00:00
Yan Zhulanow 89c9646e2f [FE] Restore source compatibility in KtPsiFactory
Prevent huge code migration in kt- release branches by returning the
previously available API in deprecated status.
2022-11-15 14:58:39 +00:00
Alexander Shabalin a31c3f979b [K/N] Benchmarks on weak references
Merge-request: KT-MR-7575
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-11-15 13:22:15 +00:00
Zalim Bashorov ab590e1279 [Wasm, stdlib] Change visibility for wasm_* helper functions to internal 2022-11-15 12:55:10 +01:00