Alexander Udalov
87c0d56618
Drop Annotations.getAllAnnotations
2018-09-06 19:13:14 +03:00
Alexander Udalov
ab441dcd96
Drop PropertyDescriptorImpl.setType that takes KotlinType
...
Only use the other setType that takes an instance of
ReceiverParameterDescriptor. This will make sure that call sites can
use correct receiver annotations
2018-08-27 23:37:05 +02:00
Alexander Udalov
34c033bcaf
Take ReceiverParameterDescriptor in FunctionDescriptorImpl.initialize
...
Instead of just KotlinType. This will allow to pass annotations on the
receiver at call sites
2018-08-27 23:37:04 +02:00
Yan Zhulanow
8c05769745
Parcelize: Fix infinite recursive loop for zero-parameter Parcelable classes (KT-25839)
2018-08-24 04:26:36 +05:00
Alexander Udalov
b7808ba24d
Pass JvmTarget to KotlinTypeMapper
...
Also use KotlinTypeMapper.RELEASE_COROUTINES_DEFAULT instead of false in
FileRankingCalculator
2018-08-21 12:23:07 +02:00
Mikhael Bogdanov
6b5b9fbde4
Temporary use special container mapping logic for IR backend
2018-08-09 14:22:47 +03:00
Mikhail Zarechenskiy
045e3f53b0
Propagate KotlinType into codegen methods where it's possible
2018-07-20 13:46:09 +03:00
Yan Zhulanow
88c9d7e383
Parcelize: Recognize '@IgnoredOnParcel' with @get: use-site annotation target
2018-07-12 20:36:38 +03:00
Yan Zhulanow
26ca7a140d
Parcelize: Generate non-final 'writeToParcel()' and 'describeContents()' (#KT-24720)
2018-07-12 20:36:38 +03:00
Yan Zhulanow
3c1c776cdb
Parcelize: Check @IgnoredOnParcel annotation usage (#KT-24459)
2018-07-12 20:36:38 +03:00
Yan Zhulanow
ee37bcf14b
Parcelize: Serialize primitive arrays correctly when the custom parceler is provided.
...
This fixes failing 'customSerializerBoxing' test.
2018-07-12 20:36:37 +03:00
Yan Zhulanow
defe97e4ef
Parcelize: Always map primitive array element types as boxed types for Array<T> (#KT-23808)
2018-07-12 20:36:37 +03:00
Yan Zhulanow
d5f0495031
Parcelize: Support objects and enums (#KT-22576)
2018-07-12 20:36:37 +03:00
Egor Neliuba
4fd076e4f4
Fix typo in DefaultErrorMessagesAndroid
...
"Delegating 'Parcelable' is now allowed" -> "Delegating 'Parcelable' is not allowed"
2018-06-20 01:04:30 +03:00
Yan Zhulanow
614003ad70
Android Extensions: Allow to disable specific features of Android Extensions (#KT-23244)
2018-06-08 19:26:59 +03:00
Yan Zhulanow
6e362f6734
Kapt: Remove kapt1 from Kotlin compiler
2018-05-24 01:01:51 +03:00
Jim S
cebee7b5e1
Add context to generateSynthetic* in SyntheticResolveExtension
2018-04-25 20:18:10 +03:00
Raluca Sauciuc
89d61ee12d
Support androidx packages
...
... in the IDE plugin and the Android extensions compiler.
Change-Id: Iffd58351b0592e12ffc937c06d871d26958fe161
2018-04-12 16:29:13 +03:00
Dmitry Savvinov
934c56a4da
Wire StorageManager into a ClassTypeConstructorImpl and ClassDescriptorImpl
2018-04-12 13:44:10 +03:00
Ilmir Usmanov
2cfe387bab
Move coroutines to kotlin.coroutines package: compiler
...
Generate continuation type as kotlin.coroutines.Continuaion. This code will
fail at runtime since there is no stdlib backing this change yet.
However, in order to generate compatible stdlib we need a compiler, which
generates continuation type as kotlin.coroutines.Continuation.
Thus, firstly we support the change in the compiler, make it bootstrap
compiler and only then change stdlib and tests accordingly.
#KT-23362
2018-04-10 22:51:46 +03:00
Mikhael Bogdanov
63afd37cdd
Remove unused parameters, compiler keys and obsolete code
2018-04-03 19:18:10 +02:00
Mikhail Zarechenskiy
c5c8d84719
Support boxing/unboxing for method return types
2018-02-09 04:56:36 +03:00
Mikhail Zarechenskiy
1cdad65b9b
Refactoring: propagate KotlinType through hierarchy of StackValue
...
Mainly, this is needed to introduce boxing over inline classes
2018-02-09 02:08:10 +03:00
Yan Zhulanow
510d5ece0f
Android Extensions: Support '.', '-' and ':' in View identifiers (KT-22700)
2018-02-08 19:36:37 +03:00
Yan Zhulanow
bf9eed931b
Parcelable: Fix 'Simple' test (new boolean serializer)
2018-02-06 22:15:59 +03:00
Yan Zhulanow
145ddf3b1f
Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)
2018-02-06 22:15:59 +03:00
Alexander Udalov
8cd7686535
Introduce DeclarationCheckerContext, remove SimpleDeclarationChecker
2018-01-29 12:22:40 +01:00
Alexander Udalov
82574cb570
Do not store ClassDescriptor in EnumValue
...
Only store the ClassId of the enum class and the Name of the entry, and
resolve the needed descriptor in getType() instead, which now takes the
module instance where that descriptor should be resolved
2018-01-18 12:49:38 +01:00
Denis Zharkov
e24e711208
Avoid rebuilds after changes of layouts xml-files
...
This commit makes IC react more granularly on these changes
Precisely, it marks dirty only kt-files that having lookups into
synthetic package built upon a changed layout-file
#KT-21622 Fixed
2017-12-12 16:17:58 +03:00
Yan Zhulanow
2819fc718a
Parcelable: Migrate to canonical NEW-DUP-INVOKESPECIAL form (KT-20545)
2017-12-01 22:53:20 +09:00
Yan Zhulanow
ecfb045790
Android Extensions: Do not generate synthetic components in Kotlin Bytecode tool window when the Gradle plugin is disabled
2017-12-01 22:53:19 +09:00
Yan Zhulanow
3d7222485d
Android Extensions: Add missing documentation, move the hasCache property to the compiler module
2017-12-01 22:53:16 +09:00
Yan Zhulanow
1f65f8bc97
Encode all compiler plugin arguments for Android Extensions in kapt
...
Commas in option values breaks the option parsing in daemon (KT-20235).
2017-12-01 22:53:16 +09:00
Yan Zhulanow
425d104255
Parcelable: Convert I to Z explicitly, older Android Dex has strict checks for it (KT-20928)
2017-12-01 22:53:16 +09:00
Yan Zhulanow
e28cffd0ad
Parcelable: newArray() result type should be Object[] (KT-20717)
2017-12-01 22:53:15 +09:00
Yan Zhulanow
26005751d8
Parcelable: Fix compatibility with serialization plugin (KT-20742)
2017-12-01 22:53:15 +09:00
Alexander Udalov
f80c9a4692
Drop TypeMappingConfiguration.innerClassNameFactory, use default implementation
...
After 57d209f599 , non-default behavior is no longer used.
#KT-21453 Fixed
2017-11-28 14:15:03 +01:00
Yan Zhulanow
8c7f469030
Parcelable: Use @IgnoredOnParcel annotation instead of Transient cause it's inapplicable on properties (KT-20298)
2017-10-16 21:25:37 +03:00
Yan Zhulanow
27d3ed76a0
Android Extensions: Support non-latin identifiers (KT-20299)
2017-10-16 21:25:34 +03:00
Yan Zhulanow
a63aca08f2
Parcelable: Support custom Parcelers in compiler plugin
2017-10-16 21:25:27 +03:00
Yan Zhulanow
7dbefc1613
Remove generic bound for Parceler
2017-10-16 21:25:25 +03:00
Yan Zhulanow
5acc992956
Disable uninitialized object copying checks for Parcelable writeToParcel() to createFromParcel()
2017-10-13 16:35:42 +03:00
Stanislav Erokhin
e86d2f00ff
Rename isImpl to isActual in descriptors
2017-09-15 18:25:49 +03:00
Stanislav Erokhin
c8ee424f67
Rename isHeader to isExpect in descriptors
2017-09-15 18:25:41 +03:00
Yan Zhulanow
26af128694
Parcelable: produce error on "CREATOR" companion object
2017-09-14 19:36:48 +03:00
Alexander Udalov
b01a3eb747
Drop JvmFileClassesProvider and inline implementations
...
Both of its implementations called the same static function; inline
those and move related utilities to JvmFileClassUtil
2017-09-13 15:46:36 +03:00
Yan Zhulanow
d7ad973843
Kapt, minor: Remove duplicating 'visitInnerClass()' calls (rebase issue)
2017-09-12 22:17:18 +03:00
Yan Zhulanow
7b4e24a454
Android Extensions: Allow LayoutContainers in inner/local classes and objects
2017-09-12 22:07:18 +03:00
Yan Zhulanow
07be1e9d10
Android Extensions: Generate proper receiver for clearFindViewByIdCache() call (KT-19742)
2017-09-12 22:07:17 +03:00
Yan Zhulanow
3f4ddb006a
Android Extensions: Fix compilation when LayoutContainer is used as an interface (KT-19753)
2017-09-12 22:07:16 +03:00