ViewStructure visitor which extracts information about the type of definition