sway_core::semantic_analysis

Module namespace

Source

Structs§

  • The set of items that exist within some lexical scope via declaration or importing.
  • A LexicalScope contains a set of all items that exist within the lexical scope via declaration or importing, along with all its associated hierarchical scopes.
  • A single Module within a Sway project.
  • The set of items that represent the namespace context passed throughout type checking.
  • The root module, from which all other modules can be accessed.

Enums§

Functions§

  • contract_id_value is injected here via forc-pkg when producing the dependency_namespace for a contract which has tests enabled. This allows us to provide a contract’s CONTRACT_ID constant to its own unit tests.

Type Aliases§

  • Represents a lexical scope integer-based identifier, which can be used to reference specific a lexical scope.
  • Represents a lexical scope path, a vector of lexical scope identifiers, which specifies the path from root to a specific lexical scope in the hierarchy.