Open traceyyoshima opened 6 months ago
This is a more generic test case, Seems we don't have a proper LST model for this
fun f(m: Map<String, Int>): String {
return m.map { ( k : String, v : Int) : Map.Entry<String, Int> -> "$k: $v"}.toString()
}
{ ( k : String, v : Int) : Map.Entry<String, Int> -> "$k: $v"}
is a J.Lambda
.
( k : String, v : Int) : Map.Entry<String, Int>
should be a J.Lambda.Parameters
, my understanding is
( k : String, v : Int)
can fit into a J.Lambda.Parameters
with the following values
J.Lambda.Parameters#parenthesized
= trueJ.Lambda.Parameters#parameters
(type : List<JRightPadded<J>>
) is a list of J.VaraibleDeclarations
, has two elements: k : String
and v : Int
.
However, I didn't find a proper place for Map.Entry<String, Int>
.@knutwannheden and @traceyyoshima , what do you think about the solution for this?