[FIR] Add compatibleOnly parameter to getSingleCompatibleExpectForActualOrNull

Rename `getSingleCompatibleExpectForActualOrNull` to `getSingleExpectForActualOrNull`
This commit is contained in:
Ivan Kochurkin
2023-05-31 19:57:13 +02:00
committed by Space Team
parent d600d768a6
commit 1e09e8663c
6 changed files with 21 additions and 17 deletions
@@ -700,7 +700,7 @@ class FirElementSerializer private constructor(
val builder = ProtoBuf.ValueParameter.newBuilder()
val declaresDefaultValue = parameter.defaultValue != null ||
function.symbol.getSingleCompatibleExpectForActualOrNull().containsDefaultValue(index)
function.symbol.getSingleExpectForActualOrNull(compatibleOnly = true).containsDefaultValue(index)
val flags = Flags.getValueParameterFlags(
additionalAnnotations.isNotEmpty() || parameter.nonSourceAnnotations(session).isNotEmpty(),