Skip to main content

find_token_at_offset

Function find_token_at_offset 

Source
fn find_token_at_offset(
    tokens: &[PosToken],
    byte_offset: usize,
    text_len: usize,
) -> Option<usize>
Expand description

Find the token index containing the given byte offset.