[FIR] Generate java declarations for record components of java records

^KT-53964 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-09-30 14:51:58 +03:00
parent 2ed6e9febf
commit c0ad67c4f9
35 changed files with 469 additions and 71 deletions
@@ -191,6 +191,22 @@ sealed class KtFakeSourceElementKind : KtSourceElementKind() {
// with a fake source which refers to declared annotation methods
object ImplicitAnnotationAnnotationConstructorParameter : KtFakeSourceElementKind()
// for java records implicit constructor is generated
// with a fake source which refers to containing class
object ImplicitJavaRecordConstructor : KtFakeSourceElementKind()
// for java record constructor implicit parameters are generated
// with a fake source which refers to declared record components
object ImplicitRecordConstructorParameter : KtFakeSourceElementKind()
// for java records implicit component functions are generated
// with a fake source which refers to corresponding component
object JavaRecordComponentFunction : KtFakeSourceElementKind()
// for java records implicit component fields are generated
// with a fake source which refers to corresponding component
object JavaRecordComponentField : KtFakeSourceElementKind()
// for the implicit field storing the delegated object for class delegation
// with a fake source that refers to the KtExpression that creates the delegate
object ClassDelegationField : KtFakeSourceElementKind()