Adds support for around_* hooks that must yield to continue visiting child nodes. This allows implementing visitors that can stop traversing the tree.
It also allows running callback logic before & after visiting child nodes.
Questions
The new around_* hooks make the on_* hooks unnecessary. Should we remove support for the on_* hooks? It would be a breaking change but we haven't released v1 yet so it could be a good time.
What
Adds support for
around_*
hooks that must yield to continue visiting child nodes. This allows implementing visitors that can stop traversing the tree.It also allows running callback logic before & after visiting child nodes.
Questions
The new
around_*
hooks make theon_*
hooks unnecessary. Should we remove support for theon_*
hooks? It would be a breaking change but we haven't released v1 yet so it could be a good time.Rendered Documentation Sample