Commit Graph

98557 Commits

Author SHA1 Message Date
Abduqodiri Qurbonzoda 80b48eed0b Fix Path.copyToRecursively when copying across file systems #KT-55935
Merge-request: KT-MR-8705
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2023-02-07 08:25:54 +00:00
Alexander Udalov 1844869e8a Kapt+JVM_IR: fix ordering of properties in generated stubs
Apparently it depended on the ordering of the synthetic `$annotations`
methods generated for properties. And those methods were always
generated at the end of a Java stub by kapt because they lacked PSI
element, and thus `ClassFileToSourceStubConverter.convertClass` could
not compute their source position, and it placed them at the end as all
other synthetic methods.

The solution is to provide PSI element for `$annotations` methods in
JvmDeclarationOrigin. This origin is then collected in kapt in
`OriginCollectingClassBuilderFactory` and used for sorting, as in the
case of the old JVM backend.

 #KT-56360 Fixed
2023-02-06 21:34:10 +00:00
Alexander.Likhachev 67c4dc3cce [Gradle, K/N] Stop using enableEndorsedLibs Gradle flag, make it Error
#KT-54098 Fixed
2023-02-06 19:24:05 +00:00
Sebastian Sellmair 3b75658113 [Gradle] IdeBinaryDependencyResolverTest: Add test - android artifact transformation
^KT-56439 Verification Pending
2023-02-06 18:38:49 +00:00
Sebastian Sellmair dd2317b1c2 [Gradle] IdeBinaryDependencyResolver: Add componentFilter to 'ResolvableConfiguration' and 'Compilation'
^KT-56439 Verification Pending
2023-02-06 18:38:49 +00:00
Sebastian Sellmair 889dc8d669 [Gradle] Rename IdePlatformDependencyResolverTest.kt to IdeBinaryDependencyResolverTest.kt
KT-56439
2023-02-06 18:38:49 +00:00
Sebastian Sellmair 513f4a3c42 [Commonizer] Commonize 'HAS_ENUM_ENTRIES' flag
^KT-56207 Verification Pending
2023-02-06 18:36:37 +00:00
Kirill Rakhman e232cc92f9 [FIR] Eliminate ClassId.isSame call from FirClass.isSubclassOf
^KT-55664 Fixed
2023-02-06 17:51:32 +00:00
Dmitrii Gridin 6c24436657 [SLC] make INSTANCE field for object public
^KT-56441 Fixed
2023-02-06 17:48:37 +00:00
Dmitrii Gridin 8e815e943e [SLC] add tests on private object
^KT-56441
2023-02-06 17:48:37 +00:00
Dmitrii Gridin fa231f60ae [LC] rename testData for objects
^KT-56441
2023-02-06 17:48:37 +00:00
Dmitrii Gridin bd7e5fd324 [LC] update testData for objects
^KTIJ-24119
2023-02-06 17:48:36 +00:00
Vladimir Sukharev e75d739c7a Add tests for property const initializers
Merge-request: KT-MR-8661
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-02-06 15:43:41 +00:00
Sebastian Sellmair 3a9ca1c1eb [Gradle] IdeMultiplatformImportFactory: Empty overwrite for Android AdditionalArtifactResolutionPhase.SourcesAndDocumentationResolution
^KT-56430 Verification Pending
2023-02-06 13:05:06 +00:00
Sebastian Sellmair 7341f37838 [Gradle] Implement IdeAndroidDependencyResolutionTest
Added failing test for: KT-56430
2023-02-06 13:05:05 +00:00
Oleksandr Karpovich dec9704cea Add more methods to DescriptorSerializerPlugin
New methods:
afterFunction, afterConstructor, afterProperty, afterTypealias
2023-02-06 11:15:53 +00:00
aleksandrina-streltsova 7db32f6430 [FIR] Fix unexpected primary constructor scope in secondary constructor
^KTIJ-23720
^KT-56353 Fixed
2023-02-06 10:30:28 +00:00
Dmitriy Novozhilov c25a5bc9c1 [FIR] Cleanup storing context for lambdas during body resolution 2023-02-06 10:08:37 +00:00
Dmitriy Novozhilov 791a7b1c31 [FIR] Extract function type kind for lambda in argument position
^KT-56381 Fixed
2023-02-06 10:08:37 +00:00
Dmitriy Novozhilov e36d3c94a5 [FIR] Add containingFunctionSymbol property to FirValueParameterSymbol 2023-02-06 10:08:36 +00:00
Nikolay Krasko 6afaa13eab Add docker file for building Kotlin build environment
KTI-1119
2023-02-06 10:01:53 +00:00
Nikolay Krasko e8e79985a5 Fix import for performance project when kotlin.native is enabled 2023-02-06 10:01:52 +00:00
Valeriy.Vyrva 9a0e2b08f1 Bump JUnit5 version to 5.9.1 2023-02-06 10:01:52 +00:00
Sebastian Sellmair 300995209f [Gradle] MppIdeDependencyResolutionIT: Use correct encoder for assertion
^KT-56429 Verification Pending
2023-02-06 09:54:58 +00:00
Pavel Kunyavskiy abbf11e8e1 [K/N] Mark immutable temp variables as immutable
This optimizes 5000 enum entries enum compilation time from "I can't wait" to around 1 minute.
2023-02-06 08:34:11 +00:00
Dmitriy Novozhilov f479a56f5e [FIR] Fix reporting of CANNOT_INFER_PARAMETER_TYPE on lambda parameters
^KT-56138 Fixed
2023-02-06 08:09:57 +00:00
Dmitriy Novozhilov 76d360d793 [FIR] Properly set source for inferred return type of function 2023-02-06 08:09:56 +00:00
Dmitriy Novozhilov e9204521a9 [FIR] Properly create type ref for error type in various places 2023-02-06 08:09:56 +00:00
Dmitriy Novozhilov ad3ae0ff69 [FIR] Add ability to specify that diagnostic collector should visit nodes with specific fake kind 2023-02-06 08:09:55 +00:00
Anna Kozlova f784628ebf [CLI] reduce memory usage for compiler settings
make write protection directly in properties
it creates no additional wrapper with the link to the containing class
for ij project, this reduces memory usage for ~15 mb

