Skip to main content

Module scope

Module scope 

Source
Expand description

Scope Management Module Scope management for macro compilation.

Tracks macro call stack context to ensure labels and arguments resolve correctly during bytecode generation.

§Core Concepts

§ScopeId

Uniquely identifies where a label is defined or where a jump should resolve to. Prevents label collisions between different macro invocations.

§ScopeManager

Tracks the current macro call stack. Provides scope identifiers for label operations and access to the call stack for argument resolution.

Structs§

ScopeFrame
A single entry in the macro call stack.
ScopeId
Uniquely identifies a scope for label storage and resolution.
ScopeManager
Tracks the macro call stack during compilation.