Steven Schäfer
984e912f8d
JVM IR: Do not unbox Results in suspend lambda invoke methods (KT-46813)
2021-05-20 14:40:00 +02:00
Dmitriy Novozhilov
ff3f3d2f9b
[FIR] Properly setup search scope for IC symbol provider
2021-05-20 14:21:49 +03:00
Dmitriy Novozhilov
6e4cc49f1d
[FIR] Cleanup IC provider creation in FirSessionFactory
2021-05-20 14:21:47 +03:00
Dmitriy Novozhilov
6d38a236c1
[FIR] Extract FIR related part of KotlinToJVMBytecodeCompiler to separate file
2021-05-20 14:21:46 +03:00
Jinseong Jeon
f0f1e2d945
FIR checker: report CAPTURED_VAL_INITIALIZATION
2021-05-20 13:59:13 +03:00
Andrey Zinovyev
d38effcbbe
Use camel-case in FirFunctionCallOrigin
...
Also componentCall is operator call
2021-05-20 13:46:35 +03:00
Andrey Zinovyev
419aa65381
[FIR] Fix more tests because of modifier usage in resolution
2021-05-20 13:46:34 +03:00
Andrey Zinovyev
07a8ae7e71
[FIR] Mark more calls origin as OPERATOR
2021-05-20 13:46:32 +03:00
Andrey Zinovyev
0a45b3a50b
[FIR] Set Function call origin to assign operators' functions
2021-05-20 13:46:31 +03:00
Andrey Zinovyev
cd22255ab7
[FIR] Set Function call origin in light tree too
...
Plus actualize some tests
2021-05-20 13:46:30 +03:00
Andrey Zinovyev
e021e25d6c
[FIR] Resolve operator calls to operator functions only
2021-05-20 13:46:29 +03:00
Andrey Zinovyev
b1c8669b43
[FIR] Resolve infix calls to infix functions only
...
Implements INFIX_MODIFIER_REQUIRED diagnostics
2021-05-20 13:46:27 +03:00
Hung Nguyen
df14deb5a0
Organize integration tests for incremental Kotlin compile
...
Refactor common code into new abstract class
IncrementalCompilationBaseIT to make the code cleaner and easier to
evolve.
Also add a few missing key scenarios for ABI and non-ABI changes in
Kotlin files, and make it consistent with the test for changes in Java
files.
Bug: KT-45777
Test: Updating them
2021-05-20 12:59:07 +03:00
Mikhail Glukhikh
f3c9bd16ee
Fix FIR IDE overrideImplement/androidxNotNull test
2021-05-20 12:22:23 +03:00
Mikhail Glukhikh
eac6da62d6
Fix FIR IDE highlighting tests
2021-05-20 12:22:22 +03:00
Mikhail Glukhikh
6dd41b617a
FIR: position INAPPLICABLE_FILE_TARGET on file use-site (when possible)
2021-05-20 12:22:22 +03:00
Mikhail Glukhikh
6572010eed
Introduce use-site annotation target checks for FIR
2021-05-20 12:22:22 +03:00
Mikhail Glukhikh
9a13ec9b76
FIR: report WRONG_ANNOTATION_TARGET on types
2021-05-20 12:22:22 +03:00
Mikhail Glukhikh
2a33a6927c
FIR: report WRONG_ANNOTATION_TARGET(_WITH_USE_SITE_TARGET) on declarations
2021-05-20 12:22:21 +03:00
Mikhail Glukhikh
95f2c52659
FirAnnotationHelpers: use KotlinTarget instead of AnnotationTarget
2021-05-20 12:22:21 +03:00
Mikhail Glukhikh
7675ea3c23
Move AnnotationTargetLists & KotlinTarget to common compiler code
2021-05-20 12:22:21 +03:00
Mikhail Glukhikh
d11092ae3c
FIR: support WRONG_ANNOTATION_TARGET on expressions
2021-05-20 12:22:21 +03:00
Mikhail Glukhikh
92ab600081
FIR: add check of SOURCE retention for EXPRESSION-targeted annotation
2021-05-20 12:22:21 +03:00
Mikhail Glukhikh
4b00a43b22
FIR: add ANNOTATION_ON_SUPERCLASS diagnostic
2021-05-20 12:22:20 +03:00
Mikhail Glukhikh
0d6bc7e7b2
FIR: report ANNOTATION_CLASS_CONSTRUCTOR_CALL diagnostic
2021-05-20 12:22:20 +03:00
Mikhail Glukhikh
3663884db2
FIR: support CONDITION_TYPE_MISMATCH diagnostic
...
We report CONDITION_TYPE_MISMATCH on
- loop conditions
- when branch conditions
- binary logic arguments
2021-05-20 12:22:20 +03:00
Mikhail Glukhikh
e85d97b894
FIR: introduce separate THROWABLE_TYPE_MISMATCH
2021-05-20 12:22:20 +03:00
Mikhail Glukhikh
f0ce311fc6
Drop unused ConeTypeMismatchError
2021-05-20 12:22:19 +03:00
Toshiaki Kameyama
b9a4b60b93
Unnecessary local variable: highlight with INFORMATION level when initializer has any multi-line blocks ( #3359 )
...
#KT-26752 Fixed
2021-05-20 11:12:41 +02:00
Andrey Zinovyev
e82857996f
[lombok] Resolve to absolute path when import from maven
...
#KT-46723 Fixed
2021-05-20 11:57:07 +03:00
Pavel Kunyavskiy
2680111125
[K/N] Fix order of lowerings to enable when on enum optimisation
...
EnumWhenLowering searches for pattern, which is destroyed by
BuiltinOperatorLowering, so first one should happen before second.
2021-05-20 08:34:15 +00:00
Pavel Kunyavskiy
43b91589a1
[K/N] Create lowering for optimising when, with lowered enums support
2021-05-20 08:34:14 +00:00
Pavel Kunyavskiy
1dd6dcdeef
[K/N] Store ordinal value in lowered enum
2021-05-20 08:34:13 +00:00
Pavel Kunyavskiy
8a418161f6
[K/N] Support pre-creating for objects with only constant properties
2021-05-20 08:29:23 +00:00
Pavel Kunyavskiy
e4ecb3745b
[K/N] Debug util for checking if object is global constant
2021-05-20 08:29:22 +00:00
Ilya Goncharov
5d36264660
Add Node.js 14.17.0 with verification metadata
2021-05-19 21:22:32 +03:00
Ilya Goncharov
f0044516d1
[Gradle, JS] Update Node.js version on latest stable (14.17.0)
...
^KT-46693 fixed
2021-05-19 21:22:31 +03:00
Igor Yakovlev
b0df70dbfe
[ULC] Fix delegate field type resolve
...
Fixed #KT-46519
2021-05-19 20:49:55 +03:00
Alexander Shabalin
a02cecec20
Disable interop_cleaners_leak
2021-05-19 15:51:05 +00:00
Ilya Muradyan
9412fe094b
[REPL] Copy findLabelAndCall to scripting-ide-services to fix problems with embeddable artifact
2021-05-19 18:32:50 +03:00
Ilya Muradyan
7caadd87a2
[Scripting] Get rid of unneeded dependencies in Maven resolver
2021-05-19 18:32:48 +03:00
Alexander Udalov
2fe498149e
Psi2ir: add file name to exception when generating synthetic declarations
2021-05-19 17:12:12 +02:00
Alexander Udalov
6581d222cd
Fix accidental usage of ASM from jdk.internal in jvm-debugger
...
Similarly to ee6586fe4f .
2021-05-19 17:11:08 +02:00
Dmitriy Novozhilov
99cdb86145
[FIR] Move createSessionWithDependencies to FirSessionFactory
2021-05-19 16:29:20 +03:00
Dmitriy Novozhilov
2ee54c2201
[FIR] Remove way to create FirSession using Module
...
The problem is that Module may not contain some default dependencies in
classpath roots, so it's incorrect to take them from it
2021-05-19 16:29:19 +03:00
pyos
b2ef854aa1
JVM_IR: support @JvmStatic transformations in LateinitLowering
...
#KT-46759 Fixed
2021-05-19 16:23:01 +03:00
pyos
f1f13b6e97
JVM_IR: do not evaluate receiver of static calls if it is pure
...
#KT-46802 Fixed
2021-05-19 16:22:59 +03:00
Dmitriy Dolovov
ae1590d3cf
[Native] Support multiple suspend lambdas as class supertypes
...
Drop the backend check. Eveything else is already fixed in
https://github.com/JetBrains/kotlin/commit/3b3318ab06e8c55b1c49da5734decd59524c3d9f
^KT-46775
2021-05-19 16:09:47 +03:00
Dmitriy Dolovov
896929cb21
[Native] Support suspend functions as supertypes
...
^KT-46777
2021-05-19 16:09:38 +03:00
Ilmir Usmanov
9fe503eeb3
Minor. Add regression test
...
#KT-45685 Fixed
2021-05-19 12:45:26 +02:00