The node you are looking for is at Texinfo::Transformations complete_tree_nodes_menus($tree, $add_section_names_in_entries).