Commit Graph

95476 Commits

Author SHA1 Message Date
Ilya Goncharov ca8b415726 [JS IR] Change names of ir-only arguments 2022-10-18 09:59:17 +00:00
Ilya Goncharov 71011aeaef [JS IR] User's module name is with more priority than default one 2022-10-18 09:59:16 +00:00
Ilya Goncharov ec50036884 [JS IR] Change module name compiler flags 2022-10-18 09:59:16 +00:00
Yahor Berdnikau a32b2c4a3f Fix wrong context of LanguageSettings to compiler options sync
Add Native target configuration to always iterate on all native target
compilations in afterEvaluate and trigger sync of compilation
LanguageSettings to compiler options. This way afterEvaluate will be
called in the correct context.

^KT-54439 Fixed
2022-10-18 08:58:29 +00:00
Alexander Korepanov 901ebcc043 [JS IR] Add JS IR IC tests about companion properties modifications
^KT-54479 Test
2022-10-17 18:59:40 +00:00
Artem Kobzar cd87830ffa [K/JS] Generate the similar variant of newlines on different OS in the @file:JsExport tests generating task 2022-10-17 16:48:40 +00:00
Leonid Startsev f1b1837f40 Rework SerialInfo$Impl annotation implementation to be available in FIR:
- IR plugin does not use it anymore,
regular annotation instantiation feature is used
(insertion of IrConstructorCall(annotationCtorSymbol)).

- IR plugin still generates `SerialInfo$Impl` class to be compatible
with previously compiled code & libraries.

- Custom implementation over descriptors in IR plugin is removed;
plugin now delegates to the existing lowering with some tweaks.

- $Impl descriptor is removed from FE 1.0 because it is no longer needed
for IR plugin; it shouldn't be exposed to users so FIR doesn't need it either.

- Since language lowering is now used, it is possible to correctly instantiate
SerialInfo annotations with default values even if they are from other modules
and even if they were not processed by the plugin.

