Commit Graph

93293 Commits

Author SHA1 Message Date
Mads Ager ef499fedbb [K/N] Deprecate -Xbundle-id and use binary options for Info.plist. 2022-06-23 09:57:13 +00:00
Mads Ager c7e7080af6 [K/N] Allow control of BundleShortVersionString and BundleVersion
Adding -Xbundle-version and -Xbundle-short-version-string
compiler arguments. These can be used in the freeCompilerArgs
in the gradle configuration to control the version strings
in the Info.plist in generated frameworks.

```
version = "1.0"

macosX64("native") {
    binaries.framework {
        compilation.kotlinOptions.freeCompilerArgs += "-Xbundle-version=$version"
    }
}
```

^KT-33117 Fixed.
2022-06-23 09:57:12 +00:00
Yahor Berdnikau fcdab3995a Don't add InspectClassesForMultiModuleIC task with new IC approach
Only valid for Kotlin/JVM compilations, all other platforms are still
rely on it.

^KT-52698 Fixed
2022-06-23 08:36:46 +00:00
Stanislav Erokhin 2234813363 [Analysis API] Add KtCallableMemberCall#typeArgumentsMapping 2022-06-23 07:50:21 +00:00
Stanislav Erokhin 8d8fc6e291 [Analysis API] Add type to KtReceiverValue
Maybe in the future we could remove type from the
KtImplicitReceiverValue, because it has ktSymbol, and in theory
that should be enough to create corresponding KtType.
Unfortunately that is not the case for KtClassOrObjectSymbol --
it doesn't have the API for "default" type creation currently.

Regarding code in KtFirCallResolver.kt -- it seems like code there
needs some love in the future. Psi created via custom code there,
because for call x() FIR has receiver x with psi = null
2022-06-23 07:50:21 +00:00
Vladimir Sukharev 409d959816 KT-51593 Include more information in Objective-C header documentation
#KT-51593 Fixed

Merge-request: KT-MR-6437
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-06-23 07:35:06 +00:00
Ilya Gorbunov 1cfc6a8fca Move sources of ranges to common stdlib from builtins
But still cherry-pick them when serializing builtins because they are
used in builtins signatures.

