Minor: reformat code
This commit is contained in:
@@ -44,10 +44,10 @@ fun IrFunction.getIrValueParameter(parameter: ValueParameterDescriptor): IrValue
|
|||||||
valueParameters.getOrElse(parameter.index) {
|
valueParameters.getOrElse(parameter.index) {
|
||||||
throw AssertionError("No IrValueParameter for $parameter")
|
throw AssertionError("No IrValueParameter for $parameter")
|
||||||
}.also { found ->
|
}.also { found ->
|
||||||
assert(found.descriptor == parameter) {
|
assert(found.descriptor == parameter) {
|
||||||
"Parameter indices mismatch at $descriptor: $parameter != ${found.descriptor}"
|
"Parameter indices mismatch at $descriptor: $parameter != ${found.descriptor}"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun IrFunction.getDefault(parameter: ValueParameterDescriptor): IrExpressionBody? =
|
fun IrFunction.getDefault(parameter: ValueParameterDescriptor): IrExpressionBody? =
|
||||||
getIrValueParameter(parameter).defaultValue
|
getIrValueParameter(parameter).defaultValue
|
||||||
|
|||||||
Reference in New Issue
Block a user