Chachako
09/05/2023, 6:54 PMval foo = { a: Int, b: String -> }
val bar = { a: Int -> }
Result after `dumpKotlinLike`:
val foo: Function1<Int>
field = local fun <anonymous>(a: Int, b: String, a: Int): KFunction1<Int> {
return Unit
}
get
val bar: Function1<Int>
field = local fun <anonymous>(a: Int, a: Int): KFunction1<Int> {
return Unit
}
get
Chachako
09/05/2023, 6:58 PMval abc = {}
What is the correct way to add a parameter in the lambda? Can someone guide me 😢? Is it correct to use expression.function.addValueParameter
in visitFunctionExpression
?Tóth István Zoltán
09/06/2023, 5:29 AMChachako
09/06/2023, 5:47 AMdump
function? Unfortunately, it also has an additional parameter in its result.Tóth István Zoltán
09/12/2023, 7:59 AMdump
.
Can you show it the result of dump? It is more informative that kotlinLike.