Expand description

Type checking for Sway.

Re-exports

pub use ast_node::TypedConstantDeclaration;
pub use ast_node::TypedDeclaration;

Modules

Structs

The arena which contains all modules in all dependencies and the main compilation target.

A namespace represents all items that exist either via declaration or importing.

Enums

Represents the different variants of the AST.

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.

Type Definitions