mod dbg { decls }; also the base of the anonymous File. More...
#include <mim/ast/ast.h>
Public Member Functions | |
| ModDecl (Loc loc, Vis vis, Dbg dbg, Scope &members, fe::View< Ptr< ValDecl > > decls) | |
| Dbg | dbg () const override |
| The name this Decl introduces; anonymous if it has none. | |
| auto | decls () const |
| const Scope * | scope () const override |
| Non-nullptr if this Decl is a module whose members a Path may walk into. | |
| 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 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 |
Protected Member Functions | |
| Scope & | members () const |
| void | bind_decls (Scopes &) const |
| void | emit_decls (Emitter &) const |
| 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) | |
Additional Inherited Members | |
| Protected Attributes inherited from mim::ast::Decl | |
| const Def * | def_ = nullptr |
|
inline |
Definition at line 1173 of file ast.h.
References dbg(), decls(), mim::ast::Node::loc(), members(), mim::ast::ValDecl::ValDecl(), and mim::ast::ValDecl::vis().
Referenced by mim::ast::File::File().
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 509 of file bind.cpp.
References bind_decls(), dbg(), and members().
|
protected |
Definition at line 504 of file bind.cpp.
References decls().
Referenced by mim::ast::File::bind(), and bind().
|
inlineoverridevirtual |
|
inline |
Definition at line 1180 of file ast.h.
Referenced by bind_decls(), emit_decls(), mim::ast::File::File(), ModDecl(), mim::ast::File::stream(), and stream().
|
overridevirtual |
|
protected |
Definition at line 539 of file emit.cpp.
References decls().
Referenced by mim::ast::File::emit(), and emit().
|
inlineprotected |
Definition at line 1188 of file ast.h.
Referenced by mim::ast::File::bind(), bind(), mim::ast::File::File(), and ModDecl().
|
inlineoverridevirtual |
Non-nullptr if this Decl is a module whose members a Path may walk into.
Reimplemented from mim::ast::Decl.
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 240 of file stream.cpp.
References dbg(), decls(), mim::ast::ValDecl::mods(), and mim::ast::stream_decls().