#include <mim/ast/ast.h>
Public Member Functions | |
| LetDecl (Loc loc, Mods mods, Ptr< Ptrn > ptrn, Ptr< Expr > value) | |
| const Ptrn * | ptrn () const |
| const Expr * | value () const |
| void | bind (Scopes &) const override |
| void | emit (Emitter &) const override |
| void | stream (fe::Tab &, std::ostream &) const override |
| Public Member Functions inherited from mim::ast::ValDecl | |
| Vis | vis () const override |
| A ValDecl's own Vis; Pub for anything else (Ptrn, Import, ...), which the priv/pub system ignores. | |
| bool | is_extern () const override |
| Whether this decl crosses the Mim/native boundary (extern); body presence picks which side supplies it. | |
| bool | is_anx () const override |
| Whether this decl is registered as a compiler-exposed annex (anx). | |
| const Mods & | mods () const |
| Public Member Functions inherited from mim::ast::Decl | |
| const Def * | def () const |
| virtual Dbg | dbg () const |
| The name this Decl introduces; anonymous if it has none. | |
| virtual const Scope * | scope () const |
| Non-nullptr if this Decl is a module whose members a Path may walk into. | |
| virtual std::pair< AnnexInfo *, sub_t > | annex_sub () const |
| The (AnnexInfo, sub) slot this decl registered itself under as an annex; {nullptr, 0} if it isn't one. | |
| Public Member Functions inherited from mim::ast::Node | |
| Loc | loc () const |
| void | dump () const |
Additional Inherited Members | |
| Protected Member Functions inherited from mim::ast::ValDecl | |
| ValDecl (Loc loc, Mods mods={}) | |
| Protected Member Functions inherited from mim::ast::Decl | |
| Decl (Loc loc) | |
| Protected Member Functions inherited from mim::ast::Node | |
| Node (Loc loc) | |
| Protected Attributes inherited from mim::ast::Decl | |
| const Def * | def_ = nullptr |
Definition at line 947 of file ast.h.
References mim::ast::Node::loc(), mim::ast::ValDecl::mods(), ptrn(), mim::ast::ValDecl::ValDecl(), and value().
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 427 of file bind.cpp.
References mim::ast::IdPtrn::bind(), mim::ast::ValDecl::is_anx(), ptrn(), value(), and mim::ast::ValDecl::vis().
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 546 of file emit.cpp.
References mim::ast::Decl::def_, mim::ast::Node::loc(), ptrn(), and value().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 258 of file stream.cpp.
References mim::ast::ValDecl::mods(), ptrn(), mim::ast::S::S(), and value().
|
inline |