Function libdiffsitter::parse::parse_file
source · pub fn parse_file(
p: &Path,
language: Option<&str>,
config: &GrammarConfig
) -> Result<Tree, LoadingError>
Expand description
Parse a file to an AST
The user may optionally supply the language to use. If the language is not supplied, it will be inferrred from the file’s extension.