Traverses the given AST node and its descendants depth-first order and calls the protected visit method for each node.
root AST node to traverse.