[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
@@ -180,7 +180,7 @@ internal class KtFirScopeProvider(
return KtCompositeTypeScope(
listOfNotNull(
convertToKtTypeScope(firTypeScope),
FirSyntheticPropertiesScope.createIfSyntheticNamesProviderIsDefined(firSession, firTypeScope)?.let { convertToKtTypeScope(it) }
FirSyntheticPropertiesScope.createIfSyntheticNamesProviderIsDefined(firSession, type.coneType, firTypeScope)?.let { convertToKtTypeScope(it) }
),
token
)
@@ -278,4 +278,4 @@ private class EnumEntryContainingNamesAwareScope(private val originalScope: FirC
override fun processDeclaredConstructors(processor: (FirConstructorSymbol) -> Unit) {
// enum entries does not have constructors
}
}
}