Closed andyw8 closed 1 year ago
Yeah for sure. This is part of my backlog to unify the call nodes, which is part of the larger ticket of using the YARP AST instead of the current one.
Thanks @kddnewton, feel free to close this if it's already planned.
Thanks @andyw8 yeah I'll go ahead and close this for now.
For macro methods, parentheses are usually optional, which results in quite different ASTs, e.g. for
the AST is:
but with
test("it does something")
This means it's necessary to implement both
visit_command
andvisit_method_add_block
.@Morriar suggested exploring if there could be a common ancestor so that only a single
visit_
would be needed.