Yan Zhulanow
2044ece335
Kapt: Add DUMP_DEFAULT_PARAMETER_VALUES flag (KT-29355)
...
Put initializers on fields when corresponding primary constructor
parameters have a default value specified. The new behavior
is available under the new 'DUMP_DEFAULT_PARAMETER_VALUES' flag.
Note that this doesn't affect regular functions with default parameter
values, as well as primary constructor parameters without a
'val' or 'var' keyword.
2020-05-27 02:38:42 +09:00
Yan Zhulanow
60aa47553d
Kapt, minor: Move test logic for KaptFlags to the new base class
2020-05-27 02:38:42 +09:00
Dmitry Petrov
b89878a509
Update testData for KAPT tests for new inline class ABI
...
Since class member functions returning inline class values are now
mangled, they are not visible from Java.
2020-05-21 13:56:57 +03:00
Ilya Gorbunov
5eabc1117f
Generate constant expression initializers for special fp values in kapt
...
Update new constant values propagated in kapt class-to-stub test
2020-04-01 08:06:57 +03:00
Yan Zhulanow
9bf63f5399
Kapt, minor: Add extra case for property initializers
2020-01-24 18:12:21 +09:00
Kevin Bierhoff
6d32b3256b
suppress duplicate @Override annotations
2020-01-24 18:12:21 +09:00
Yan Zhulanow
520f9a6da5
Kapt: Support all kinds of constant types (KT-35536)
2020-01-20 17:39:22 +09:00
Dmitriy Novozhilov
76b3964e96
Update testdata according to change compiler version to 1.4
2020-01-17 10:33:50 +03:00
Ivan Gavrilovic
eab6864269
KT-35536: Fix enum constants in KAPT
...
Enum constants are Pair, so make sure to unpack them correctly.
2019-12-24 15:14:47 +09:00
Yan Zhulanow
6bf15b6d37
Kapt: Generate constant value initializers for mutable properties (KT-30164, KT-29355)
2019-10-24 21:33:01 +09:00
Yan Zhulanow
9edd4554a9
Kapt: Support @Deprecated annotations (KT-30368)
2019-10-24 21:33:01 +09:00
Alexander Udalov
01ddac58e1
Add language feature for changed name of property annotations method
...
#KT-31352 Fixed
2019-08-12 16:48:26 +02:00
Alexander Udalov
ea0142da60
Use JVM name of getter in synthetic method for property annotations
...
#KT-31352 In Progress
2019-08-12 16:48:25 +02:00
Alexander Udalov
ceecbfdcea
Minor, fix kapt test data on comments
...
ClassFileToSourceStubConverter relies on JvmDeclarationOrigin which is
used in the codegen, and that origin has slightly changed for the
synthetic '$annotations' method (see
`MemberCodegen.generateSyntheticAnnotationsMethod`) in e9b50157
2019-05-30 19:30:46 +02:00
Yan Zhulanow
a0778ad703
Revert "Kapt: Always use raw types for annotation parameter types (KT-30346)"
...
This reverts commit 66754e62
2019-05-23 19:09:27 +09:00
Yan Zhulanow
49d94f72d2
Revert "Kapt: Generate constant value initializers for mutable properties (KT-30164)"
...
This reverts commit cce2b472
2019-03-22 15:17:12 +03:00
Yan Zhulanow
4c794b1302
Revert "Kapt: Support default constant values for constructor parameters"
...
This reverts commit e4d758b6
2019-03-22 15:17:12 +03:00
Yan Zhulanow
c7678a27e5
Kapt: Fix star indentation in stub Javadoc (KT-30163)
2019-03-20 20:52:23 +03:00
Yan Zhulanow
e4d758b614
Kapt: Support default constant values for constructor parameters
2019-03-20 20:52:23 +03:00
Yan Zhulanow
cce2b472bf
Kapt: Generate constant value initializers for mutable properties (KT-30164)
2019-03-20 20:52:22 +03:00
Yan Zhulanow
ce13982cfc
Kapt: Use constant value references where possible in property initializers
2019-03-20 20:52:22 +03:00
Yan Zhulanow
66754e62da
Kapt: Always use raw types for annotation parameter types (KT-30346)
2019-03-20 20:52:22 +03:00
Yan Zhulanow
ea462091c4
Support new convention for local variables name mangling: '$receiver' -> '$this$<label>' (KT-26913)
2019-02-25 14:43:53 +03:00
Yan Zhulanow
1fbf51ea13
Kapt: Ignore imports for enum entries on import conversion (KT-28220)
2019-02-15 21:23:27 +03:00
Yan Zhulanow
87cad2af02
Kapt: Fix "no interface expected here" in class implementing interface with secondary constructor (KT-27506)
2019-02-15 21:23:27 +03:00
Yan Zhulanow
1c824655d4
Kapt: Fix supertype conversion for DefaultImpls (KT-28306)
2019-02-15 21:23:26 +03:00
Yan Zhulanow
a090541108
Kapt: Update test data (stub converter tests)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
47657df8da
Kapt: Convert valid references to qualified names (KT-26304)
2018-11-27 22:21:27 +09:00
Yan Zhulanow
6a8a8b794d
Kapt: Support correctErrorTypes in suspend functions (KT-27711)
2018-11-27 22:21:27 +09:00
Yan Zhulanow
4c5e982f3e
Kapt: Fix an ArrayIndexOutOfBoundsException for suspend functions with generated return types
2018-11-27 22:21:26 +09:00
Yan Zhulanow
69633e6686
Kapt: Fix stubs for delegated properties with anonymous types (KT-27910)
2018-11-27 22:21:26 +09:00
Yan Zhulanow
7626cf6611
Minor: Update test data for kapt stub converter
2018-10-24 23:44:31 +03:00
Yan Zhulanow
1f6dbc74da
Kapt: Restore constant identifiers for field annotations (KT-27334)
...
The old behavior broke after the refactoring of annotations with use-site targets.
2018-10-24 20:12:37 +03:00
Yan Zhulanow
6d017f07ad
Kapt: Support androidx.annotation.RecentlyNullable annotations (KT-26725)
2018-10-24 20:12:35 +03:00
Yan Zhulanow
ac1dd59472
Kapt: Fix anonymous type transformer, do not use ClassDescriptor.defaultType as a replacement (KT-27119)
2018-10-24 20:12:34 +03:00
Yan Zhulanow
39863edd0e
Kapt: Use correct type mapping mode while mapping super types (KT-27126)
2018-10-24 20:12:32 +03:00
Yan Zhulanow
f6bf35c1f5
Kapt: Fix error type correction for super class constructor calls
2018-10-24 20:12:31 +03:00
Yan Zhulanow
5d2a3c097c
Minor: Update kapt test (nullability annotation is gone in Enum constructors)
2018-10-22 23:06:05 +03:00
Dmitry Petrov
fd57a43665
Update testData for ClassFileToSourceStubConverterTestGenerated
2018-09-25 17:25:02 +03:00
Yan Zhulanow
50858b6fa3
Kapt, minor: Add a test for inline classes (KT-25800)
2018-09-11 16:41:21 +03:00
Yan Zhulanow
72637268c6
Minor, tests: Move EXPECTED_ERROR directives to the file end (to preserve stable line numbers)
2018-09-11 16:40:42 +03:00
Yan Zhulanow
c517b85de1
Kapt: Support also erroneous super interface names
2018-09-11 16:40:42 +03:00
Martin Petrov
dfff00d55f
KT-26540: Support generated superclasses in KAPT
...
https://youtrack.jetbrains.net/issue/KT-26540
Included an integration test that relies on a generated superclass.
2018-09-11 16:40:42 +03:00
Yan Zhulanow
3276e348cc
Fix kapt tests (Kotlin version updated to 1.3)
2018-09-05 17:15:04 +03:00
Yan Zhulanow
b145c97b37
Kapt: Restore line mappings correctly for nested classes and its members
2018-08-24 04:28:13 +05:00
Yan Zhulanow
c83581e6b8
Kapt: Strict mode. Issue an error if the converter fails to process a class (#KT-25518, #KT-24272)
2018-08-24 04:28:11 +05:00
Yan Zhulanow
423bd573a3
Kapt: Do not add imports for overloaded callables (#KT-25071)
2018-07-12 20:36:41 +03:00
Nicolay Mitropolsky
eaa58c3ec2
KtLightParameter should have a KtLightModifierList anyway
...
otherwise we wouldn't get proper annotations for `equals` in data-classes
2018-07-11 09:37:28 +03:00
Yan Zhulanow
2bc45e0484
Kapt: Extract annotation processing running logic from the compiler plugin
2018-06-08 19:37:19 +03:00
Yan Zhulanow
dc3cd01fad
Kapt: Find the right annotation descriptor in case of repeatable annotations (#KT-23427)
2018-04-03 00:16:54 +03:00