Skip to main content

Module module_utils

Module module_utils 

Source
Expand description

Shared module resolution utilities.

Types and functions used by both shape-runtime (module loader) and shape-vm (import inlining) to inspect module exports and manipulate AST item lists during import resolution.

Structs§

ModuleExportSymbol
Exported symbol metadata discovered from a module’s AST.

Enums§

ModuleExportKind
High-level kind of an exported symbol.

Functions§

collect_exported_symbols
Collect exported symbol metadata from a parsed module AST.
direct_export_target
Map a direct (non-Named) export item to its name and kind.
export_kind_description
Human-readable description of an export kind for diagnostics.
strip_import_items
Remove all Item::Import entries from a list of AST items.