Skip to main content

Module source

Module source 

Source

Structs§

LoadedModule
A parsed module ready for backend consumption.

Functions§

canonicalize_path
find_module_file
load_module_tree
Load a dependency tree starting from root_deps. Returns modules in dependency order (leaves first). Validates module declarations and detects circular imports.
load_module_tree_from_map
Sibling of load_module_tree that resolves dependency modules from an in-memory file map instead of the filesystem. Used by the playground so a browser-side virtual fs can compile a multi-file project without disk IO.
parse_source
require_module_declaration
Enforce module contract for file-based programs: exactly one module declaration and it must be the first top-level item.