Daniel Souza Bertoldi
11/27/2022, 4:56 PMDaniel Souza Bertoldi
11/27/2022, 4:58 PMNumberLiteral and CallExpression, they are functions, one only has node as parameter and the other one as both node and parent. Would this be a sealed class? Or just a class with these two functions?Joffrey
11/27/2022, 5:04 PMtraverse accept that interface as second argument. Then you can either create a class implementing that interface, or create an anonymous implementation of the interface on the spot, with the syntax object : TheInterface { ... } where you can define the functions in the ... partJoffrey
11/27/2022, 5:05 PMtraverse accept 2 function arguments instead of that one object. And then you can pass lambdas for those. But I'd rather go the typed wayDaniel Souza Bertoldi
11/27/2022, 5:08 PM