Add a visitIdentifier method to node path locator visitor.