^KT-56351
2023-02-06 07:57:53 +00:00
Vladimir Sukharev 441c74e2c8 Unmute test, fixed by KT-55462
Merge-request: KT-MR-8640
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-02-05 16:37:13 +00:00
Roman Golyshev 08831c0867 [Analysis API] KTIJ-24192 Use only lowerBound on flexible types when looking for decompiled PSI
Otherwise, decompiled declarations with flexible types in them cannot be
properly resolved by the Analysis API

Examples of such declarations:

```kt
fun foo()/*: ImplicitTypeFromJava! */ = <some call to java code>

var bar/*: ImplicitTypeFromJava! */ = foo()
// set(value: ImplicitTypeFromJava!) { ... }
```

^KTIJ-24192 Fixed
2023-02-03 23:34:51 +01:00
Dmitrii Gridin 0608e44b17 [SLC] drop redundant testData
after 6fd79f4e2e

^KTIJ-24067
2023-02-03 19:49:16 +00:00
Dmitrii Gridin fb8e4e7c8d [FIR] FirBasedSymbol: add more info to kdoc
^KT-56046
2023-02-03 19:49:16 +00:00
Dmitrii Gridin 5b8ece379d [SLC] GranularAnnotationsBox: drop commented annotations
^KT-56046
2023-02-03 19:49:16 +00:00
Dmitrii Gridin 2c96933f5c [FIR] FirBasedSymbol: drop unused functions
^KT-56046
2023-02-03 19:49:15 +00:00
Dmitrii Gridin cc7527a5bc [FIR] CompilerRequiredAnnotationsHelper: update kdoc and drop commented values
^KT-56046
2023-02-03 19:49:15 +00:00
Dmitrii Gridin 3e4c6b160a [AA] KtAnnotationApplicationInfo: add more information to kdoc
^KT-56046
2023-02-03 19:49:15 +00:00
Dmitrii Gridin 00eddae867 [SLC] rename from toFilterWithAdditionalNull to toOptionalFilter
^KT-56046
2023-02-03 19:49:14 +00:00
Dmitrii Gridin 482bc15a70 [AA] rename from NullAnnotationUseSiteTargetFilter to NoAnnotationUseSiteTargetFilter
^KT-56046
2023-02-03 19:49:14 +00:00
Dmitrii Gridin 197160fbd7 [SLC] SymbolLightAbstractAnnotationParameterList: introduce more flexible symbolLightAnnotationParameterList api
^KT-56046
2023-02-03 19:49:14 +00:00
Dmitrii Gridin d7535c303d [SLC] rename from SimpleAdditionalAnnotationsProvider to CollectionAdditionalAnnotationsProvider
^KT-56046
2023-02-03 19:49:13 +00:00
Dmitrii Gridin 6e48774fff [SLC] rename from SimpleAnnotationFilter to CollectionAnnotationFilter
^KT-56046
2023-02-03 19:49:13 +00:00
Dmitrii Gridin fc05fa5b1a [SLC] rename from LazyAnnotationsBox to GranularAnnotationsBox
^KT-56046
2023-02-03 19:49:13 +00:00
Dmitrii Gridin a2c0a88592 [SLC] rename from LazyModifiersBox to GranularModifiersBox
^KT-56046
2023-02-03 19:49:12 +00:00
Dmitrii Gridin c05a47355e [SLC] rename from SimpleModifiersBox to InitializedModifiersBox
^KT-56046
2023-02-03 19:49:12 +00:00
Dmitrii Gridin 650267592c [SLC] rename from SimpleAnnotationsBox to ComputeAllAtOnceAnnotationsBox
^KT-56046
2023-02-03 19:49:12 +00:00
Dmitrii Gridin 0b7ef03490 [SLC] AnnotationFilter: add kdoc
^KT-56046
2023-02-03 19:49:11 +00:00
Dmitrii Gridin 4e07210b9c [SLC] AnnotationsProvider: add kdoc
^KT-56046
2023-02-03 19:49:11 +00:00
Dmitrii Gridin 153ee3bc4b [SLC] AdditionalAnnotationsProvider: add kdoc
^KT-56046
2023-02-03 19:49:11 +00:00