The node you are looking for is at Texinfo::Parser $labels_information, $targets_list, $nodes_list = labels_information($parser).