Exclude extraction of fake overridden properties

This commit is contained in:
Tamas Vajk
2022-01-13 11:08:27 +01:00
committed by Ian Lynagh
parent 55b8e4400d
commit 44b731c68e
3 changed files with 7 additions and 49 deletions

View File

@@ -577,6 +577,12 @@ open class KotlinFileExtractor(
}
fun extractProperty(p: IrProperty, parentId: Label<out DbReftype>, extractBackingField: Boolean, typeSubstitution: TypeSubstitution?, classTypeArgs: List<IrTypeArgument>?) {
val visibility = p.visibility
if (visibility is DelegatedDescriptorVisibility && visibility.delegate == Visibilities.InvisibleFake) {
return
}
val id = useProperty(p, parentId)
val locId = tw.getLocation(p)
tw.writeKtProperties(id, p.name.asString())