Remove NotNull PSI element parameter from PropertyCodegen.generateBackingField

#KT-31131 Fixed
This commit is contained in:
Alexander Udalov
2019-04-24 12:09:05 +02:00
parent e9b50157da
commit 967a6bd80d
3 changed files with 57 additions and 67 deletions
@@ -68,11 +68,10 @@ internal open class KtUltraLightField(
private val kotlinType: KotlinType? by lazyPub {
when {
declaration is KtProperty && declaration.hasDelegate() ->
propertyDescriptor
?.let {
val context = LightClassGenerationSupport.getInstance(project).analyze(declaration)
PropertyCodegen.getDelegateTypeForProperty(declaration, it, context)
}
propertyDescriptor?.let {
val context = LightClassGenerationSupport.getInstance(project).analyze(declaration)
PropertyCodegen.getDelegateTypeForProperty(it, context)
}
declaration is KtObjectDeclaration ->
(declaration.resolve() as? ClassDescriptor)?.defaultType
declaration is KtEnumEntry -> {