Skip to main content

find_enclosing_scope

Function find_enclosing_scope 

Source
pub fn find_enclosing_scope(
    source: &str,
    file_ext: &str,
    line: usize,
) -> Option<CodeScope>
Expand description

Find the innermost named scope (function/class/module) containing the given line. line is 1-indexed.