Skip to main content

parse_module

Function parse_module 

Source
pub fn parse_module(src: &str) -> Result<Vec<Stmt>, String>
Expand description

Parse src with the Module goal (ECMA-262 16.2.1): the code is strict, await is an operator at the top level, return there is an error, and the top level may hold import/export declarations. A hashbang line is a comment only at the very start of the text.