pub(crate) fn text_position_from_offset<'a>( node: &'a Node<'_>, offset: i32, ) -> Option<TextPosition<'a>>