Deprecate KmProperty.hasGetter(hasSetter) in favor of KmProperty.getter(setter)
as a follow-up of flag deprecation. #KT-59440
This commit is contained in:
committed by
Space Team
parent
389632ed53
commit
8b821e1feb
@@ -123,9 +123,6 @@ object CirDeserializers {
|
||||
}
|
||||
|
||||
private fun propertyGetter(source: KmProperty, typeResolver: CirTypeResolver): CirPropertyGetter? {
|
||||
if (!source.hasGetter)
|
||||
return null
|
||||
|
||||
val isDefault = !source.getter.isNotDefault
|
||||
val annotations = annotations(source.getter.hasAnnotations, typeResolver, source::getterAnnotations)
|
||||
|
||||
@@ -140,9 +137,6 @@ object CirDeserializers {
|
||||
}
|
||||
|
||||
private fun propertySetter(source: KmProperty, typeResolver: CirTypeResolver): CirPropertySetter? {
|
||||
if (!source.hasSetter)
|
||||
return null
|
||||
|
||||
val setter = source.setter ?: return null
|
||||
|
||||
return CirPropertySetter.createInterned(
|
||||
|
||||
@@ -32,8 +32,6 @@ internal fun KmProperty.modifiersFrom(cp: CirProperty, isExpect: Boolean) {
|
||||
visibility = cp.kmVisibility
|
||||
modality = cp.kmModality
|
||||
kind = cp.kind.kmMemberKind
|
||||
hasGetter = cp.getter != null
|
||||
hasSetter = cp.setter != null
|
||||
isDelegated = cp.isDelegate
|
||||
this.isExpect = isExpect
|
||||
isVar = cp.isVar
|
||||
|
||||
Reference in New Issue
Block a user