The node you are looking for is at Texinfo::Convert::Utils $result = add_heading_number($converter, $heading_element, $heading_text, $do_number).