exposed the visitNode function for utilization in external visitors