ruby-syntax-tree / syntax_tree

Interact with the Ruby syntax tree
https://ruby-syntax-tree.github.io/syntax_tree/
MIT License
574 stars 55 forks source link

Make MutationVisitor visit all nodes #470

Open spect88 opened 3 months ago

spect88 commented 3 months ago

Hi, I tried to use MutationVisitor in my gem, but realized that it doesn't traverse the entire AST.

The most surprising thing perhaps was that anything assigned to a variable wouldn't be traversed. Looking at the documentation, this doesn't seem to be intended.