Skip to main content

Module module

Module module 

Source
Expand description

Module loading, linking, and universe evaluation (module.ts, §8.1–8.5, §8.8): files are modules, the import graph is acyclic, exports are explicit; packages (§8.6–8.7) plug in through the resolver hook.

Structs§

Bind
a document bound to an input (§10): module is the one declaring the input (the entry when unset)
LoadResult
a universe loaded from an entry module
Module
one module of a universe

Functions§

load_modules
resolver maps package specifiers to paths (packages, §8.6); overrides maps absolute paths to buffer contents (editors)
run_universe
Evaluate a universe: bind the documents to their inputs, then every root of every module (§9.2), force, validate; returns the entry’s engine and every diagnostic in canonical order.