FoRRestDp
01/11/2023, 7:49 PMcodeOf(2 + 2)
should return 2 + 2
. I’m trying to use implementation of IrElementTransformerVoidWithContext
and dumpKotlinLike
function to get desired code but dumpKotlinLike
returns:
1. for 2 + 2
: 2.plus(other = 2)
2. for { 2 }
:
local fun <anonymous>(): Int {
return 2
}
I think that I shouldn’t use IR to get exact code but I don’t know what I can use instead of it. Are there any options?Big Chungus
01/11/2023, 11:22 PMBig Chungus
01/11/2023, 11:23 PM