[FIR] Extract common helper for checking of (expect) default value
This commit is contained in:
committed by
Space Team
parent
1d3a127f52
commit
988dbfc5c8
+1
-2
@@ -701,8 +701,7 @@ class FirElementSerializer private constructor(
|
||||
): ProtoBuf.ValueParameter.Builder = whileAnalysing(session, parameter) {
|
||||
val builder = ProtoBuf.ValueParameter.newBuilder()
|
||||
|
||||
val declaresDefaultValue = parameter.defaultValue != null ||
|
||||
function.symbol.getSingleExpectForActualOrNull().containsDefaultValue(index)
|
||||
val declaresDefaultValue = function.itOrExpectHasDefaultParameterValue(index)
|
||||
|
||||
val flags = Flags.getValueParameterFlags(
|
||||
additionalAnnotations.isNotEmpty()
|
||||
|
||||
Reference in New Issue
Block a user