pub fn parse_file_as_program(
fm: &SourceFile,
syntax: Syntax,
target: EsVersion,
comments: Option<&dyn Comments>,
recovered_errors: &mut Vec<Error>,
) -> PResult<Program>
Expand description
Note: This is recommended way to parse a file.
This is an alias for Parser, Lexer and SourceFileInput, but
instantiation of generics occur in swc_ecma_parser
crate.