ArkScript
A small, fast, functional and scripting language for video games
|
#include <NameResolutionPass.hpp>
Public Member Functions | |
void | add (const std::string &name, bool is_mutable) |
Add a variable to the scope, given a mutability status. | |
std::optional< Variable > | get (const std::string &name) const |
Try to return a variable from this scope with a given name. | |
bool | has (const std::string &name) const |
Private Attributes | |
std::unordered_set< Variable > | m_vars {} |
Definition at line 94 of file NameResolutionPass.hpp.
void Ark::internal::ScopeResolver::Scope::add | ( | const std::string & | name, |
bool | is_mutable ) |
Add a variable to the scope, given a mutability status.
name | |
is_mutable |
Definition at line 12 of file NameResolutionPass.cpp.
References m_vars.
|
nodiscard |
Try to return a variable from this scope with a given name.
name |
Definition at line 17 of file NameResolutionPass.cpp.
References Ark::internal::Variable::name.
|
nodiscard |
Definition at line 24 of file NameResolutionPass.cpp.
References Ark::internal::Variable::name.
|
private |
Definition at line 114 of file NameResolutionPass.hpp.
Referenced by add().