Making a visitor for selector expansion.