Skip to main content

find_module_path_in_file

Function find_module_path_in_file 

Source
pub fn find_module_path_in_file(
    file_path: &str,
    line_number: usize,
    module_root: &Path,
) -> Option<String>
Expand description

Reads the file and extracts the module path at the given line, using a known module root.