Implements reverse visit.