Hey all. I have
CallExpr syntax node. How do I resolve the the function semantically? For
MethodCallExpr I did
semantics.resolve_method_call like @Laurențiu Nicola suggested. And I followed similarly for other stuff. But I am stumped for this. For example, I have a call expr
Subcommand::from("help"). How can I find if
call_expr.expr is resolved to
I want to catch cases for
(|| Subcommand::from)()("help") etc..
Or I guess, I could alternatively try to find whether
from in a path expr end resolves to
you get the type of the callee and inspect it, e.g. using
Thanks, that worked.