Skip to main content

complete_text_ranges

Function complete_text_ranges 

Source
pub fn complete_text_ranges(source: &str, definitions: &mut Vec<Definition>)
Expand description

Complete the TextRange of a list of Definition.

Parsers might only give us partial information (e.g. utf-8 byte offsets), but we need the full line/column information in all encodings. This function computes the missing fields.