The node you are looking for is at Texinfo::Transformations regenerate_master_menu($translations, $labels).