Ilya Goncharov
f6ba2a958a
[JS IR] No generate exportness for overridden properties
...
[JS IR] Add check on existence of overridden property in tests
^KT-49326 fixed
[JS IR] Add details to comment with exporting properties
^KT-49326 fixed
[JS IR] No generate exportness for overridden properties,
if only no override val -> var
^KT-49326 fixed
Merge-request: KT-MR-4810
2021-10-21 10:52:48 +00:00
Sergey Igushkin
8868738ac8
KT-48709: Fix CInterop configurations ambiguity with user variants
...
* Introduce a new org.gradle.usage value: kotlin-cinterop
* Add compatibility+disambiguation rules to ensure that kotlin-cinterop
consumers can also fall back to ordinary (kotlin-api) published
variants, but not vice versa
* This ensures that ordinary kotlin-api consumers don't encounter
equally-compatible candidates where one is the normal API elements
and the other is C interop API elements
* Set org.gradle.usage = kotlin-cinterop in the C interop API elements
configurations and dependency-consuming configurations
Issue #KT-48709
2021-10-21 10:17:52 +00:00
Sergey Igushkin
a474e8a00b
KT-49189: fix project(...) dependencies on MPP from pure-Java consumers
...
* Don't set the localToProject attribute anymore, as it prevents proper
disambiguation if not set properly on all configurations, while all
the intentionally-public configurations
should already have the same value.
* Disambiguate o.j.k.platform.type Android vs JVM preferring JVM, as
Android should have other attributes which make pure-Android consumers
match the Android MPP variants.
* With Gradle 7.0+, set the attribute
`org.gradle.api.attributes.java.TargetJvmEnvironment` on the JVM &
Android elements configurations, which helps pure-Android consumers
to match the Android, not JVM variants. This fixes KT-30961 for
Gradle 7.0+ and AGP 7.0+
Issues: KT-49189, KT-30961
2021-10-21 10:17:52 +00:00
Yan Zhulanow
f0e703e1ee
[FIR IDE] Add artifacts with base components of Analysis API implementations
2021-10-21 18:05:01 +09:00
Mikhail Glukhikh
7962acd3e2
FIR: temporarily downgrade NO_EXPLICIT_VISIBILITY_IN_API_MODE to warning
...
This commit is intended to fix broken bootstrap build
2021-10-21 11:44:44 +03:00
Artem Kobzar
876d358fe6
fix(KT-46961): add support of nested external enums.
2021-10-21 06:40:00 +00:00
Artem Kobzar
3dbf996ec6
fix(KT-49225): remove unnecessery boxing.
2021-10-21 06:38:42 +00:00
Mikhail Glukhikh
9515011365
Minor: make when in 'isExtension' a bit more clear
2021-10-21 00:07:50 +03:00
Tianyu Geng
c262f17d75
FIR checker: report violations related to API mode
2021-10-21 00:01:14 +03:00
Tianyu Geng
52b247937e
FIR checker: fix positioning of CONFLICTING_IMPORT
...
FE1.0 puts it on the alias when applicable.
2021-10-21 00:00:29 +03:00
Denis.Zharkov
4ad5f01324
FIR: Support overrides of generic-typed members with raw-typed ones
...
^KT-49070 Fixed
2021-10-20 22:05:25 +03:00
Denis.Zharkov
a0a57581ec
FIR: Do not add alias for variables with explicit type
2021-10-20 22:05:24 +03:00
Denis.Zharkov
5317cf3af1
FIR: Minor. Extract helpers
2021-10-20 22:05:24 +03:00
Denis.Zharkov
fba44759c0
FIR: Refine visibility check for class members
2021-10-20 22:05:23 +03:00
Denis.Zharkov
d702365632
Regenerate FIR tree
2021-10-20 22:05:22 +03:00
Denis.Zharkov
f441024fd4
FIR: Derive FirMemberDeclaration from FirAnnotatedDeclaration
...
It's necessary to have the sane logic that FirMemberDeclaration is a subtype of FirDeclaration
The only kind of controversial change here is making FirAnonymousObject
also be FirMemberDeclaration, thus having its own declaration status
2021-10-20 22:05:20 +03:00
Tianyu Geng
603655d63f
FIR IDE: add option to render type without type args
...
This is useful for rendering type annotation for `super`, which does
not require type arguments.
2021-10-20 19:16:49 +02:00
Tianyu Geng
bdc71a3281
FIR IDE: pass candidate super types for AMBIGUOUS_SUPER
...
This way the IDE quickfix do not need to do resolution again to figure
out what super type to offer in the quickfix.
2021-10-20 19:16:48 +02:00
Yan Zhulanow
7c3706dd3f
[FIR IDE] Disable dependent analysis session tests for FE10 implementation
2021-10-20 19:41:30 +03:00
Yan Zhulanow
b7044803d2
[FIR IDE] Move out-of-block modification trigger to FrontendApiTestConfiguratorService
2021-10-20 19:41:29 +03:00
Yan Zhulanow
2894f87541
[FIR IDE] Move test configurators as constructor parameters
2021-10-20 19:41:29 +03:00
Yan Zhulanow
8f39640237
[FIR IDE] Move test file analysis in FE10 Analysis API implementation to FrontendApiTestConfiguratorService
2021-10-20 19:41:28 +03:00
Yan Zhulanow
a1280ed723
[FIR IDE] Move testPrefix to FrontendApiTestConfiguratorService
2021-10-20 19:41:27 +03:00
Yan Zhulanow
e12c7d1292
[FIR IDE] Extract Fe10AnalysisFacade from KtFe10AnalysisSession
2021-10-20 19:41:26 +03:00
Yan Zhulanow
e06a75c197
[FIR IDE] Add separate test data for descriptor-based Analysis API implementation
2021-10-20 19:41:26 +03:00
Yan Zhulanow
1272c6aa33
[FIR IDE] Update Analysis API test data, untie it from the FIR implementation
2021-10-20 19:41:25 +03:00
Yan Zhulanow
516dd825c2
[FIR IDE] Initial descriptor-based implementation of the Analysis API
2021-10-20 19:41:24 +03:00
Yan Zhulanow
e2c9be0932
[FIR IDE] Extract common components of the Analysis API to separate modules
2021-10-20 19:41:23 +03:00
Yan Zhulanow
44a1fe668e
[FIR IDE] Extract implicit set parameter name to reuse it in Analysis API
2021-10-20 19:41:21 +03:00
Ilmir Usmanov
2b8963455f
Use a separate diagnostic for 'suspend fun' sequence
...
instead of reusing existing one, since existing one
is ERROR, and we cannot turn code red without deprecating
it with WARNING.
#KT-49264
2021-10-20 18:12:10 +02:00
Nikolay Lunyak
dbfe3524ce
[FIR] Add FirDelegateUsesExtensionPropertyTypeParameterChecker
2021-10-20 16:49:51 +03:00
Nikolay Lunyak
f97e666608
[FIR] Add property delegate positioning strategy
2021-10-20 16:49:48 +03:00
Aleksei.Cherepanov
276fb77155
Fix incremental build after changing Java const used as class property
...
Report Java static final constant with InlineConstantTracker, used as class property in Kotlin for further registration in JPS
#KT-49177 Fixed
2021-10-20 15:06:19 +03:00
Mikhail Glukhikh
931779f1c6
Fix OPT_IN_IS_NO_ENABLED message (see KT-48534)
2021-10-20 12:17:12 +03:00
Mikhail Glukhikh
98d34b40ab
FIR: set substituteTypes value explicitly in calls inside providers
2021-10-20 12:17:04 +03:00
Mikhail Glukhikh
3483bc41fd
FIR: set substituteTypes value explicitly in some lookupSupertypes calls
2021-10-20 12:17:04 +03:00
Mikhail Glukhikh
7fc19520a5
FIR: substitute super type during tower building properly #KT-49301 Fixed
2021-10-20 12:17:04 +03:00
Mikhail Glukhikh
b76e61cbc5
FIR: set dispatch receiver type to constructor in deserialization
2021-10-20 12:17:03 +03:00
Yan Zhulanow
adf174809e
Add Parcelize runtime library to set of artifacts published as IDE components
...
The missing artifact is needed in order to solve KTIJ-19900.
2021-10-19 19:55:09 +03:00
Yan Zhulanow
20b73499f5
Pill: Add Analysis API test generator to the "Generate all tests" run configuration
2021-10-19 19:55:09 +03:00
Yan Zhulanow
cb74247f8f
Pill: Update options passed in test configurations
2021-10-19 19:55:08 +03:00
Yan Zhulanow
1f2508c177
Pill: recognize 'protobufCompare' as a test module
2021-10-19 19:55:07 +03:00
Yan Zhulanow
f1fa17f896
Pill: Better support for compiler arguments in generated facets
2021-10-19 19:55:07 +03:00
Yan Zhulanow
6cd25984ca
Pill: Always map kotlin-reflect-api to the kotlin-reflect.jar artifact
2021-10-19 19:55:06 +03:00
Yan Zhulanow
46b94a4757
Pill: Include certain modules into the BASE variant
2021-10-19 19:55:06 +03:00
Yan Zhulanow
17120bf258
Pill: Fix Kotlin facet creation
2021-10-19 19:55:05 +03:00
Yan Zhulanow
099a44283f
Pill: Disable Kotlin IDE plugin artifact building if not in cooperative mode
2021-10-19 19:55:05 +03:00
Yan Zhulanow
5627bbb535
Pill: Remove IDEA Ultimate run configuration
2021-10-19 19:55:04 +03:00
Yan Zhulanow
66005d9c3b
Pill: Remove Android Studio support
2021-10-19 19:55:03 +03:00
Pavel Kunyavskiy
172373c57e
[K/N] Add tests for flexible arrays in interop
...
^KT-48074
2021-10-19 13:45:00 +00:00