Function deno_graph::parse_module [−][src]
pub fn parse_module(
specifier: &ModuleSpecifier,
maybe_headers: Option<&HashMap<String, String>>,
content: Arc<String>,
maybe_resolver: Option<&dyn Resolver>,
maybe_parser: Option<&dyn SourceParser>
) -> Result<Module, ModuleGraphError>
Expand description
Parse an individual module, returning the module as a result, otherwise erroring with a module graph error.