text_range_from_offset

Function text_range_from_offset 

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