anx dbg = path; - a compiler-exposed alias sharing its target's annex slot. More...
#include <mim/ast/ast.h>
Public Member Functions | |
| AliasDecl (Loc loc, Vis vis, Dbg dbg, Ptr< Path > path) | |
| Dbg | dbg () const override |
| The name this Decl introduces; anonymous if it has none. | |
| const Path * | path () 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 |
Definition at line 1116 of file ast.h.
References dbg(), mim::ast::Node::loc(), path(), mim::ast::ValDecl::ValDecl(), and mim::ast::ValDecl::vis().
Referenced by bind().
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 |
Implements mim::ast::ValDecl.
Definition at line 399 of file bind.cpp.
References AliasDecl(), dbg(), mim::ast::Node::loc(), and path().
|
inlineoverridevirtual |
The name this Decl introduces; anonymous if it has none.
Reimplemented from mim::ast::Decl.
Definition at line 1121 of file ast.h.
Referenced by AliasDecl(), bind(), emit(), and stream().
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 531 of file emit.cpp.
References dbg(), mim::ast::Decl::def_, and path().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 235 of file stream.cpp.
References dbg(), path(), mim::ast::Priv, mim::ast::S::S(), and mim::ast::ValDecl::vis().