#KT-48733 Fixed
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1574
2022-10-17 16:10:42 +00:00
Dmitrii Gridin 3c43416042 [AA] add more tests on property accessors
^KT-54311
2022-10-17 14:59:52 +00:00
Dmitrii Gridin 6bf1cefba6 [AA] do not render redundant declarations for AbstractSymbolByPsiTest
^KT-54311
2022-10-17 14:59:52 +00:00
Dmitrii Gridin a38e1747c3 [AA] split some SymbolByPsi tests on SingleSymbolByPsi to avoid redundant declarations
^KT-54311
2022-10-17 14:59:52 +00:00
Dmitrii Gridin 804a92546c [AA] AbstractSingleSymbolByPsi: search elements by caret instead of expression
^KT-54311
2022-10-17 14:59:51 +00:00
Dmitrii Gridin 588c0bbb03 [AA] KtPsiBasedSymbolPointer: drop redundant comments
^KT-54311
2022-10-17 14:59:51 +00:00
Dmitrii Gridin f7bd79a151 [AA K2] KtFirSymbolInfoProvider: add restriction on fir under fir symbol
^KT-54311
^KT-54360
2022-10-17 14:59:51 +00:00
Dmitrii Gridin 3c9fb5db27 [AA] make consistent hasStableParameterNames for setter and getter
^KT-54311
2022-10-17 14:59:50 +00:00
Dmitrii Gridin ba7d340090 [AA] more tests on receiver annotations
^KT-54311
^KT-54385
^KT-54417
2022-10-17 14:59:50 +00:00
Dmitrii Gridin b8a64d20ac [AA] restore Fe10IdeNormalAnalysisSourceModuleSymbolByReferenceTestGenerated
^KT-54311
^KT-54385
2022-10-17 14:59:50 +00:00
Dmitrii Gridin 782ff3e4ea [K2 AA] add more tests on property annotations
^KT-54311
^KT-54385
2022-10-17 14:59:49 +00:00
Dmitrii Gridin c6742aa4c7 [K2 AA] DebugSymbolRenderer: render property symbol recursively
^KT-54311
2022-10-17 14:59:49 +00:00
Dmitrii Gridin a8ded36ac4 [K2 AA] FirAnnotationValueConverter: cleanup code
^KT-54311
2022-10-17 14:59:49 +00:00
Dmitrii Gridin b15cf05e59 [K2 AA] add hack to fix symbolKind for local class
^KT-54311
^KT-54390
2022-10-17 14:59:48 +00:00
Dmitrii Gridin f7568cef5c [K2 AA] fix symbolKind for nested local classes
^KT-54311
2022-10-17 14:59:48 +00:00
Dmitrii Gridin 027899a22a [K2 AA] add missing receiverType for getter and setter
^KT-54311
2022-10-17 14:59:48 +00:00
Dmitrii Gridin afe7605649 [K1 AA] fix default getter and setter
^KT-54311
2022-10-17 14:59:47 +00:00
Dmitrii Gridin 4ee5bf178c [AA] DebugSymbolRenderer: render symbols recursively
^KT-54311
2022-10-17 14:59:47 +00:00
Dmitrii Gridin 728e1941ac [K2] FirIdeRenderer: fix render for setter parameter annotations
^KT-54311
2022-10-17 14:59:47 +00:00
Dmitrii Gridin 2d240d2925 [AA] add test on property annotations
^KT-54311
2022-10-17 14:59:46 +00:00
Dmitrii Gridin 01d5a5bc5b [AA] support @JvmField in KtSymbolInfoProvider
^KT-54311
^KT-54360 Fixed
2022-10-17 14:59:46 +00:00
Dmitrii Gridin f4ae696aee [AA] more tests for file scope
^KT-54311
2022-10-17 14:59:46 +00:00
Dmitrii Gridin 317408e780 [AA] update tests on delegated property
^KT-54311
2022-10-17 14:59:45 +00:00
Dmitrii Gridin 9c30411bb3 [AA] create psi-based pointer only for KtSymbolOrigin.SOURCE
^KT-54311
2022-10-17 14:59:45 +00:00
Dmitrii Gridin 119f6858cd [AA] AbstractSymbolTest: add assertion on redundant directive
^KT-54311
2022-10-17 14:59:45 +00:00
Dmitrii Gridin 3c2e0cb3b9 [K2] KtFirClassInitializerSymbol: implement psi-based pointer
^KT-54311
2022-10-17 14:59:44 +00:00
Dmitrii Gridin a64c511e52 [FIR] FirManglerUtil: cleanup code
^KT-54311
2022-10-17 14:59:44 +00:00
Dmitrii Gridin 07a475969c [FIR] RedundantVisibilityModifierSyntaxChecker: cleanup code
^KT-54311
2022-10-17 14:59:44 +00:00
Dmitrii Gridin 5d2869b099 [K2] KtFirPropertySetterSymbol: cleanup code
^KT-54311
2022-10-17 14:59:43 +00:00
Dmitrii Gridin 2256cd83ce [K2] KtFirPropertyGetterSymbol: cleanup code
^KT-54311
2022-10-17 14:59:43 +00:00
Dmitrii Gridin 327ceceaec [FIR] FirJvmMangleComputer: cleanup code
^KT-54311
2022-10-17 14:59:43 +00:00
Dmitrii Gridin 5f9076fb7a [FIR] ConversionUtils: cleanup code
^KT-54311
2022-10-17 14:59:42 +00:00
Dmitrii Gridin a0b814a1b6 [FIR] make FirPropertyAccessor#propertySymbol non-nullable
we need it to restore property accessor by property

^KT-54311
2022-10-17 14:59:42 +00:00
Sergey Bogolepov c6bbce986d [K/N] Fix KT-54498
Forward users to kotlinlang.org instead of new_mm.md because the latter
is obsolete now.
2022-10-17 14:36:59 +00:00
vladislav.grechko b5a23e3ef7 Minor: improve usability of tests for custom equals in inline classes 2022-10-17 14:11:01 +00:00
vladislav.grechko cc1b4243dd Fix exception on 'equals()' returning 'Nothing' in inline class
^KT-54401: Fixed
2022-10-17 14:11:00 +00:00
Ilya Goncharov 4c6b433496 [Gradle] Dry run with wasm flags only for wasm targets
^KT-54421 fixed
2022-10-17 13:03:41 +00:00
Pavel Punegov bc33f84678 [K/N] Choose watchOS simulator depending on Xcode version
Merge-request: KT-MR-7410
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
2022-10-17 12:52:52 +00:00
Mikhail Glukhikh 18ce3fc020 Fix pure-FIR diagnostics with BE tests 2022-10-17 12:46:25 +00:00
Mikhail Glukhikh 69c883ecee FIR: use FIR_IDENTICAL instead of FIR_IGNORE for diags with BE tests 2022-10-17 12:46:25 +00:00
Mikhail Glukhikh d00af1c932 FE: drop DiagnosticReporter.context.report & rename reportAndCommit 2022-10-17 12:46:24 +00:00
Mikhail Glukhikh 1826d9b332 K2: add & fix tests for JVM BE diagnostics 2022-10-17 12:46:24 +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