Add generator to collect type info.