renamed Visit to NodeVisitMode