pub(crate) fn text_range_from_offset<'a>( node: &'a Node<'_>, offset: i32, granularity: Granularity, ) -> Result<TextRange<'a>, Error>