Visit comparator nodes.