decls expr or expr where decls if DeclExpr::is_where. More...
#include <mim/ast/ast.h>
Public Types | |
| using | VLA_Types = std::tuple<Ptr<ValDecl>> |
Public Member Functions | |
| DeclExpr (Loc loc, Ptr< Expr > expr, bool is_where) | |
| auto | decls () const |
| bool | is_where () const |
| const Expr * | expr () const |
| void | bind (Scopes &) const override |
| void | stream (fe::Tab &, std::ostream &) const override |
| Public Member Functions inherited from mim::ast::Expr | |
| const Def * | emit (Emitter &) const |
| const Def * | emit_decl (Emitter &, const Def *type) const |
| void | emit_body (Emitter &, const Def *decl) const |
| Public Member Functions inherited from mim::ast::Node | |
| Loc | loc () const |
| void | dump () const |
Private Member Functions | |
| const Def * | emit_ (Emitter &) const override |
Additional Inherited Members | |
| Protected Member Functions inherited from mim::ast::Expr | |
| Expr (Loc loc) | |
| Protected Member Functions inherited from mim::ast::Node | |
| Node (Loc loc) | |
| using mim::ast::DeclExpr::VLA_Types = std::tuple<Ptr<ValDecl>> |
Definition at line 536 of file ast.h.
References mim::ast::Expr::Expr(), expr(), is_where(), and mim::ast::Node::loc().
|
overridevirtual |
Implements mim::ast::Expr.
Definition at line 234 of file bind.cpp.
References mim::ast::Expr::bind(), decls(), expr(), and is_where().
|
inline |
Implements mim::ast::Expr.
Definition at line 250 of file emit.cpp.
References decls(), mim::ast::Expr::emit(), expr(), and is_where().
|
inline |
Definition at line 543 of file ast.h.
References mim::ast::Expr::Expr().
Referenced by bind(), DeclExpr(), emit_(), and stream().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 127 of file stream.cpp.
References decls(), expr(), is_where(), mim::ast::S::S(), and mim::ast::stream_decls().