Jinseong Jeon
a58e0803fb
ULC: output update (annotation on enum entry)
...
Input has `// CHECK_BY_JAVA_FILE`
and thus ULC output as .java file should be updated too
when input was changed to add annotation on enum entry
(at commit c5916e1d )
Tested by UltraLightClassLoadingTestGenerated in IntelliJ
2022-10-02 13:41:12 +02:00
Jinseong Jeon
2fdedf8251
AA FIR: unwrap fake override constructor
2022-10-02 13:39:49 +02:00
Nikolay Lunyak
fcd3e4f4c5
[FIR JS] KT-51740: Alter positioning of NO_VALUE_FOR_PARAMETER
2022-09-30 21:39:20 +03:00
Paŭlo Ebermann
418c530820
docs: mod/rem: clarify who is dividend and divisor
2022-09-30 15:41:55 +03:00
Ilya Kirillov
5772230357
[Low Level FIR] fix memory leak via use-site use session
...
^KTIJ-22749
2022-09-30 12:19:51 +02:00
Ilya Kirillov
86670361a1
[Analysis] do not fail when reporting exception with invalid psi as attachment
2022-09-30 12:19:51 +02:00
Ilya Kirillov
4ae1cb74dd
[Analysis API FIR] fix constant evaluation for incomplete call when compiler produces IntegerLiteralType
...
^KTIJ-21531 fixed
2022-09-30 12:19:51 +02:00
Ilya Kirillov
b72dbb7819
[Analysis] fix invalid implementation of getKtModuleOfTypeSafe
2022-09-30 12:19:35 +02:00
Ilya Kirillov
913bfc0838
[Low Level FIR] fix one case in CME when traversing FIR tree
...
Before extra child nodes of classes were visited during declaration by ClassId search.
If some other thread was mutating this tree, CME could happen
this is a fix of one case from ^KTIJ-21791
2022-09-30 12:19:35 +02:00
Ilya Kirillov
fdf826208f
Fix FqName.startsWith for fqNames shorter when the segment
2022-09-30 12:19:35 +02:00
Ilya Kirillov
ae76ce666f
[Low Level FIR] optimize getting callables in LLFirProviderHelper
2022-09-30 12:19:35 +02:00
Ilya Kirillov
556b7894d5
[Low Level FIR] do not search for declarations from kotlin. package in source modules
2022-09-30 12:15:49 +02:00
Ilya Kirillov
a7408f32b0
[analysis] run decompiler-to-psi tests on TC
2022-09-30 12:15:49 +02:00
Ilya Kirillov
5a88f2088a
[decompiler stubs] fix CCE in tests
2022-09-30 12:15:49 +02:00
Ilya Kirillov
ed65f62e3d
[Low Level FIR] add more debug information to FirDeclarationForCompiledElementSearcher
2022-09-30 12:15:48 +02:00
Ilya Kirillov
cd5f6d1207
[decompiler stubs] fix missing expect modifier on declarations
2022-09-30 12:15:48 +02:00
konstantin.tskhovrebov
dffdc26208
Fix gradle configuration cache in KotlinNativeLinkArtifactTask.
2022-09-30 09:54:36 +00:00
konstantin.tskhovrebov
c83286ef7e
Set Xcode test device ID only if Xcode is available.
2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov
0ffb370579
Make Xcode utils public for gradle integration tests.
2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov
239a1a4bab
Make Xcode utils nullable for non Apple hosts.
2022-09-30 09:54:35 +00:00
konstantin.tskhovrebov
321e436132
Make KotlinNativeLinkArtifactTask configuration lazy with gradle properties.
...
It is needed for lazy configuration the 'embedBitcode' mode for example.
Because it requires Xcode invocation.
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov
7ca5750255
Make 'Framework.embedBitcodeMode' lazy provider.
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov
8c2b2eb278
Make 'KotlinNativeSimulatorTest.device' lazy property
2022-09-30 09:54:34 +00:00
konstantin.tskhovrebov
10947e2c45
Change a hardcoded Xcode test device to getting from the device list.
2022-09-30 09:54:33 +00:00
konstantin.tskhovrebov
afa8a577cc
[KT-54060] Disable bitcode embedding to frameworks for Xcode >= 14.
2022-09-30 09:54:33 +00:00
Pavel Kunyavskiy
ea3713f051
Fix building fake overrides for sam and function references
2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy
95eaf3d234
[K/N] Add lowered suspend function mangling to avoid clashes
2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy
2d4c94a115
[K/N] Add test for inter-module suspend function override
2022-09-30 08:48:59 +00:00
Pavel Kunyavskiy
132bb941e1
[K/N] Fix ObjCExport of coroutines for new lowerings
2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy
7e89d59b59
[K/N] Remove isSuspend hacks from codeGenerator and global optimizations
2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy
817dba8564
[K/N] Use suspend function desugaring lowerings.
2022-09-30 08:48:58 +00:00
Pavel Kunyavskiy
8886e1b8b4
Move Js suspend functions lowerings to common code
2022-09-30 08:48:57 +00:00
Ilya Goncharov
7d8636aac4
[JS] Keep interfaces
...
^KT-54173 fixed
2022-09-29 16:12:19 +00:00
Mikhail Glukhikh
41c9ffb060
Native: add three new modules to K2 build
2022-09-29 15:32:01 +00:00
Mikhail Glukhikh
a22d7aea25
Native: don't set allWarningsAsErrors = true in K2 mode
...
Related to KT-54123
2022-09-29 15:32:01 +00:00
Mikhail Glukhikh
e6804d2601
Native: drop duplicated function and object from IrUtils2.kt
...
Related to KT-54123
2022-09-29 15:32:00 +00:00
Vladimir Dolzhenko
34779029f3
Avoid recursive type refinement
...
Recursion happens in kotlinx.serialization project https://github.com/Kotlin/kotlinx.serialization/blob/5e8ccad1f70a9457e0ffe6ae6b10a0bd0eaaa618/formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonCustomSerializersTest.kt#L37
@Serializable
data class C(@Id(1) val a: Int = 31, @Id(2) val b: Int = 42) {
@Serializer(forClass = C::class)
companion object : KSerializer<C> {
override fun serialize(encoder: Encoder, value: C) {
//
}
}
}
#KT-53157
2022-09-29 15:02:55 +00:00
Ilya Goncharov
c726360ad2
Change policy with legacy compiler backend
...
[JS] Remove incremental js jps test
[JS] Remove test of maven js archetype
[JS] Fix another one test
[JS] Fix tests for jps
[JS] Try to fix maven test data
[JS] Fix test data
[JS] Fix test data for ant
[JS] Fix jsExtraHelp test
[JS] Fix test run from not-Gradle build tools
[JS] Set flag without compiler error
[JS] Disable warnings and errors in legacy compiler called from Gradle
[JS] Proofread messages
[JS] Not proofread messages
KT-42326
2022-09-29 13:56:30 +00:00
Alexander Likhachev
a3ad0a6e88
[Gradle, K/N] Fix deprecation message for endorsed libraries
...
#KT-54177
2022-09-29 13:37:11 +02:00
Mikhail Glukhikh
85965d74f6
K2: fix implicit body resolve in case delegated property is on the path
...
#KT-54212 Fixed
2022-09-29 10:55:14 +02:00
Mikhail Glukhikh
75a29434bd
K2: add reproducer of KT-54212
2022-09-29 10:55:04 +02:00
Mikhail Glukhikh
f68f06a93f
FIR visibility checker: remove redundant session from isVisibleForOverriding
2022-09-29 08:34:14 +00:00
Mikhail Glukhikh
de43877161
K2: add more tests about false overrides
...
Related to KT-53197
2022-09-29 08:34:13 +00:00
Mikhail Glukhikh
bcd7a531b9
K2: filter invisible overridden in status resolver & FIR2IR
...
Related to KT-53197
2022-09-29 08:34:13 +00:00
pyos
3a5d75fd22
K2: introduce platform-specific visibility checks for overrides + tests
...
Related to KT-53197
2022-09-29 08:34:13 +00:00
Mikhail Glukhikh
1ad2ec302b
FirOverrideChecker: don't report VIRTUAL_MEMBER_HIDDEN with invisible
...
#KT-53197 Fixed
2022-09-29 08:34:12 +00:00
Mikhail Glukhikh
8281c166b1
K2 checkers: extract retrieveDirectOverriddenOf to FirTypeScope.kt
2022-09-29 08:34:11 +00:00
Mikhail Glukhikh
9f7c465eb0
FE: add test for KT-53197
2022-09-29 08:34:11 +00:00
konstantin.tskhovrebov
5ca9d3d706
[KT-53191] Fix header dirs inputs for CInteropProcess task.
2022-09-29 07:19:45 +00:00
Pavel Mikhailovskii
903a5d69a4
KT-53146 Don't coerce Nothing? returned from "catch" clauses
...
At first, I tried to modify the logic in PromisedValue.materializeAt
to get rid of all casts from Nothing? to other types, but that broke
a number of tests containing casts of java.lang.Void to other types,
so I decided to fix only this particular case with try...catch
(for some reason, here we get a null of type java.lang.Object).
2022-09-29 06:15:39 +00:00