Dmitriy Dolovov
0d50ccc42d
[Commonizer] Fix: Lost nullability in commonized type aliases
2020-11-19 16:47:24 +03:00
Dmitriy Dolovov
66bc142f92
[Commonizer] Empty sources/javadocs Jars
2020-11-17 19:02:18 +03:00
Dmitriy Dolovov
f5329b6f1d
[Commonizer] Don't publish sources and javadocs
2020-11-12 17:23:52 +03:00
sebastian.sellmair
06cb64bb51
Allow open callable members in expect interfaces
...
#KT-42094 fixed
2020-11-11 17:41:59 +00:00
Dmitriy Dolovov
734dff6282
[Commonizer] Use compact variants of collections to reduce memory footprint
2020-11-05 18:50:56 +03:00
Dmitriy Dolovov
30bf7b87fe
Minor. Code formatted
2020-11-05 18:50:50 +03:00
Dmitriy Dolovov
f5bb60f7cd
[Commonizer] Refactor CIR type representation
...
1. Drop CirClassifierId
2. Specialized classes for each kind of types (classes, TAs, type parameters, flexible types).
3. TypeCommonizer now returns commonized type. In case of TAs this could be a completely new type
describing expect class or a new TA with the different underlying type.
2020-11-05 18:50:43 +03:00
Dmitriy Dolovov
2764550bbe
[Commonizer] Relax conditions for TA lifting-up
...
Allow lifting up matching TAs with non-empty list of type parameters
and non-empty list of type arguments in the expanded type.
2020-11-05 18:50:37 +03:00
Dmitriy Dolovov
cb2e94df16
[Commonizer] Minor. Convert approximation keys back to data classes
2020-11-05 18:50:31 +03:00
Mikhail Zarechenskiy
bb2e9e2d56
Extract new method from the publicly used interface for compatibility
...
Note that we can't just use ``@JvmDefault` annotation as the main change
is in the `core` module which targets Java 6
#KT-42259 Fixed
2020-10-27 14:14:39 +03:00
Leonid Startsev
4ec90b18bc
Rework DescriptorSerializerPlugin to be a part of Project's extensions
...
instead of statically registering it.
Static registering can cause subtle errors when plugin implementation
(e.g. SerializationDescriptorPluginForKotlinxSerialization) is registered
from multiple classloaders: in multi-module with daemon compilation scenario
#KT-41857 Fixed
2020-10-22 17:04:35 +03:00
Dmitriy Dolovov
c69402c800
[Commonizer] Fix computing underlyingType and expandedType in CirTypeAlias
2020-10-19 11:21:53 +03:00
Dmitriy Dolovov
3d8b614778
[Commonizer] Allow debugging through "runCommonizer" Gradle task
2020-10-14 09:33:12 +03:00
Dmitriy Dolovov
f49f5cb3d5
[Commonizer] Fix classpath for "runCommonizer" Gradle task
2020-10-14 09:33:06 +03:00
Dmitriy Dolovov
07f78f5ab8
[Commonizer] Drop "kind" from CirClassConstructor
...
... as it is always CallableMemberDescriptor.Kind.DECLARATION
for serialized constructor declarations
2020-10-02 16:47:29 +03:00
Vladimir Dolzhenko
3c380faeb5
Added deprecated PackageFragmentProvider#getPackageFragments for BWC
...
Relates to ^KT-33394
^KT-42259 Fixed
2020-09-29 19:14:44 +00:00
Vladimir Dolzhenko
5036673187
Improve package caching in KotlinJavaPsiFacade
...
^KT-33394 Fixed
2020-09-10 07:38:46 +00:00
Dmitriy Novozhilov
d1fd1da56f
Rename Visibility to DescriptorVisibility
2020-09-04 11:07:42 +03:00
Dmitriy Dolovov
8a7f33f044
[Commonizer] Fix internal error when TAs have different expanded classes
...
^KT-41643
2020-09-04 01:19:41 +07:00
Dmitriy Dolovov
74dce725cc
[Commonizer] Tests for missed supertypes in commonized type aliases
...
^KT-41247
2020-09-01 13:11:33 +07:00
Dmitriy Dolovov
96736b0126
[Commonizer] Add missed supertypes in commonized type aliases
...
^KT-41247
2020-09-01 13:11:27 +07:00
Dmitriy Dolovov
e21d99334b
[Commonizer] Lookup common descriptors that don't participate in commonization (for tests only)
...
This is necessary to run integration tests with fake declarations from
Kotlin/Native stdlib that are absent in stdlib-common.
2020-09-01 13:11:22 +07:00
Dmitriy Dolovov
ed78169051
[Commonizer] README: Describe the case when target is not available
2020-09-01 13:11:16 +07:00
Dmitriy Novozhilov
a764732020
Rename KotlinBuiltInsNames to StandardNames
2020-08-25 10:41:33 +03:00
Dmitriy Novozhilov
7a7fe77b8e
Move static constants with builtin names to :core:descriptors.common module
2020-08-25 10:31:36 +03:00
Dmitriy Dolovov
d40bca4143
[Commonizer] Short-circuiting of type aliases
...
^KT-41220
2020-08-24 12:21:12 +07:00
Dmitriy Dolovov
75be9cf31f
[Commonizer] Tests on rewriting callables names to succeed commonization
...
^KT-34602
2020-08-17 09:31:28 +07:00
Dmitriy Dolovov
de0b6e06cf
[Commonizer] Keep parameters names hash in approximation keys for ObjC callables
...
^KT-34602
2020-08-17 09:31:21 +07:00
Dmitriy Dolovov
3b901a28d5
[Commonizer] More compact approximation keys
...
^KT-34602
2020-08-17 09:31:12 +07:00
Dmitriy Dolovov
4418dc85ca
[Commonizer] Allow rewriting callables names to succeed commonization
...
^KT-34602
2020-08-17 09:31:03 +07:00
Dmitriy Dolovov
8904f5652b
[Commonizer] Allow extended lookup for classifiers in test mode
...
Only for commonizer tests!
Allow to look up classifiers from the standard Kotlin packages (kotlin, kotlinx)
both in the default built-ins module and in test data sources. This is necessary
to write tests that refer to C-interop classifiers that are not available without
Kotlin/Native distribution.
^KT-34602
2020-08-17 09:30:57 +07:00
Dmitriy Dolovov
3b398ed57f
[Commonizer] Small clean-up in IllegalCommonizerStateException
2020-08-17 09:30:47 +07:00
Dmitriy Dolovov
494fb39399
[Commonizer] CLI: Report duration even if it's 0ms long
2020-08-17 09:30:42 +07:00
Dmitriy Dolovov
9ef727747b
[Commonizer] Use Array instead of List in AbstractListCommonizer
2020-08-17 09:30:36 +07:00
Dmitriy Dolovov
02f08b16d6
[Commonizer] Ignore CallableDescriptor.hasSynthesizedParameterNames attribute
2020-07-16 14:26:37 +07:00
Dmitry Savvinov
3ef760604b
Force expansion to have the same nullability as abbreviation
...
Note that classifier.underlyingType is always non-nullable, but
abbreviation might be nullable, so we should keep them consistent
^KT-40199 Fixed
2020-07-13 11:50:10 +07:00
Dmitry Savvinov
8890ae10d4
Add test on signatures with nullable abbreviated types
...
Currently test fails, see KT-40199
2020-07-13 11:50:10 +07:00
Dmitriy Dolovov
16aee6c8d6
[Commonizer] Lookup descriptors that doesn't participate in commonization
...
^KT-40119
2020-07-09 16:44:33 +07:00
Dmitriy Dolovov
3af937ea9a
[Commonizer] Remove isDefinitelyNotNullType from CirSimpleType
2020-07-09 16:44:32 +07:00
Dmitriy Dolovov
d3e858645f
[Commonizer] Remove CirTypeSignature from CirType
2020-07-09 10:08:13 +07:00
Dmitriy Dolovov
4ab5bfef22
[Commonizer] Preserve order of supertypes in commonized class
2020-07-09 10:08:06 +07:00
Dmitriy Dolovov
5e383e9d71
[Commonizer] Narrow CirClassifierId subtype cast in AnnotationsCommonizer
2020-07-09 10:07:59 +07:00
Dmitriy Dolovov
7a283c64cb
[Commonizer] Minor. Reorder type params for CirNode
2020-07-09 10:07:52 +07:00
Alexander Udalov
8c71d8f126
Undeprecate VariableDescriptorWithAccessors.isDelegated
...
Apparently there's quite a few valid usages of this method outside of
the compiler frontend, where manual suppression is annoying.
2020-07-07 18:09:40 +02:00
Dmitriy Dolovov
d63728afe5
[Commonizer] Use 'index:Int' instead of Name for addressing type parameters
2020-07-03 22:27:58 +07:00
Dmitriy Dolovov
3bb234b17c
[Commonizer] Clean-up CirTypeSignature usages
2020-07-03 00:22:44 +07:00
Dmitriy Dolovov
ffd0c69698
[Commonizer] Use ClassId instead of FqName for addressing classes and TAs
2020-07-03 00:22:38 +07:00
Dmitriy Dolovov
3e42b9d527
[Commonizer] Remove unused property from CirFunction
2020-07-01 00:12:03 +07:00
Dmitriy Dolovov
b2022144e6
[Commonizer] Fast-pass for library fragments absent for some targets
...
^KT-39897
2020-06-29 16:40:59 +07:00
Dmitriy Dolovov
d8fa617bfd
Minor. Fix typo in text printed to users
2020-06-23 17:27:14 +07:00