Module sway_core::semantic_analysis::arena
source · [−]Structs
The arena which contains all modules in all dependencies and the main compilation target.
Traits
Functions
Create a new module (Namespace), insert it into the arena, and get its id back.
Given a NamespaceRef that refers to a module, construct a new Namespace
(incurring the
cloning cost) with parent
as its parent.
Given a function func
and a reference to a module ix
, read from MODULES[ix]
with func
.
Given a NamespaceRef, get a clone of the actual Namespace it refers to.
Given a function func
and a reference to a module ix
, mutate MODULES[ix]
with func
.