This is strange. The visit functions only take a tree.