Jinseong Jeon
4a16027873
FIR IDE: find source of deserialized top-level properties
2021-11-12 12:11:06 +03:00
Jinseong Jeon
cf886c5975
FIR LL: fix searching logic for enum entry
...
KtEnumEntry, a subtype of KtClass, has been handled by
findNonLocalClass. Since KtEnumEntry doesn't have class id, that util
always throws an error while retrieving class id.
Instead, we should use containing class (i.e., enum class) id.
Also, once the enum class is resolved, we should search for matching
enum entry inside the enum class.
2021-11-12 12:11:06 +03:00
Jinseong Jeon
140b8d6ddf
FIR LL: remove redundant test data for library module resolve
...
There are in plugins/kotlin/fir-low-level-api-ide-impl in intellij repo.
2021-11-12 12:11:05 +03:00
Ilya Matveev
428a15397e
[K/N] Suppress warnings of dsymutil in runtime tests
2021-11-12 05:42:00 +03:00
Ilya Matveev
54cdf732b4
[K/N] Enable debug info for runtime tests
2021-11-12 05:42:00 +03:00
Ilya Goncharov
d6112224b4
[JS IR] Generate references from fake override to body in case of generic superclass
2021-11-11 15:12:34 +00:00
Pavel Punegov
475b3a452e
[K/N][test] Disable tests on wasm due to ^KT-48738
2021-11-11 13:34:25 +00:00
Pavel Punegov
83d31526cc
[K/N][build] Fix args in klib runner task
2021-11-11 12:16:27 +00:00
Pavel Punegov
2bb5a554a8
[K/N][build] Small fix to platformLibs build script
2021-11-11 12:16:27 +00:00
Pavel Punegov
197d55e045
[K/N][build] Add common sources setting to Konan plugin
...
Used for stdlib build
2021-11-11 12:16:26 +00:00
Pavel Punegov
e07fa31784
[K/N][build] Move KLibInstall to Konan gradle plugin
2021-11-11 12:16:26 +00:00
Pavel Punegov
151cb096ce
[K/N][test] Replace genKt39548 task with doBeforeBuild closure
2021-11-11 12:16:25 +00:00
Pavel Punegov
547501865c
[K/N][build] PlatformLibs project small refactorings
2021-11-11 12:16:25 +00:00
Pavel Punegov
04c6e64598
[K/N][build] KLibInstall task fix removing useless doFirst
2021-11-11 12:16:24 +00:00
Pavel Punegov
0c47ac3cd0
[K/N][build] Rewrite platforms libs to kts
2021-11-11 12:16:24 +00:00
Pavel Punegov
3abc587125
[K/N][build] KlibInstall minor fixes
2021-11-11 12:16:23 +00:00
Pavel Punegov
c1ad88f1a6
[K/N][build] Move stdlib bitcode copy to runtime
2021-11-11 12:16:23 +00:00
Pavel Punegov
eb5518d6d7
[K/N][build] Fixes to caching and stdlib build
2021-11-11 12:16:22 +00:00
Pavel Punegov
67eedbe03e
[K/N][build] Move stdlib caching to runtime project
2021-11-11 12:16:22 +00:00
Pavel Punegov
c9d203b01a
[K/N][build] stdlib cross-target build
...
Build stdlib only for host platform and copy to cross-targets just
changing the manifest
2021-11-11 12:16:21 +00:00
Pavel Punegov
e9b1f7cca1
[K/N][build] Move stdlib build to runtime project
...
Build stdlib with konan plugin in runtime project
2021-11-11 12:16:21 +00:00
Ilya Goncharov
c30292a472
[Gradle, JS] Close zip file after reading
2021-11-11 10:25:53 +00:00
Ilya Goncharov
4efde83772
[Gradle, JS] New rules for zipped klib in zip
2021-11-11 10:25:53 +00:00
Ilya Goncharov
3ef5e36425
[Gradle, JS] Use formal check of klibs in gradle plugin
2021-11-11 10:25:53 +00:00
Yahor Berdnikau
18ff64a28f
Move jvm toolchain tests under jvm platform test tag.
...
^KT-45745 In Progress
2021-11-11 10:46:35 +01:00
Dmitriy Dolovov
1e8dbd4846
[Native][tests] Add ExperimentalContracts OPT_IN directive for kt47300.kt
...
Without this directive the test can't be compiled by Kotlin/Native, because the box() function which is annotated with @ExperimentalContracts is called from the generated test runner source code that itself is not marked by this annotation.
2021-11-11 12:33:00 +03:00
Dmitriy Dolovov
e7caaa464e
[Test] Fix using classes as annotation parameters in generated classes
2021-11-11 12:32:53 +03:00
Dmitriy Dolovov
f3397dfeca
[Native][tests] Fix "outputChecker cannot be serialized" Gradle issue
2021-11-11 12:32:47 +03:00
Ilya Muradyan
57543f5b19
[scripting] Fix NPE in aether.kt
2021-11-11 11:27:07 +03:00
Alexander Udalov
27cfcb9b3d
IR: fix thisReceiver parameter type for function classes
...
Incorrect builder was used at line 269, which led to non-sensible type
in `IrClass.thisReceiver` for function types, such as
`SuspendFunction1<SuspendFunction1, SuspendFunction1>` in the linked
issue.
Avoid creating types manually completely to simplify this code and fix
the bug.
#KT-49168 Fixed
2021-11-10 21:58:41 +01:00
Igor Laevsky
5b9268a108
[Wasm] Publish kotlin-test-wasm to maven
2021-11-10 22:12:20 +03:00
Denis.Zharkov
6e15ee8fea
FIR: Refine callable reference resolution in assignment position
...
synthetic_select<() -> T>(::foo) form allows to select better candidate
than synthetic_select(::foo) with expect type `() -> T`
2021-11-10 22:00:01 +03:00
Denis.Zharkov
65d7da122f
FIR: Fix invalid INITIALIZER_TYPE_MISMATCH for suspend lambda
2021-11-10 22:00:01 +03:00
Denis.Zharkov
994040c91c
FIR: Support invoke convention on super-qualified calls
2021-11-10 22:00:00 +03:00
Ilya Kirillov
0c7728f64a
Analysis API: fix PsiType creation for type parameter type with flexible upper bound
2021-11-10 18:49:43 +01:00
Svyatoslav Kuzmich
03c352c11e
[Wasm] Lower complex external declarations
...
- Properties
- Member functions
- Object declarations
- Constructors
- Classes with instance checks
2021-11-10 19:48:11 +03:00
Svyatoslav Kuzmich
c0761bf34a
[Wasm] Support callable references to external functions
...
1. Move jsInteropFunctionsLowering after callable reference lowering,
so it can continue to deal with just functions and function calls.
2. Generate lowered closure class in JsInteropFunctionsLowering because
2021-11-10 19:48:10 +03:00
Dmitry Petrov
916379c0e7
JVM KT-49613 use adapter for indy reference to protected constructor
2021-11-10 19:37:27 +03:00
Dmitry Petrov
76bdf4ff1a
JVM KT-49548 extra test
2021-11-10 19:37:25 +03:00
Dmitry Petrov
9a4cff0dc7
JVM KT-49548 progression iterators can be tainted
2021-11-10 19:37:24 +03:00
Ivan Kochurkin
646d156bde
[FIR] Reuse calculated values and clean up code
2021-11-10 19:07:27 +03:00
Ivan Kochurkin
0dab39b6e3
[FIR] Get rid of unnecessary allocations
2021-11-10 19:07:27 +03:00
Ivan Kochurkin
c9ad2b3bf9
[FIR] Ignore visited super types during bypass in FirInconsistentTypeParameterHelpers
...
Get rid of potential exponential complexity
2021-11-10 19:07:26 +03:00
Ivan Kochurkin
6e57341a3d
[FIR] Remove not used FirNotASupertypeChecker
2021-11-10 19:07:26 +03:00
Ivan Kochurkin
a57c8ee9e8
[FIR] Remove not used transformAllStatementsExceptLast from FirExpressionUtil
2021-11-10 19:07:25 +03:00
Ivan Kochurkin
ee490128fc
[FIR] Optimize FirDeprecationChecker
2021-11-10 19:07:25 +03:00
Ivan Kochurkin
13865e52f8
[FIR] Optimize FirJvmDefaultChecker
2021-11-10 19:07:24 +03:00
Ivan Kochurkin
6fd4c67bbb
[FIR] Optimize FirInterfaceDefaultMethodCallChecker
...
Reduce calls of getClassLikeSymbolByClassId
2021-11-10 19:07:23 +03:00
Alexander Udalov
bb390dca16
Minor, improve kdoc for KValueParameter.type/varargElementType
...
Slightly related to e77f72071d .
2021-11-10 16:12:56 +01:00
Alexander Udalov
fbd20b6556
Remove unused JvmTypeAliasExtensionVisitor and JvmValueParameterExtensionVisitor
...
They were added in e4702bf438 and a08cf59017 but in fact they are not
needed on JVM until there are JVM-specific extensions in the metadata.
Moreover, there was a typo in JvmValueParameterExtensionVisitor's
superclass (see https://github.com/JetBrains/kotlin/pull/4613 ).
2021-11-10 16:12:56 +01:00