Module move_model::model

source ·
Expand description

Provides a model for a set of Move modules (and scripts, which are handled like modules). The model allows to access many different aspects of the Move code: all declared functions and types, their associated bytecode, their source location, their source text, and the specification fragments.

The environment is nested into a hierarchy:

  • A GlobalEnv which gives access to all modules plus other information on global level, and is the owner of all related data.
  • A ModuleEnv which is a reference to the data of some module in the environment.
  • A StructEnv which is a reference to the data of some struct in a module.
  • A FunctionEnv which is a reference to the data of some function in a module.

Structs

Enums

Constants

Traits

Type Definitions

  • Alias for the Loc variant of MoveIR. This uses a &static str instead of FileId for the file name.
  • Identifiers