Skip to main content

search_for_pattern_smart

Function search_for_pattern_smart 

Source
pub fn search_for_pattern_smart(
    project: &ProjectRoot,
    pattern: &str,
    file_glob: Option<&str>,
    max_results: usize,
    context_lines_before: usize,
    context_lines_after: usize,
) -> Result<Vec<SmartPatternMatch>>
Expand description

Smart search: pattern search enriched with enclosing symbol context. For each match, finds the nearest enclosing function/class/method via tree-sitter.