pub fn parse_with_language(content: &str, language: Language) -> Vec<Symbol>Expand description
Parse content with explicit language (bypasses extension detection)
Use this when you already know the language and want to avoid the overhead of extension-based detection.
§Arguments
content- Source code content to parselanguage- Programming language
§Returns
Vector of extracted symbols, or empty vector if parsing fails.
§Examples
use infiniloom_engine::parser::{parse_with_language, Language};
let code = "fn main() {}";
let symbols = parse_with_language(code, Language::Rust);