[FIR] Code cleanup in JavaClassUseSiteMemberScope
This commit is contained in:
+3
-8
@@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user