Skip to main content

Module module_loader

Module module_loader 

Source
Expand description

Module loading and management for Shape

This module handles loading, compiling, and caching Shape modules from both the standard library and user-defined sources.

Structs§

FilesystemResolver
Filesystem resolver using standard module path rules.
InMemoryResolver
In-memory resolver used for embedded stdlib and extension modules.
Module
A compiled module ready for execution
ModuleExportSymbol
Exported symbol metadata used by tooling (LSP, analyzers).
ModuleLoader
Module loader manages loading and caching of modules
ResolvedModuleArtifact
A resolved module artifact with optional filesystem origin metadata.

Enums§

Export
An exported item from a module
ModuleCode
Resolved module payload content.
ModuleExportKind
Kind of exported symbol discovered from module source.

Constants§

EMBEDDED_STDLIB_MODULES
Embedded std::... modules (module path, source).

Traits§

ModuleResolver
Trait implemented by all module resolvers.

Functions§

collect_exported_function_names_from_source
Collect exported function names from module source using canonical module-loader export semantics.
collect_exported_symbols
Collect exported symbols from a parsed module AST using runtime export semantics.
resolve_module_path_with_settings
Canonical module resolution entrypoint shared by runtime, VM, and tooling.