Function parse_file

Source
pub fn parse_file<'a, T>(
    fm: &'a SourceFile,
    comments: Option<&'a dyn Comments>,
    config: ParserConfig,
    errors: &mut Vec<Error>,
) -> PResult<T>
where Parser<Lexer<'a, StringInput<'a>>>: Parse<T>,
Expand description

Parse a given file as T.

If there are syntax errors but if it was recoverable, it will be appended to errors.