mutual decl* end groups RecDecls that may refer to each other. More...
#include <mim/ast/ast.h>
Public Types | |
| using | VLA_Types = std::tuple<Ptr<RecDecl>> |
Public Member Functions | |
| MutualDecl (Loc loc) | |
| auto | decls () 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 |
mutual decl* end groups RecDecls that may refer to each other.
| using mim::ast::MutualDecl::VLA_Types = std::tuple<Ptr<RecDecl>> |
|
inline |
Definition at line 1253 of file ast.h.
References mim::ast::Node::loc(), and mim::ast::ValDecl::ValDecl().
|
overridevirtual |
|
inline |
|
overridevirtual |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 328 of file stream.cpp.
References decls(), and mim::ast::S::S().