[FIR] Minor. Fix code style
This commit is contained in:
+4
-4
@@ -114,20 +114,20 @@ private class FirCallArgumentsProcessor(private val function: FirFunction<*>) {
|
|||||||
|
|
||||||
val parameter = parameters.getOrNull(currentPositionedParameterIndex)
|
val parameter = parameters.getOrNull(currentPositionedParameterIndex)
|
||||||
if (parameter == null) {
|
if (parameter == null) {
|
||||||
addDiagnostic(TooManyArguments(argument, function))
|
addDiagnostic(TooManyArguments(argument, function))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parameter.isVararg) {
|
return if (!parameter.isVararg) {
|
||||||
currentPositionedParameterIndex++
|
currentPositionedParameterIndex++
|
||||||
|
|
||||||
result[parameter] = ResolvedCallArgument.SimpleArgument(argument)
|
result[parameter] = ResolvedCallArgument.SimpleArgument(argument)
|
||||||
return false
|
false
|
||||||
}
|
}
|
||||||
// all position arguments will be mapped to current vararg parameter
|
// all position arguments will be mapped to current vararg parameter
|
||||||
else {
|
else {
|
||||||
addVarargArgument(argument)
|
addVarargArgument(argument)
|
||||||
return true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user