Minor: reformat code

This commit is contained in:
Dmitry Petrov
2018-04-03 11:32:54 +03:00
parent cc14df9e6f
commit e74c448c0a
@@ -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