pub fn parse_file(path: &Path, source: &str, language: Language) -> ProjectFileExpand description
Parse a source file by dispatching to the appropriate language parser.
This is the primary entry point for parsing. It:
- Selects the parser for the given
Language. - Delegates to the parser’s
Parser::parsemethod. - Overwrites
content_hashwith a SHA-256 digest ofsource. - On parser error, returns an empty
ProjectFilewith atracing::warnlog (graceful degradation).