Thorin 1.9.0
The Higher ORder INtermediate representation
|
#include <thorin/fe/scopes.h>
Public Types | |
using | Scope = fe::SymMap< std::pair< Loc, const Def * > > |
Public Member Functions | |
Scopes () | |
void | push () |
void | pop () |
Scope * | curr () |
const Def * | query (Dbg) const |
const Def * | find (Dbg) const |
Same as Scopes::query but potentially raises an error. | |
void | bind (Scope *, Dbg, const Def *, bool rebind=false) |
void | bind (Dbg dbg, const Def *def, bool rebind=false) |
void | swap (Scope &other) |
using thorin::Scopes::Scope = fe::SymMap<std::pair<Loc, const Def*> > |
Definition at line 27 of file scopes.cpp.
References thorin::error().
Referenced by thorin::IdPtrn::bind(), and thorin::TuplePtrn::bind().
Same as Scopes::query but potentially raises an error.
Definition at line 21 of file scopes.cpp.
References thorin::error(), and query().
void thorin::Scopes::pop | ( | ) |
Definition at line 7 of file scopes.cpp.
|
inline |
Definition at line 12 of file scopes.cpp.
Referenced by find().