The node you are looking for is at Texinfo::Transformations protect_hashchar_at_line_beginning($registrar, $customization_information, $tree).