Skip to main content

analyze_source

Function analyze_source 

Source
pub fn analyze_source(
    source: &str,
    path: &str,
    content_hash: u64,
    pool: &mut ParserPool<'_>,
) -> FileAnalysis
Expand description

Parses and analyzes one source file.

Symbol and import extraction share syntax trees. Registered injection queries parse embedded source with another language from the same registry while preserving locations in the containing file. Unsupported paths, parser failures, and sources whose byte offsets cannot fit in u32 produce empty results.