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
Yan Zhulanow
46973bf1fe
Kapt: Do not escape cyrillic letters in stubs (#KT-23286)
2018-04-02 19:26:37 +03:00
Mikhail Zarechenskiy
4ebd11a7ae
Refactoring: rename parameter to argument for annotation diagnostics
2018-03-22 03:59:55 +03:00
Yan Zhulanow
edcf0aef53
Kapt: Allow Kotlin @Repeatable annotations (KT-22451)
...
We don't generate a wrapper for repeatable annotations, and Javac complains to it.
2018-02-09 19:11:03 +03:00
Yan Zhulanow
6c4a2db34b
Kapt: Enums inside enum values should be forbidden (KT-22582)
2018-02-08 19:36:38 +03:00
Yan Zhulanow
1f81c0cdfe
Kapt: Fix compilation errors when the referenced class has '$' in the beginning of its name (KT-22493)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
5fc9c5671c
Kapt: Escape nested comments in doc comments (KT-22469)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
abda4bfb57
Kapt: Remove comments inside enum values (KT-22350)
2018-02-06 22:16:01 +03:00
Yan Zhulanow
4e8969e1c2
Kapt: Fix array of anonymous type handling (KT-22468)
2018-02-06 22:16:00 +03:00
Yan Zhulanow
5668a7af92
Kapt: Replace original Javac diagnostic messages with those with Kotlin location mapped
...
There is no Messages dialog in newer versions of IDEA/Android Studio in which the error messages were mapped before. The new Build window shows only the original locations, so now we need to replace Java file diagnostics with ones mapped to Kotlin source files.
The side effect is that diagnostics on the same locations are automatically merged.
2018-02-06 22:16:00 +03:00
Yan Zhulanow
b0e97de8a8
Kapt: Move line metadata to .kaptMetadata external files (KT-22386)
...
Placing location table inside .java file triggers annotation processor to run on each line table modification (even when the stub declarations themselves are the same). So we move it to the separate file.
2018-02-06 22:16:00 +03:00
Yan Zhulanow
7b055c2172
Kapt: Prefer non-aliased imports over aliased. Make sure the imported short names are unique (KT-22083)
2018-01-25 22:03:29 +03:00
Yan Zhulanow
df19162c8c
Kapt: Store line information in a file doc comment, instead of annotations (KT-21936)
2018-01-15 12:39:28 +09:00
Yan Zhulanow
4c96453a4b
Kapt: Annotations on enum constants are not kept on the generated stub (KT-21433)
2017-12-15 02:35:12 +09:00
Yan Zhulanow
9e43992094
Minor: Update kapt converter test for imports
2017-12-01 22:53:21 +09:00
Yan Zhulanow
a4a7db06d2
Kapt: force resolve import references in partial analysis mode (required for import conversion in correctErrorTypes)
2017-12-01 22:53:21 +09:00