Skip to main content

structural_symbol_diff

Function structural_symbol_diff 

Source
pub fn structural_symbol_diff(
    old_source: &str,
    new_source: &str,
    extension: &str,
) -> Vec<StructuralSymbolDiff>
Expand description

Compare two sources and report structural declaration changes for extension (e.g. "rs").

Identity is (symbol_name, start_line) within each version; body text inequality ⇒ Modified. Returns an empty list when tree-sitter is disabled or the language is unsupported.