A further tag sharing AxmDecl::type/normalizer/curry/trip with the AxmDecl that owns them. More...
#include <mim/ast/ast.h>
Public Member Functions | |
| Sibling (Loc loc, Vis vis, Dbg dbg, const AxmDecl *owner) | |
| Dbg | dbg () const override |
| The name this Decl introduces; anonymous if it has none. | |
| const AxmDecl * | owner () const |
| void | bind (Scopes &) const override |
| void | emit (Emitter &) const override |
| void | stream (fe::Tab &, std::ostream &) const override |
| std::pair< AnnexInfo *, sub_t > | annex_sub () const override |
| 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::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 const Scope * | scope () const |
| Non-nullptr if this Decl is a module whose members a Path may walk into. | |
| 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 |
A further tag sharing AxmDecl::type/normalizer/curry/trip with the AxmDecl that owns them.
Only ever synthesized by Parser::parse_axm_group when desugaring axm tag.(sub_0, ..., sub_n-1): ...; into mod tag { axm sub_0: ...; ... }: AxmDecl::Sibling is sub_1, ..., sub_n-1.
Definition at line 972 of file ast.h.
References mim::ast::AxmDecl::AxmDecl(), dbg(), mim::ast::Node::loc(), owner(), mim::ast::ValDecl::ValDecl(), and mim::ast::ValDecl::vis().
|
inlineoverridevirtual |
The (AnnexInfo, sub) slot this decl registered itself under as an annex; {nullptr, 0} if it isn't one.
Reimplemented from mim::ast::Decl.
|
overridevirtual |
|
inlineoverridevirtual |
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 520 of file emit.cpp.
References mim::ast::AxmDecl::curry(), dbg(), mim::ast::Decl::def_, mim::ast::AxmDecl::mim_type(), owner(), and mim::ast::AxmDecl::trip().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 228 of file stream.cpp.
References dbg(), mim::ast::AxmDecl::normalizer(), owner(), mim::ast::Priv, mim::ast::S::S(), mim::ast::AxmDecl::type(), and mim::ast::ValDecl::vis().