[FIR] Code cleanup in JavaClassUseSiteMemberScope

This commit is contained in:
Mikhail Glukhikh
2020-11-10 12:21:53 +03:00
parent fb961f7070
commit 2725930460
@@ -61,7 +61,7 @@ class JavaClassUseSiteMemberScope(
getterSymbol: FirNamedFunctionSymbol, getterSymbol: FirNamedFunctionSymbol,
setterSymbol: FirNamedFunctionSymbol?, setterSymbol: FirNamedFunctionSymbol?,
syntheticPropertyName: Name, syntheticPropertyName: Name,
): FirAccessorSymbol? { ): FirAccessorSymbol {
return buildSyntheticProperty { return buildSyntheticProperty {
session = this@JavaClassUseSiteMemberScope.session session = this@JavaClassUseSiteMemberScope.session
name = syntheticPropertyName name = syntheticPropertyName
@@ -117,13 +117,8 @@ class JavaClassUseSiteMemberScope(
} }
} }
} }
val accessorSymbol = generateAccessorSymbol( val accessorSymbol = generateAccessorSymbol(getterSymbol!!, setterSymbol, propertyName)
getterSymbol!!, setterSymbol, propertyName overrideCandidates += accessorSymbol
)
if (accessorSymbol != null) {
// NB: accessor should not be processed directly unless we find matching property symbol in supertype
overrideCandidates += accessorSymbol
}
} }
} }
} }