Ivan Kochurkin
879deb90fc
[FIR] Report friendly errors for type aliases from stdlib if -no-jdk option is set
...
^KT-54531 Fixed
2023-03-21 20:24:56 +00:00
Ivan Kylchik
6bce668cac
Introduce language version 2.1
2023-03-21 20:02:42 +00:00
Artem Kobzar
4da81b2b6e
[K/JS] Remove an internal system property and replace it with the new compiler flag
2023-03-17 12:38:34 +00:00
Denis.Zharkov
bcbe26287a
Adjust CLI tests for JSR305 annotations being extracted
...
See the previous commits
2023-03-16 14:43:04 +00:00
Ivan Kylchik
1c210822ea
Add new configuration key that can enable IR inlining for JVM
2023-03-14 20:47:41 +00:00
Ivan Kochurkin
d829f8b684
[FIR] Drop using of JavaSymbolProvider and OptionalAnnotationClassesProvider in FirCommonSessionFactory
...
Drop using of all Java stuff inside FirCommonSessionFactory
^KT-56063
2023-03-03 20:58:24 +00:00
Sebastian Sellmair
b90207edb9
[Gradle] Rename -Xdepends-on to -Xfragment-refines and use ':' for -Xfragment-sources instead of ';'
...
^KT-56210 Verification Pending
2023-03-01 16:30:44 +00:00
Sebastian Sellmair
21bf497830
[CLI] Replace K2 -Xmodule by -Xfragments and -Xfragment-sources
...
KT-56210
2023-03-01 16:30: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
94faa759cb
[CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
...
^KT-56209
2023-02-17 14:09:30 +00:00
Dmitriy Novozhilov
79e4df72bf
[CLI] Introduce utilities for creating FirSession hierarchy in CLI for all platforms
...
Also support session creation and compilation for HMPP projects
^KT-56209 Fixed
2023-02-17 11:08:51 +00:00
Dmitriy Novozhilov
77caa31640
[CLI] Add CLI arguments to pass HMPP module structure to the compiler
...
^KT-56209
2023-02-17 11:08:50 +00:00
Ilya Chernikov
27db8ce1bb
FIR LT: extract syntax diagnostic info from error element
...
#KT-56701 fixed
2023-02-16 10:21:04 +00:00
Ilya Chernikov
e39eb62e6e
FIR LT: Fix diagnostic location calculation on the last line
...
it was calculated incorrectly on the last line that do not end
with EOL.
#KT-56649 fixed
2023-02-16 10:21:03 +00:00
Kirill Rakhman
22fd7921fe
[FIR] Introduce MetadataBasedAnnotationDeserializer for compiling common
...
^KT-56361 Fixed
2023-02-08 13:32:33 +00:00
Ivan Kochurkin
f3e3cc0037
[FIR] Implement support of MPP in JS CLI
2023-02-07 14:16:29 +00:00
Kirill Rakhman
1eb18f13bd
FIR: Fix test data after making LHS of assignment an expression
...
KT-54648
2023-01-31 08:39:43 +00:00
Dmitriy Novozhilov
88efa6bfb6
Update tests after switching to LV 1.9
2023-01-30 09:29:57 +00:00
Ilya Goncharov
1150ec6882
[JS] Implementation dependencies for JS klibs
...
^KT-56158 fixed
2023-01-27 13:31:59 +00:00
Stanislav Ruban
7e0f69b8de
Introduce tweaks and wording changes related to LV2.0-specific CLI warnings
...
Fix merge conflict related to renaming of one of the tests
Regenerate tests affected by previous commit
Fix merge conflict related to renaming of one of the tests
Improve wording of the `-Xuse-k2 -language-version 1.*` CLI warning
Improve wording of LV2.0-specific CLI warnings some more
Fix output of one of the tests for -Xuse-k2 deprecation
Tweak wording of LV2.0-specific CLI warnings
* make it clear in every warning that -Xuse-k2 is deprecated
* add a reminder to remove -Xuse-k2 for `-Xuse-k2 -language-version 2.0`
* add both possibly wanted fixes for `-Xuse-k2 -language-version 1.*`
Remove deprecated -Xuse-k2 flag from one of the tests
Merge-request: KT-MR-8449
Merged-by: Stanislav Ruban <Stanislav.Ruban@jetbrains.com >
2023-01-26 11:55:03 +00:00
Ivan Kochurkin
44b7859356
[FIR] Implement FIR metadata serialization
...
Add FirMetadataSerializer
Add CLI metadata tests on FIR
2023-01-24 15:27:14 +00:00
Ivan Kochurkin
46b9e15101
[FIR] Rename firMultiplatformCompilationWithLightTreeWithoutErrors
...
to firMultiplatformCompilationWithPsiWithoutErrors
Use `-Xuse-fir-lt=false` since now lt is default
2023-01-24 15:27:13 +00:00
Mikhail Glukhikh
565adf3075
K1: don't filter Enum.entries in tower to report error later
...
After this commit we:
- preserve Enum.entries synthetic property in tower even in case the bound feature is OFF
- report an error on Enum.entries call in specific checker if the feature is OFF
- give this synthetic property lower priority, no matter feature ON or OFF
#KT-55251 Fixed
2023-01-24 12:45:59 +00:00
Ilya Chernikov
7ec72b568d
Fix assertion in light tree diagnostic reporter
...
happened then two diagnostics are reported on the same element.
#KT-55924 fixed
2023-01-20 17:57:15 +00:00
Mikhail Glukhikh
c8db20bd0b
Compiler: restore an opportunity to switch light tree mode OFF
...
#KT-55996 Fixed
2023-01-18 14:01:22 +00:00
Artem Kobzar
71486a321c
[K/JS] Add support of compilation with ES-classes
2023-01-17 18:14:17 +00:00
Mikhail Glukhikh
7a61578e08
Language version 2.0: fix compiler messages and minor details
2023-01-16 18:16:48 +01:00
Mikhail Glukhikh
cbedbda527
Enhance API/messages around BinaryVersion / JvmMetadataVersion
2023-01-16 18:16:07 +01:00
Mikhail Glukhikh
17c434002a
Move EnableDfaWarningsInK2 into experimental section until K2/IDE EAP
...
This commit means that we will not see K2 DFA warnings until
we explicitly enable them (probably in 1.9.20 or 2.0).
We are going to enable DFA warnings at the moment when
K2/IDE is accessible for external users
2023-01-16 18:12:55 +01:00
Mikhail Glukhikh
3dc05f4ec5
Introduce language version 2.0 and associate K2 compiler with it
2023-01-16 18:12:55 +01:00
Ivan Kochurkin
8936220876
[IR] Implement IR actualizer and use it for K2 test and CLI scenario
...
Implement calculateExpectActualMap for Fir2IrComponents
^KT-51753 Fixed
2023-01-13 12:55:58 +00:00
Alexander Udalov
3f2b51151f
Remove -Xexclude-from-dumping
...
Apparently the underlying logic was removed in b07690fccf and no one
noticed.
2023-01-02 15:26:07 +00:00
Artem Kobzar
fbf06b5495
[K/JS] Add a secret system property to enable the old Kotlin/JS compiler only for tests until it will be removed from the sources
2022-12-29 13:32:01 +00:00
Igor Yakovlev
71afbb36f5
[Wasm] Introduce Xwasm-generate-wat compiler flag (disabled by default)
2022-12-29 11:57:48 +00:00
Kevin Bourrillion
b69b7ab22d
Make the jspecify test accept either (old & new) annotations.
2022-12-27 11:10:58 +00:00
Evgeniy.Zhelenskiy
25db5bf6e1
[IR] Enable -Xvalue-classes flag
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-12-22 12:24:16 +00:00
Dmitriy Novozhilov
3cffb33ab7
[FE] Drop ApproximateIntegerLiteralTypesInReceiverPosition language feature
...
This feature is not needed because it is unconditionally disabled for K1
(because of not fully correct implementation) and unconditionally enabled
in K2 (K2 does not support old behavior)
^KT-38895
2022-12-09 15:10:02 +00:00
Alexander Korepanov
9dab8637a8
[JS Gradle] Pass incremental cache root dir to K2JS compiler
2022-11-28 20:46:40 +00:00
Vladislav Grechko
cd6e865fb3
Improve support of 'lateinit' modifier
...
- Allow 'lateinit' for inline classes which underlying type
is suitable for 'lateinit'
- K2: report all problems related to 'lateinit' modifier
^KT-55052: Fixed
2022-11-24 19:47:21 +00:00
Artem Kobzar
c1c5933c72
[K/JS] Deprecate old JS-compiler
2022-11-23 11:22:29 +00:00
Dmitriy Novozhilov
0e84bf2053
[FIR] Don't report ARGUMENT_TYPE_MISMATCH on error types
2022-11-22 15:46:19 +00:00
Ilya Chernikov
7a57e8d903
FIR JS: Add K2 support to K2JsIrCompiler
2022-11-12 16:28:24 +01:00
Xin Wang
7b3ce35613
JVM_IR: Prevent writing output after an error is reported
...
#KT-53825 Fixed
2022-11-09 23:14:11 +01:00
Artem Kobzar
7b9aed25da
[K/JS] Add the ability to turn off polyfills generating
2022-10-19 12:52:23 +00:00
Ilya Goncharov
b76fdb2efa
[JS IR] Fix js help
2022-10-18 09:59:17 +00:00
Ilya Goncharov
ca8b415726
[JS IR] Change names of ir-only arguments
2022-10-18 09:59:17 +00:00
Ilya Goncharov
ec50036884
[JS IR] Change module name compiler flags
2022-10-18 09:59:16 +00:00
Mikhail Glukhikh
185e74fd26
Minor: add Suppress usage to CONFLICTING_JVM_DECLARATIONS test
...
Related to KT-54366
2022-10-17 12:46:23 +00:00
Xin Wang
69a4de0461
K2 JVM: Take JVM declarations conflicting error back
...
Since SimpleDiagnosticsCollectorWithSuppress have been replaced by
PendingDiagnosticsCollectorWithSuppress after commit 9add6f3d55 ,
diagnostics need to be committed now.
#KT-54366 Fixed
2022-10-17 12:46:23 +00:00
Artem Kobzar
9a4a30c9bb
[K/JS] Add flag for disabling signature uniqueness checks at klib generating phase
2022-10-14 13:08:58 +00:00