Skip to main content

parse_items

Function parse_items 

Source
pub fn parse_items(
    source: &str,
    source_map: &mut SourceMap,
    ids: &mut NodeIdGen,
) -> (Vec<Item>, Vec<Diag>)
Expand description

Parses source as module-level items. A synthetic file is added to source_map so that diagnostics can point into the generated code.