ExtractSymbols

Function ExtractSymbols 

Source
pub async fn ExtractSymbols(
    file_path: &PathBuf,
    content: &[u8],
    language: &str,
) -> Result<Vec<SymbolInfo>>
Expand description

Extract symbols from code for VSCode Outline View and Go to Symbol

Supports multiple programming languages:

  • Rust: struct, impl, fn, mod, enum, trait, type
  • TypeScript/JavaScript: class, interface, function, const, let, var
  • Python: class, def
  • Go: type, func, struct, interface