Skip to main content

extract_astro

Function extract_astro 

Source
pub fn extract_astro(source: &str) -> SemanticAnalysis
Expand description

Extract Astro frontmatter imports/exports via the TypeScript extractor.

Splits on lines starting with ---, extracts the block between the first and second delimiter, then delegates to SemanticExtractor::extract with language = "typescript". Returns Default::default when no frontmatter is found or extraction fails.