Function deno_ast::parse_program

source ยท
pub fn parse_program(
    params: ParseParams,
) -> Result<ParsedSource, ParseDiagnostic>
Expand description

Parses the provided information attempting to figure out if the provided text is for a script or a module.