Recursively replace nodes in ast. The visitor function is called on each node. If
visitor returns a node or an array of nodes, those nodes replace the node passed to visitor.
If null is returned, the node is deleted. If undefined is returned, no replacement happens.
Recursively replace nodes in
ast. Thevisitorfunction is called on each node. Ifvisitorreturns a node or an array of nodes, those nodes replace the node passed tovisitor. Ifnullis returned, the node is deleted. Ifundefinedis returned, no replacement happens.