The node you are looking for is at Texinfo::Common $result = element_is_inline($element, $check_current).