Skip to main content

export_declarations

Function export_declarations 

Source
pub fn export_declarations(
    path: &Path,
    source: &str,
    export_starts: &[u32],
) -> FxHashMap<u32, ExportDeclaration>
Expand description

The declaring statement of each export of a source file, keyed by the byte offset of the export span. One parse gives the line range and the literal-initializer flag. See declaration_line_ranges for the mapping rules.