Merge-request: KT-MR-6488
Merged-by: Ilya Gorbunov <Ilya.Gorbunov@jetbrains.com>
2022-06-23 03:49:30 +00:00
Kristoffer Andersen 3af0e57406 [FIR-IDE] Add DestructuringDeclarationEntry to SymbolProvider 2022-06-22 21:20:54 +02:00
Jinseong Jeon b6371a5b9a AA/FIR: differentiate dynamic type rendering 2022-06-22 20:14:39 +02:00
Jinseong Jeon 2d52c59bc7 AA: introduce KtDynamicType 2022-06-22 20:14:39 +02:00
Alexander Likhachev e81231a78f Drop redundant comment to OptIn annotation class 2022-06-22 20:24:52 +03:00
Artem Kobzar ba738cbbff feat: add ability to create nested entities inside object. 2022-06-22 11:59:13 +00:00
Pavel Mikhailovskii 3766698081 KT-52743 IR: Fix null checks in Elvis operators 2022-06-22 09:11:24 +00:00
Ilya Kirillov ed97e73129 [Analysis API FIR] fix invalid fallback for enum classes modality 2022-06-22 09:31:50 +02:00
Ilya Kirillov d716c68f0e [Analysis API] cleanup code 2022-06-22 09:31:49 +02:00
Ilya Kirillov 37b0c20879 [Analysis API] improve KDoc for scopes 2022-06-22 09:31:49 +02:00
Ilya Kirillov d8b88e9b69 [Analysis API] add testcases, add comments to tests 2022-06-22 09:31:48 +02:00
Ilya Kirillov 3ea2232591 [Analysis API] add KDocs for KtTypeScopeProvider 2022-06-22 09:31:48 +02:00
Ilya Kirillov d5113892df [Analysis API FE10] fix CallableId for synthetic java property descriptors 2022-06-22 09:31:48 +02:00
Ilya Kirillov 36f370f501 [Analysis API] add tests for KtTypeScope 2022-06-22 09:31:47 +02:00
Ilya Kirillov b9907963fe [Analysis API] add tests for KtSubstitutor 2022-06-22 09:31:47 +02:00
Ilya Kirillov f4d47cfe59 [Analysis API fir] remove now unneeded ReadOnlyWeakRef 2022-06-22 09:31:46 +02:00
Ilya Kirillov f966959615 [Analysis API] disable not passing new Analysis API tests for FE10 2022-06-22 09:31:46 +02:00
Ilya Kirillov 2c1074ac37 [Analysis API] actualize testdata 2022-06-22 09:31:45 +02:00
Ilya Kirillov ffdfa05015 [Analysis API] use existing test utilities for rendering 2022-06-22 09:31:45 +02:00
Ilya Kirillov f09459d172 [Analysis API] add KDocs to the substitution-related functionality 2022-06-22 09:31:44 +02:00
Ilya Kirillov 8ba7d41e00 [Analysis API] fix typo in class name 2022-06-22 09:31:44 +02:00
Ilya Kirillov dafb132a17 [Analysis API] add few tests which checks contracts of signature substitutions 2022-06-22 09:31:43 +02:00
Ilya Kirillov 3525e42f11 [Analysis API] introduce substitutor builder 2022-06-22 09:31:43 +02:00
Ilya Kirillov c95ac9f845 [Analysis API] add some basic tests for symbol substitution 2022-06-22 09:31:42 +02:00
Ilya Kirillov 7b1765cc8b [Analysis API] introduce base KtTypeScope -> KtScope converter 2022-06-22 09:31:42 +02:00
Ilya Kirillov c52d33d215 [analysis api] add additional information to the KtCallableSignature 2022-06-22 09:31:41 +02:00
Ilya Kirillov edb6fc9531 [analysis api] move KtCallableSignature to a separate package 2022-06-22 09:31:41 +02:00
Ilya Kirillov d4c97a3883 [analysis api] convert KtFunctionLikeSignature/KtVariableLikeSignature to non-data classes 2022-06-22 09:31:40 +02:00
Ilya Kirillov fdc008e8af [analysis api] rename KtSignature -> KtCallableSignature 2022-06-22 09:31:40 +02:00
Ilya Kirillov 78c63c082b [Analysis API] introduce API to work with signatures substitution 2022-06-22 09:31:39 +02:00
Ilya Kirillov 2db73af75e [analysis api] make KtCallableSymbol to be sealed class 2022-06-22 09:31:39 +02:00
Ilya Kirillov 2e35e513ee [analysis api fir] get rid of read only FirDeclaration -> KtSymbol used for completion 2022-06-22 09:31:38 +02:00
Ilya Kirillov 3033a91567 [analysis api] introduce KtTypeScope which will contain callable signatures 2022-06-22 09:31:38 +02:00
Ilya Kirillov 3ee0410c77 [analysis api fir, refactoring] remove unreachable when branch 2022-06-22 09:31:38 +02:00
Ilya Kirillov aeca112c5b [analysis api fir, refactoring] move scope utils out of KtFirDelegatingScope.kt 2022-06-22 09:31:37 +02:00
Ilya Kirillov 82a330cf84 [analysis api] move KtScopeNameFilter to separate file 2022-06-22 09:31:37 +02:00
Ilya Kirillov a10e55cd6a [analysis api] remove KtClassKind.ENUM_ENTRY as enum entry is not a classifier 2022-06-22 09:31:36 +02:00
Ilya Kirillov a16a01bf37 [analysis api] fix Analysis API contracts violation 2022-06-22 09:31:36 +02:00
Ilya Kirillov c2558521cf [analysis api fir] make KtFirBackingFieldSymbol.hashCode to be consistent with equals 2022-06-22 09:31:35 +02:00
Ilya Kirillov 0da66cc52f [Low Level API FIR] fix invalid traverse of supertypes list
the supertypes list should not be traversed without proper locking,
otherwise some transformer may transform it concurrently

In case of looking for a declaration by class id it just should not be traversed

^KTIJ-21791
2022-06-21 18:16:27 +00:00
Martynas Petuška 6cf085aafb KT-52637 SCSS support
^KT-52637 fixed
2022-06-21 18:12:50 +00:00
Mikhail Glukhikh b42cbf6650 Drop redundant comment to OptIn annotation class 2022-06-21 17:32:42 +00:00
Mikhail Zarechenskiy f4944d80b9 [DI] Do not recreate collections in case of empty results
^KT-52756
2022-06-21 17:07:28 +00:00
Pavel Kunyavskiy 5b1581486b [K/N] Disable safepoint removal test with non-default gc 2022-06-21 16:25:41 +00:00