The node you are looking for is at Texinfo::Structuring warn_non_empty_parts($registrar, $customization_information, $global_commands).