Skip to main content

lower

Function lower 

Source
pub fn lower(
    stmts: Vec<Stmt>,
    info: &ModuleInfo,
    referrer: &str,
    generator: bool,
) -> Expr
Expand description

Lower a parsed module body (see the module docs) to the function expression the loader instantiates. referrer is the module’s filename, which every import(…) in it resolves against; generator selects the form a module in an import cycle needs.