Commit Graph

99094 Commits

Author SHA1 Message Date
Dmitrii Gridin bf600afce0 [SLC] extract base class from AbstractSymbolLightClassesStructureTest
^KT-56613
2023-03-01 10:42:59 +00:00
Dmitrii Gridin 5e18ebcd7e [DLC] cleanup code and drop some redundant constructions
^KT-56613
2023-03-01 10:42:58 +00:00
Dmitrii Gridin 007af1c547 [DLC] use library tracker instead of out of block tracker
^KT-56613
2023-03-01 10:42:58 +00:00
Dmitrii Gridin b565df65c4 [SLC] drop redundant properties to reduce memory consumption
^KT-56613
2023-03-01 10:42:58 +00:00
Ilya Muradyan 6ddf32d013 Scripts: synchronize calculation of parent in LexicalScopeWrapper to fix #EA-803423 2023-03-01 09:05:25 +00:00
Sebastian Sellmair 57b32b6f69 [Gradle] Fix cryptic task descriptions of Kotlin Compile Tasks
^KT-57023 Verification Pending
2023-03-01 08:55:59 +00:00
Sebastian Sellmair de138532c7 [Gradle] Multiplatform: Bump minSupportedVersion for AGP to 4.2
^KT-56654 Verification Pending
2023-03-01 08:55:04 +00:00
Sebastian Sellmair cd7b4eb632 [Gradle] Multiplatform: Bump maxSupportedVersion for AGP to 8.0
^KT-56654 Verification Pending
2023-03-01 08:55:04 +00:00
Dmitriy Novozhilov 1cac3b4ae1 [Build] Run only FIR PSI tests in predefined [JPS] Fast FIR tests configuration 2023-03-01 08:38:32 +00:00
Igor Chevdar a92c53daec [K/N][IR] Do not save local inline functions before closure building
#KT-56965 Fixed
2023-03-01 08:09:52 +00:00
Igor Chevdar c038bbde08 [box-tests] Added a reproducer for KT-56965 2023-03-01 08:09:51 +00:00
Vyacheslav Gerasimov 9b3c77de8b Revert "[Gradle, JS] Fix pom.xml publication to OSS sonatype"
This reverts commit 332ce81408.
2023-02-28 22:32:39 +01:00
Vladimir Sukharev 9a30edceeb Put proper tag to stdlibK2
Merge-request: KT-MR-9034
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-02-28 20:48:08 +00:00
Artem Kobzar 50a462fed1 [K/JS] Exclude kotlinx.serialization synthetic declarations from JsExport
^KT-57024 Fixed
2023-02-28 18:11:36 +00:00
Yahor Berdnikau 36ae6d1238 Update wrapper to Gradle 7.6.1 release 2023-02-28 16:39:00 +00:00
Bogdan Mukvich 332ce81408 [Gradle, JS] Fix pom.xml publication to OSS sonatype 2023-02-28 16:29:47 +00:00
Troels Bjerre Lund e33e1653f6 [K/N] Add design overview to custom_alloc/README and rename page types ^KT-55364
Co-authored-by: Troels Lund <troels@google.com>

Merge-request: KOTLIN-MR-626
Merged-by: Alexander Shabalin <alexander.shabalin@jetbrains.com>
2023-02-28 16:21:23 +00:00
Alexander Korepanov a0727b22bb [Gradle, JS] Make KotlinJsIrLink::rootCacheDirectory public
^KT-56999 Fixed
2023-02-28 14:58:09 +00:00
Pavel Punegov 0609edb4b8 [K/N][test] Get rid of the Gradle warning in the old infra
This outputDirectory property was marked incorrectly as OutputDirectory.
It points to test build tasks output and should not be considered during
up-to-date checks.

Merge-request: KT-MR-9019
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2023-02-28 14:21:00 +00:00
Ilya Kirillov 4944b454c5 [Analysis API] optimize KotlinPackageProvider.getSubPackageFqNames
Previously, we queried heavy kotlin package provider two times which affected performance
Now it's being queries only a single time

Also, the commit introduces separation for KotlinPackageProvider between kotlin and platform-specific packages

^KTIJ-24640
2023-02-28 13:38:23 +00:00
Sergej Jaskiewicz c940eb25b0 [Test Data Helper Plugin] Update paths to JS output files
417fef0d58 updated the output paths,
but the plugin settings were not updated there.
2023-02-28 13:19:40 +00:00
Artem Kobzar deb6ca66ea [K/JS] Add undefined type to parameter with default argument that are placed before non-optional parameters
^KT-53180 Fixed
2023-02-28 11:53:28 +00:00
Kirill Rakhman fbc0796ed2 [FIR] Accept opt-in annotations on primary ctor params of properties
For backward compatibility with K1.

KT-56177
2023-02-28 10:19:20 +00:00
Kirill Rakhman cfc5bb74ef [Test] Fix FileNotFoundException in removeDirectiveFromFile
This happened when a FIR test didn't have a .fir.kt file.
2023-02-28 10:19:20 +00:00
Kirill Rakhman 59c61cdd07 [FIR Plugin prototype] Fix AllPropertiesConstructor test
^KT-56861 Fixed
2023-02-28 10:19:19 +00:00
Kirill Rakhman 2139914061 [FIR] Add diagnostic when annotation argument is resolved ambiguously
Annotation arguments that are resolved in COMPILER_REQUIRED_ANNOTATIONS
phase are resolved again in ANNOTATION_ARGUMENTS phase. If they resolve
to a different symbol, report an error.

