Andrei Klunnyi
decfcd28d2
KT-39398 Wrong import of unrelated object member is suggested for receiver
...
Receiver of a function call '<receiver>.foo()' (where receiver is a
class/object/alias name) might be specified incorrectly - corresponding
[companion] object might not be declared.
Before this commit '<receiver>' was considered to be undefined (null).
As a consequence, import suggestion included all 'foo()' functions from
the search scope.
Now as a value of '<receiver>' we set class/object/alias itself
resulting in an empty import suggestion list.
See org/jetbrains/kotlin/idea/util/CallType.kt:307
(#extractReceiverTypeFrom(descriptor: ClassDescriptor)).
2021-07-07 16:51:43 +02:00
Nikita Bobko
365821ae54
2/2 Extract code which is required for :kotlin-scripting-ide-services from ide-common into seprate module
...
Extract the code and keep it in Kotlin repo. See previous preparation commit as well
2021-07-07 16:51:43 +02:00
Nikita Bobko
cf3f35e1c8
1/2 Preparation commit: move ide-common files which are required for scripting to separate directory
...
This commit is needed to preserve git history
2021-07-07 16:51:43 +02:00
pyos
50797dba8d
JVM: do not use crossinline flag when inlining assertions
...
Crossinline lambdas *can* be inlined into objects, but don't *have* to;
the correct place should be determined from the context, not from the
parameter.
2021-07-07 16:48:01 +02:00
pyos
e64cda61d5
JVM_IR: do not generate $assertionsDisabled twice during inlining
2021-07-07 16:48:01 +02:00
Ilya Matveev
123c76053f
[Gradle][tests] Fix running CocoaPods on Apple M1
2021-07-07 17:13:34 +03:00
Ilya Matveev
5fad5e017e
[Gradle][tests] Disable workaround for XCode 12.3
2021-07-07 17:13:31 +03:00
Ilya Matveev
53a4187427
[Gradle][tests] Install CocoaPods to a temp dir instead of HOME
2021-07-07 17:13:29 +03:00
Ilya Matveev
aa9ff3d6bb
[Gradle][tests] Install cocoapods in MPP plugin tests
2021-07-07 17:13:26 +03:00
Svyatoslav Scherbina
2d0dbf9729
Native: improve ObjCExport thread state switching
2021-07-07 13:53:27 +00:00
Ilya Goncharov
1a27f91a98
[Gradle, JS] Remove redundant suppression
2021-07-07 16:40:22 +03:00
Ilya Goncharov
f7e69fb2ef
[Gradle, JS] Update verification data with Yarn
2021-07-07 16:40:20 +03:00
Ilya Goncharov
da1bdf87cb
[Gradle, JS] Use injected services of fs
2021-07-07 16:40:19 +03:00
Ilya Goncharov
e2adf9793c
[Gradle, JS] Node into PATH during installing of dependencies
...
^KT-37895 fixed
2021-07-07 16:40:17 +03:00
Ilya Goncharov
065a5d98fb
[Gradle, JS] Configuration cache friendly
2021-07-07 16:40:16 +03:00
Ilya Goncharov
81ac48390c
[Gradle, JS] Make yarn working without downloading
...
^KT-32071 fixed
2021-07-07 16:40:15 +03:00
Ilya Goncharov
eb73527b9f
[Gradle, JS] No additional checks of setup tasks
2021-07-07 16:40:13 +03:00
Ilya Goncharov
54d47de008
[Gradle, JS] Yarn as a dependency with ivy repository like Node.js
...
^KT-34985 fixed
2021-07-07 16:40:11 +03:00
Anton Yalyshev
1507f1a9c0
Add change notes for 1.5.21
2021-07-07 16:30:34 +03:00
Andrey Zinovyev
de3f31cf78
[FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics
...
No support for inheritance deprecations
and deprecations in qualifier's parts
2021-07-07 16:19:28 +03:00
Andrey Zinovyev
9fad55d551
[FIR] Use @DeprecatedSinceKotlin in the resolution
2021-07-07 16:19:27 +03:00
Igor Yakovlev
b64f7909b8
[FIR IDE] Implement own fir light classes support
2021-07-07 14:08:41 +02:00
Yahor Berdnikau
7fff282565
Fix AllOpen plugin exposes common with Gradle runtime dependencies.
...
^KT-47354 Fixed
2021-07-07 11:31:18 +00:00
Mikhail Glukhikh
fa086d22c2
Don't build kotlin-gradle-statistics in FIR mode at all
2021-07-07 14:28:03 +03:00
Mikhail Glukhikh
863a2c6498
Disable kotlin-gradle-statistics and wasm.ir under FIR
2021-07-07 14:28:02 +03:00
Mikhail Glukhikh
c7877cb440
FIR: fix contract deserialization for assertIs<T>
2021-07-07 14:28:00 +03:00
Ilya Goncharov
e0c1f50f03
[Gradle, JS] Fix node.js repository declaration
...
^KT-47557 fixed
2021-07-07 08:26:07 +00:00
Sergey Bogolepov
f05110f99b
[K/N] Add some tests for https://youtrack.jetbrains.com/issue/KT-47605
2021-07-07 07:50:57 +00:00
Sergey Bogolepov
9ed97a27f1
[K/N] Introduce LLD compatibility checker for MinGW
...
We are going to switch to LLD linker for MinGW targets.
Right now LLD for MinGW doesn't support all features
of ld.bfd and thus this change might be breaking for some users.
To make transition smoother, we run lld -### to show a warning to user
so they can update their compilation options before LLD will be turned
on by default.
More details: https://youtrack.jetbrains.com/issue/KT-47605
2021-07-07 07:50:57 +00:00
Ilya Kirillov
30d0fea003
FIR IDE: enable explicit API mode in idea-frontend-fir module
2021-07-07 01:40:03 +03:00
Ilya Kirillov
51576c70b6
FIR: introduce package directive
...
The package directive is needed for KtElement -> FirElement mapping in IDE.
There should be some FirElement which will be result of mapping of elements
inside KtPackageDirective.
2021-07-06 22:49:50 +03:00
Mikhail Glukhikh
bf40c07cc3
FIR: drop questionable DiagnosticKind.NotRootCause
2021-07-06 18:43:16 +03:00
Mikhail Glukhikh
7d583973ab
Disable -Werror in FIR mode inside disableDeprecatedJvmTargetWarning
2021-07-06 18:27:53 +03:00
Tianyu Geng
768ddea18f
FIR checker: ILLEGAL_DECLARATION_IN_WHEN_SUBJECT
2021-07-06 18:27:47 +03:00
Tianyu Geng
31573a98e8
FIR checker: report EXPECTED_CONDITION
2021-07-06 18:27:23 +03:00
Sergey Bogolepov
e396da0562
[K/N] Update list of targets with stable caches
...
Enable compiler caches for iosSimulatorArm64 and macosArm64 targets
to make Apple Silicon distribution feature complete with
Intel-based one.
2021-07-06 18:15:30 +03:00
Victor Petukhov
65fd8fc174
Add generated files with descriptors for foreign annotation tests
2021-07-06 18:10:22 +03:00
Ilya Goncharov
c797d38312
[Gradle, JS]Add base dirs and prefix for correct source maps calculating
2021-07-06 12:59:03 +00:00
Alexander Udalov
e7b37d99cb
Fix new compiler warnings in daemon and build-common
2021-07-06 13:31:21 +02:00
Sergey Shanshin
0d211a53cb
Support serializable classes clash with JVM primitive types by name
...
Fixes Kotlin/kotlinx.serialization#1353
2021-07-06 12:52:53 +03:00
Ilya Goncharov
7181631051
[Gradle, JS] Add statistics for Kotlin/JS
...
- source map usages (legacy, ir)
- incremental klib
- incremental JS IR
- property lazy initialization
^KT-47435 fixed
2021-07-06 07:38:56 +00:00
Victor Petukhov
6cfb1f40d6
Specify jspecify mode explicitly for warnings in tests
2021-07-06 09:54:32 +03:00
Victor Petukhov
74aa8e7497
Get rid of singleOrNull of NullabilityAnnotationStates
2021-07-06 09:54:31 +03:00
Victor Petukhov
877ca370c2
Use memoized function to compute and store annotation states cache
2021-07-06 09:54:31 +03:00
Victor Petukhov
50ad5116b5
Add CLI test for -Xnullability-annotations
2021-07-06 09:54:30 +03:00
Victor Petukhov
b0a44705b4
Take into account user defined jsr-305 annotations
2021-07-06 09:54:30 +03:00
Victor Petukhov
b2dff10e32
Implement caching states for nullability annotations
2021-07-06 09:54:30 +03:00
Victor Petukhov
a82772f31a
Depend on passed language version explicitly to compute nullability annotation settings
2021-07-06 09:54:29 +03:00
Victor Petukhov
18384788a4
Move type enhancement state stuff into core:descriptors.jvm
2021-07-06 09:54:29 +03:00
Victor Petukhov
8de05691a9
Revert "Move fqname related stuff into core:util.runtime module"
...
This reverts commit e651e1c6
2021-07-06 09:54:28 +03:00