-
Hi, there's simple way (without the need to implement visit_xxx for every type of node) to traverse an entire AST and print the node type and span for each node? I found a previous issue (#501) on this topic, but the example requires a generic version of the Fold/Visit trait that seems outdated. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
kdy1
Jan 9, 2023
Replies: 1 comment
-
No. You should use visitor |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
edupsousa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. You should use visitor