Ivan Kylchik
6dccb60afe
[IR] Add new module to keep all IR inline related code
...
#KT-64806
2024-02-19 20:14:16 +00:00
Ivan Kochurkin
04ead1716a
[FIR] Prohibit constructor and supertype on typealias with type projection
...
Introduce `CONSTRUCTOR_OR_SUPERTYPE_ON_TYPEALIAS_WITH_TYPE_PROJECTION`
^KT-60305 Fixed
2024-02-19 19:27:28 +00:00
Vladimir Sukharev
2b2c685827
[K/N][Tests] Migrate dylib-interop-exe tests
...
^KT-61259
2024-02-19 18:44:08 +00:00
Dmitriy Novozhilov
83d851dd61
[Build] Update verification-metadata.xml
2024-02-19 18:40:03 +00:00
Dmitriy Novozhilov
876ab2c020
Advance bootstrap to 2.0.0-dev-15455
2024-02-19 18:40:03 +00:00
vladislav.grechko
d753a22fc6
[FIR] Handle expect declarations in JVM backend
...
1. Do not generate bytecode for expect declarations
2. Serialize @OptionalExpectation annotations into .kotlin_module file
^KT-62931: Fixed
2024-02-19 18:17:37 +00:00
vladislav.grechko
b74501ee93
Compare module metadata in JVM ABI consistency tests
2024-02-19 18:17:37 +00:00
Vladimir Sukharev
ba217ad688
[K/N][Tests] Fix passing of -Xbinary options under MinGW
...
^KT-61259
2024-02-19 17:42:34 +00:00
Anna Kozlova
a0fef89423
[AA] take resolved type of FirThisReceiverExpression
...
...when computing receiver type for double colon expression
^KT-65914 fixed
2024-02-19 16:25:21 +00:00
Ilya Goncharov
50a0a1ef0a
Add binaryen to verification-metadata
2024-02-19 15:28:27 +00:00
Ilya Goncharov
d86b26be15
Add binaryen to resolve dependencies
2024-02-19 15:28:27 +00:00
Evgeniy.Zhelenskiy
782e35dc8d
[K2, JVM, IR] Add tests for clashing inner classes names
...
#KT-65586 #KT-65439
2024-02-19 15:20:57 +00:00
Sebastian Sellmair
98eca9058b
[ObjCExport][Minor] Add breadcrumb for KT-65891
2024-02-19 14:24:37 +00:00
Sebastian Sellmair
d0e67ff336
[ObjCExport] Restructure ObjC export symbol queue to replicate order of K1
...
The previous implementation used a two-stage process:
1) Processing of declared symbols
2) Analysis and processing of referenced dependency symbols
However, to replicate the exact same order as in K1
those two steps need to be done together.
^KT-64953 Fixed
2024-02-19 14:24:37 +00:00
Sebastian Sellmair
a2d76d739c
[ObjCExport] Support translation of enum classes
...
^KT-64953 Fixed
2024-02-19 14:24:37 +00:00
Dmitriy Novozhilov
2fb6815d7f
[Test] Cleanup AbstractFirScriptCodegenTest
2024-02-19 13:59:48 +00:00
Dmitriy Novozhilov
d1e7b9b4cf
[Test] Add Fir Identical checkers for signature dump handler
2024-02-19 13:59:48 +00:00
Dmitriy Novozhilov
e3dc0f0fa3
[Test] Register some identical checkers for specific handlers
...
- `FirIrDumpIdenticalChecker` for
- `IrTextDumpHandler`
- `IrPrettyKotlinDumpHandler`
- `FirIrSourceRangesIdenticalChecker` for
- `IrSourceRangesDumpHandler`
- `FirIdenticalChecker` for
- `FirDiagnosticsHandler`
2024-02-19 13:59:48 +00:00
Dmitriy Novozhilov
ad27d04e68
[Test] Add an ability for AnalysisHandler automatically register AfterAnalysisCheckers
...
This is needed for cases like dump handlers to register corresponding
checkers, which compares identity of dumps for different configurations,
like `IrTextDumpHandler` and `FirIrDumpIdenticalChecker`
2024-02-19 13:59:48 +00:00
Alexander Shabalin
60bf15d654
[K/N][tests] all users of nativeTest() require executors
2024-02-19 13:53:05 +00:00
Vladimir Dolzhenko
60b4ce2c36
Fix flakiness of createByPattern results
...
Fix the order of pointers and place logical operators first
#KTIJ-28165 Fixed
Merge-request: KT-MR-14447
Merged-by: Vladimir Dolzhenko <Vladimir.Dolzhenko@jetbrains.com >
2024-02-19 12:16:09 +00:00
Anton Bannykh
302e38dd18
JS: enable test after bootstrap
...
Check that a custom Promise declaration is supported for the @AfterTest
annotation functionality in the kotlin.test library
This is a part of the fix for KT-63359
Merge-request: KT-MR-14333
Merged-by: Anton Bannykh <Anton.Bannykh@jetbrains.com >
2024-02-19 11:56:18 +00:00
Alexander Udalov
90ff8f0e64
JVM: support -Xjdk-release=7/1.7
...
#KT-59098 Fixed
2024-02-19 11:44:58 +00:00
Alexander Udalov
12f393791b
JVM: allow -jvm-target 1.8 with -Xjdk-release=1.6
...
#KT-59098
2024-02-19 11:44:58 +00:00
Alexander Udalov
1bc08fc5b8
JVM: report error on -Xjdk-release=6 without -jvm-target
...
#KT-59098
2024-02-19 11:44:58 +00:00
Alexander Udalov
cdcb65c749
Tests: minor, slightly move JDK path substitution logic
...
It will be used in other CLI tests in subsequent commits.
2024-02-19 11:44:58 +00:00
Andrey Yastrebov
60071cbb54
KT-65740 Create swift-export-embeddable module
2024-02-19 10:55:55 +00:00
Anton Lakotka
bd84f93333
[Gradle, Test] makeSnapshotTo should fail when called in TC env
...
Developers (me) often forget to remove calls to this debugging
utility. Usually this changes is visible during Code Review but we
shouldn't rely on a sharp eye of a human. It is better to automatically
check it during remote run execution.
2024-02-19 10:42:46 +00:00
Anton Lakotka
cd8843289b
[Gradle, Test] Make utility isTeamCityRun as top-level function
2024-02-19 10:42:46 +00:00
Artem Kobzar
0d2c68664d
[JS Plain Objects] Add README to the compiler plugin
2024-02-19 10:32:16 +00:00
Ilya Goncharov
abb5f55087
[Wasm] Use static import for wasm imports
...
^KT-65777 fixed
2024-02-19 10:01:10 +00:00
Dmitrii Gridin
68e5fc7344
[LL FIR] LLFirLazyResolver: drop LLFirLockProvider parameter
...
It can be inferred from `LLFirResolveTarget` inside
`LLFirTargetResolver`
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
efeffb45b7
[LL FIR] LLFirLazyResolver: drop ScopeSession parameter
...
It can be inferred from `LLFirResolveTarget` inside
`LLFirTargetResolver`
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
7d672cd474
[LL FIR] drop ScopeSession parameter from LLFirModuleLazyDeclarationResolver
...
This parameter was required for on-air analysis
to avoid garbage in the original scope session.
Now we can drop it, and it will be less error-prone
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
80b698ce32
[FIR] drop obsolete FirResolveContextCollector
...
This interface is unused
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
2e17d8d524
[LL FIR] FileStructureElementDiagnosticRetriever: deduplicate code
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
3f31bdb877
[LL FIR] merge DeclarationBaseStructureElement into FileStructureElement
...
To simplify the implementation
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
a9f7c153d2
[LL FIR] rename LLFirResolveMultiDesignationCollector to LLFirResolveDesignationCollector
...
As it is not "multi" after 77c850f0d0
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
0ecb174720
[LL FIR] LLFirLazyResolver: deduplicate code
2024-02-19 09:41:22 +00:00
Dmitrii Gridin
84f3cc9f9c
[Analysis API] drop obsolete code
2024-02-19 09:38:18 +00:00
Dmitriy Dolovov
1c3633c9f2
[Native][tests] Use new KLIB tool entry point for running tests
...
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
215303606b
[KLIB tool] Entry point for tests: org.jetbrains.kotlin.cli.klib.Main.exec
...
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
16a27c2e05
[KLIB tool] Split KlibToolCommand into multiple individual commands
...
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
358ad272f4
[KLIB tool] Extract class KlibToolCommand from main.kt
...
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
9878c1fa16
[KLIB tool] Introduce KlibToolOutput for capturing stdout and errors/warnings
...
With `KlibToolOutput` it's possible to forward the output of each
KLIB tool's command to either system stdout/stderr streams or to
some buffers which then can be read by tests.
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
5b7c11ae39
[KLIB tool] Introduce a '-test-mode' CLI option
...
This is an option that allows running the commands that support it
in a special "test mode". The "test mode" means (but not limited to)
that a command may, for example, sort the output which is unsorted
by default, and this way guarantee stable output. This is essentially
helpful for tests, which rely on the command output.
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
82115c1f26
[KLIB tool] Drop unused blind flag in "remove" command
...
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
77b574bd0d
[KLIB tool] Rename class Library -> class KlibToolCommand
...
Also, make it use `KlibToolArguments` instead of separate isolated
arguments passed via constructor or via individual command calls.
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
7aa106c3a0
[KLIB tool] Extract self-sufficient classes from main.kt to separate files
...
Classes extracted:
- KlibToolArguments
- KlibToolArgumentsParser
- KlibToolLogger
- KlibToolIrLinker
^KT-62340
2024-02-19 09:36:10 +00:00
Dmitriy Dolovov
4fe8885376
[KLIB tool] Split KlibToolArguments to arguments & arguments parser
...
^KT-62340
2024-02-19 09:36:10 +00:00