mrdocs::js::Scope::Scope

Constructor.

Synopsis

Scope(Context const& ctx) noexcept;

Description

Construct a scope for the given context.

Variables defined in this scope will be allocated on top of the specified context heap.

When the Scope is destroyed, the variables defined in this scope will be popped from the heap.

Parameters

Name

Description

ctx

The context to use.

Created with MrDocs