Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(path: &Path, content: &str) -> Result<ParseResult, ParseError>
Expand description

Parse a file given its path and content.

Detects language from file extension, creates appropriate parser, and returns the parse result with AST tree and metadata.