buildInlineLambdaExpression
fun IrPluginContext.buildInlineLambdaExpression(enclosing: IrFunction, returnType: IrType, extensionReceiverType: IrType? = null, extensionReceiverName: Name = Name.identifier($$"$this$lambda")): Log4kIrFunctionExpression(source)
buildInlineLambda wrapped in the Log4kIrFunctionExpression the transformers pass as the f argument of the inline runtime helpers (logged/measure/traced): a () -> T — or, with extensionReceiverType, an R.() -> T — carrying enclosing's original body. The moved body is reachable through Log4kIrFunctionExpression.function (e.g., to prepend statements to it).