Closure management.
More...
#include <Closure.hpp>
Closure management.
Definition at line 36 of file Closure.hpp.
◆ Closure() [1/2]
Construct a new Closure object.
- Parameters
-
scope | the scope of the function turned into a closure |
pa | the current page address of the function turned into a closure |
Definition at line 11 of file Closure.cpp.
◆ Closure() [2/2]
Ark::internal::Closure::Closure |
( |
const std::shared_ptr< Scope > & | scope_ptr, |
|
|
PageAddr_t | pa ) |
|
noexcept |
Construct a new Closure object.
- Parameters
-
scope_ptr | a shared pointer to the scope of the function turned into a closure |
pa | the current page address of the function turned into a closure |
Definition at line 16 of file Closure.cpp.
◆ hasFieldEndingWith()
bool Ark::internal::Closure::hasFieldEndingWith |
( |
const std::string & | end, |
|
|
VM & | vm ) const |
|
nodiscard |
◆ pageAddr()
PageAddr_t Ark::internal::Closure::pageAddr |
( |
| ) |
const |
|
inlinenodiscard |
- Returns
- PageAddr_t the bytecode page address this closure refers to
Definition at line 62 of file Closure.hpp.
References m_page_addr.
◆ refScope()
Scope & Ark::internal::Closure::refScope |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ scope()
const Scope & Ark::internal::Closure::scope |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ scopePtr()
const std::shared_ptr< Scope > & Ark::internal::Closure::scopePtr |
( |
| ) |
const |
|
inlinenodiscard |
◆ toString()
std::string Ark::internal::Closure::toString |
( |
VM & | vm | ) |
const |
|
noexcept |
◆ operator<
◆ operator==
◆ m_page_addr
◆ m_scope
std::shared_ptr<Scope> Ark::internal::Closure::m_scope |
|
private |
The documentation for this class was generated from the following files:
- /Users/fola/Documents/ArkScript/Ark/include/Ark/VM/Value/Closure.hpp
- /Users/fola/Documents/ArkScript/Ark/src/arkreactor/VM/Value/Closure.cpp