KT-56177
2023-02-28 10:19:19 +00:00
Kirill Rakhman 9dda5e4fcd [Test] Remove redundant FIR_DISABLE_LAZY_RESOLVE_CHECKS directives
KT-56177
2023-02-28 10:19:18 +00:00
Kirill Rakhman c9d68f6d3e [FIR, Parcelize] Fix checkers after primary ctor annotation changes
KT-56177
2023-02-28 10:19:17 +00:00
Kirill Rakhman eee66ab43f [FIR] Remove duplicate annotations from primary ctor params/properties
If an annotation doesn't specify an explicit use-site target,
previously it was added to both, the primary constructor value parameter
and the property in the FIR. Then, in FIR2IR, only the "correct" one was
added to the IR. Move up the deduplication logic into the frontend.

^KT-56177 Fixed
2023-02-28 10:19:17 +00:00
Kirill Rakhman 9268fd0e87 [FIR] Call enum entries in deserialized annotations as property access
KT-56177
2023-02-28 10:19:15 +00:00
Kirill Rakhman e1c0d2d9c2 [Test] Remove wrong directive 2023-02-28 10:19:15 +00:00
Kirill Rakhman a0de481de6 [FIR] Format FirDeclarationsResolveTransformer 2023-02-28 10:19:14 +00:00
Mikhail Glukhikh c585790469 IR (test infrastructure): don't load function body in assertion 2023-02-28 10:07:29 +00:00
Mikhail Glukhikh 37838963c6 IR: extract AbstractIrLazyFunction and tryLoadIr 2023-02-28 10:07:28 +00:00
Mikhail Glukhikh f075c9d50b IR: extract & rename getTopLevelDeclaration() to IrLazyFunctionBase 2023-02-28 10:07:28 +00:00
pyos 7420008af9 FIR2IR: load property setter noinline/crossinline flags
#KT-56234 Fixed
2023-02-28 10:07:27 +00:00
Dmitriy Novozhilov 8ff4af034a [FIR] Don't drop directly inherited functions from origins for intersection overrides in intersection scope
```
open class Base<T> {
    fun foo(): T = ...
}

class Derived<T> : Base<T> {
    override fun foo(): T = ...
}
```

In intersection scope of type `Base<T> & Other<R>` we should create
  intersection override based on `Base.foo(): T` and `Derived.foo(): R`
  at the same time, despite the fact that `Derived.foo` actually directly
  overrides `Base.foo`

^KT-56722 Fixed
2023-02-28 09:17:41 +00:00
Dmitriy Novozhilov e0fa1e64b9 [FIR] Properly setup java parser version for CLI pipeline with light tree
^KT-56549 Fixed
2023-02-28 09:17:41 +00:00
Dmitriy Novozhilov f836d16dc6 [FIR] Don't generate synthetic declarations from java records from binary dependencies
^KT-56548 Fixed
2023-02-28 09:17:40 +00:00
Dmitriy Novozhilov 244dbb37cf [FIR] Properly set isOperator flag for java functions
^KT-56875 Fixed
2023-02-28 09:17:40 +00:00
Dmitriy Novozhilov df47581c5a [FIR] Consider call site in argument mapping handling for set operator call
^KT-56542 Fixed
^KT-56714 Fixed
2023-02-28 09:17:40 +00:00
Dmitriy Novozhilov cbc8b74e89 [FE 1.0] Don't check star projections in PrivateInlineFunctionsReturningAnonymousObjectsChecker
^KT-56692 Fixed
2023-02-28 09:17:39 +00:00
Dmitriy Novozhilov 2a022ca9e0 [FIR] Properly propagate deadness from try main block throw finally block
^KT-56476 Fixed
2023-02-28 09:17:39 +00:00
Ilya Chernikov cecf22e035 Fix application environment keepalive handling
The previous changes to the disposer registration changes introduced a
weird problem exposed in the Gradle (test?) environment, that caused
a performance regression - it seems that keep alive system property
in that setting was cleared at the time the disposer was called, causing
app env disposal when keeping it alive was expected.
This fix captures property value at the moment of disposer registration,
making it similar in that respect to the previous variant and avoiding
the performance degradation.
#KT-56992 fixed
2023-02-28 08:08:09 +00:00
Alexander.Likhachev 1af19e6903 [Gradle] Configure process resources task names from Java source sets
#KT-56645 Fixed
2023-02-27 22:46:28 +00:00
Alexander.Likhachev 11049c1ab6 [Gradle] Add test for KT-56645 2023-02-27 22:46:28 +00:00
Ilya Gorbunov d2dc23d8bb Introduce Path.createParentDirectories function #KT-53263 2023-02-27 20:36:21 +00:00
Artem Kobzar cf10bb8871 [K/JS] Fix problem with deployment of artifacts (temporary solution before the KT-MR-9000 will be merged and bootstrapped) 2023-02-27 19:52:17 +00:00
Artem Daugel-Dauge 5b841a3af6 [Gradle] Fix Gradle Native IT on x86 macos
This includes a workaround for a cocoapods bug which was triggered by deprecation
of AFNetworking and a fix of asserting on OS-specific command invocation.
2023-02-27 16:40:42 +00:00
Nikolay Lunyak 72823657c9 [FIR] Assume SafeCallsAreAlwaysNullable is always on 2023-02-27 15:00:30 +00:00